Panda3D
|
Public Member Functions | |
def | __init__ (self, cr) |
def | delete (self) |
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) |
![]() | |
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 | |
cr | |
parentId | |
zoneId | |
Static Public Attributes | |
notify = directNotify.newCategory("DistributedObjectBase") | |
![]() | |
def | accept_once = acceptOnce |
def | add_task = addTask |
def | detect_leaks = detectLeaks |
def | do_method_later = doMethodLater |
def | get_all_accepting = getAllAccepting |
def | ignore_all = ignoreAll |
def | is_accepting = isAccepting |
def | is_ignoring = isIgnoring |
def | remove_all_tasks = removeAllTasks |
def | remove_task = removeTask |
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.
def __init__ | ( | self, | |
cr | |||
) |
Reimplemented in DistributedCamera, DistributedSmoothNode, TimeManager, DistributedObject, DistributedCartesianGrid, DistributedObjectOV, DistributedObjectGlobal, DistributedNode, SampleObject, DistributedCameraOV, DistributedObjectAI, DistributedObjectUD, DistributedObjectGlobalUD, DistributedObjectGlobalAI, TimeManagerAI, and DistributedCameraAI.
def delete | ( | self | ) |
Override this to handle cleanup right before this object gets deleted.
Reimplemented in DistributedObject, DistributedObjectOV, DistributedObjectAI, DistributedSmoothNode, DistributedObjectUD, TimeManager, DistributedCartesianGrid, DistributedNode, DistributedCartesianGridAI, DistributedObjectGlobalAI, DistributedObjectGlobalUD, DistributedSmoothNodeAI, DistributedNodeAI, and DistributedCameraOV.
def getLocation | ( | self | ) |
Reimplemented in DistributedObject, and DistributedObjectAI.
def getParentObj | ( | self | ) |
Reimplemented in DistributedObject.
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.
Reimplemented in DistributedCartesianGrid.
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.
Reimplemented in DistributedCartesianGrid.
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.
Reimplemented in DistributedCartesianGrid.
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.
def handleQueryObjectChildrenLocalDone | ( | self, | |
context | |||
) |
def hasParentingRules | ( | self | ) |
def status | ( | self, | |
indent = 0 |
|||
) |
print out "doId(parentId, zoneId) className"
Reimplemented in DistributedObject, DistributedObjectAI, DistributedObjectUD, and DistributedObjectOV.
cr |
|
static |
parentId |
zoneId |