Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DistributedObjectBase Class Reference
Inheritance diagram for DistributedObjectBase:
DirectObject DistributedObject DistributedObjectAI DistributedObjectOV DistributedObjectUD DistributedCamera DistributedNode DistributedObjectGlobal SampleObject TimeManager DistributedCameraAI DistributedNodeAI DistributedObjectGlobalAI TimeManagerAI DistributedCameraOV DistributedNodeUD DistributedObjectGlobalUD

Public Member Functions

def __init__ (self, cr)
 
def getLocation (self)
 
def getParentObj (self)
 
def handleChildArrive (self, childObj, zoneId)
 
def handleChildArriveZone (self, childObj, zoneId)
 
def handleChildLeave (self, childObj, zoneId)
 
def handleChildLeaveZone (self, childObj, zoneId)
 
def handleQueryObjectChildrenLocalDone (self, context)
 
def hasParentingRules (self)
 
def status (self, indent=0)
 
- Public Member Functions inherited from DirectObject
def __init__ (self)
 
def accept (self, event, method, extraArgs=[])
 
def acceptOnce (self, event, method, extraArgs=[])
 
def addTask (self, args, kwargs)
 
def detectLeaks (self)
 
def doMethodLater (self, args, kwargs)
 
def getAllAccepting (self)
 
def ignore (self, event)
 
def ignoreAll (self)
 
def isAccepting (self, event)
 
def isIgnoring (self, event)
 
def removeAllTasks (self)
 
def removeTask (self, taskOrName)
 

Public Attributes

 children
 
 cr
 
 parentId
 
 zoneId
 

Static Public Attributes

 notify = directNotify.newCategory("DistributedObjectBase")
 

Detailed Description

The Distributed Object class is the base class for all network based
(i.e. distributed) objects.  These will usually (always?) have a
dclass entry in a *.dc file.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  cr 
)

Member Function Documentation

◆ getLocation()

def getLocation (   self)

◆ getParentObj()

def getParentObj (   self)

◆ handleChildArrive()

def handleChildArrive (   self,
  childObj,
  zoneId 
)
A new child has just setLocation beneath us.  Give us a
chance to run code when a new child sets location to us. For
example, we may want to scene graph reparent the child to
some subnode we own.

◆ handleChildArriveZone()

def handleChildArriveZone (   self,
  childObj,
  zoneId 
)
A child has just changed zones beneath us with setLocation.
Give us a chance to run code when an existing child sets
location to us. For example, we may want to scene graph
reparent the child to some subnode we own.

◆ handleChildLeave()

def handleChildLeave (   self,
  childObj,
  zoneId 
)
A child is about to setLocation away from us.  Give us a
chance to run code just before a child sets location away from us.

◆ handleChildLeaveZone()

def handleChildLeaveZone (   self,
  childObj,
  zoneId 
)
A child is about to setLocation to another zone beneath us.
Give us a chance to run code just before a child sets
location to that zone.

◆ handleQueryObjectChildrenLocalDone()

def handleQueryObjectChildrenLocalDone (   self,
  context 
)

◆ hasParentingRules()

def hasParentingRules (   self)

◆ status()

def status (   self,
  indent = 0 
)
print out "doId(parentId, zoneId) className"

Member Data Documentation

◆ children

children

◆ cr

cr

◆ notify

notify = directNotify.newCategory("DistributedObjectBase")
static

◆ parentId

parentId

◆ zoneId

zoneId