Panda3D
|
Public Member Functions | |
__init__ (self, cr) | |
addInterest (self, zoneId, note="", event=None) | |
announceGenerate (self) | |
b_setLocation (self, parentId, zoneId) | |
d_setLocation (self, parentId, zoneId) | |
delete (self) | |
deleteOrDelay (self) | |
disable (self) | |
disableAndAnnounce (self) | |
disableAnnounceAndDelete (self) | |
doCallbackContext (self, context, args) | |
doneBarrier (self, name=None) | |
execCommand (self, string, mwMgrId, avId, zoneId) | |
flushCachedData (self, name) | |
generate (self) | |
generateInit (self) | |
getAutoInterests (self) | |
getBarrierData (self) | |
getCacheable (self) | |
getCachedData (self, name) | |
getCallback (self, context) | |
getCallbackArgs (self, context) | |
getCallbackContext (self, callback, extraArgs=[]) | |
getCurrentContexts (self) | |
getDelayDeleteCount (self) | |
getDelayDeleteEvent (self) | |
getDisableEvent (self) | |
getDoId (self) | |
getLocation (self) | |
getNeverDisable (self) | |
getParentObj (self) | |
hasCachedData (self, name) | |
isDisabled (self) | |
isGenerated (self) | |
isGridParent (self) | |
isLocal (self) | |
postGenerateMessage (self) | |
removeInterest (self, handle, event=None) | |
sendDeleteMsg (self) | |
sendDisableMsg (self) | |
sendUpdate (self, fieldName, args=[], sendToId=None) | |
setBarrierData (self, data) | |
setCacheable (self, bool) | |
setCachedData (self, name, data) | |
setLocation (self, parentId, zoneId) | |
setNeverDisable (self, bool) | |
status (self, indent=0) | |
taskName (self, taskString) | |
uniqueName (self, idString) | |
updateAllRequiredFields (self, dclass, di) | |
updateRequiredFields (self, dclass, di) | |
updateRequiredOtherFields (self, dclass, di) | |
![]() | |
handleChildArrive (self, childObj, zoneId) | |
handleChildArriveZone (self, childObj, zoneId) | |
handleChildLeave (self, childObj, zoneId) | |
handleChildLeaveZone (self, childObj, zoneId) | |
handleQueryObjectChildrenLocalDone (self, context) | |
hasParentingRules (self) | |
![]() | |
accept (self, event, method, extraArgs=[]) | |
acceptOnce (self, event, method, extraArgs=[]) | |
addTask (self, *args, **kwargs) | |
detectLeaks (self) | |
doMethodLater (self, *args, **kwargs) | |
getAllAccepting (self) | |
ignore (self, event) | |
ignoreAll (self) | |
isAccepting (self, event) | |
isIgnoring (self, event) | |
removeAllTasks (self) | |
removeTask (self, taskOrName) | |
Public Attributes | |
activeState | |
autoInterests | |
cacheable | |
cr | |
dclass | |
destroyDoStackTrace | |
DistributedObject_deleted | |
DistributedObject_initialized | |
doId | |
neverDisable | |
parentId | |
zoneId | |
![]() | |
cr | |
doId | |
parentId | |
zoneId | |
Static Public Attributes | |
int | neverDisable = 0 |
notify = directNotify.newCategory("DistributedObject") | |
![]() | |
notify = directNotify.newCategory("DistributedObjectBase") | |
![]() | |
accept_once = acceptOnce | |
add_task = addTask | |
detect_leaks = detectLeaks | |
do_method_later = doMethodLater | |
get_all_accepting = getAllAccepting | |
ignore_all = ignoreAll | |
is_accepting = isAccepting | |
is_ignoring = isIgnoring | |
remove_all_tasks = removeAllTasks | |
remove_task = removeTask | |
Protected Member Functions | |
_deactivateDO (self) | |
_destroyDO (self) | |
_retrieveCachedData (self) | |
![]() | |
_addTask (self, task) | |
_clearTask (self, task) | |
Protected Attributes | |
_cachedData | |
_delayDeleted | |
_delayDeleteForceAllow | |
_token2delayDeleteName | |
![]() | |
_taskList | |
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.
__init__ | ( | self, | |
cr ) |
Reimplemented from DistributedObjectBase.
Reimplemented in DistributedCamera, DistributedCartesianGrid, DistributedNode, DistributedObjectGlobal, DistributedSmoothNode, SampleObject, and TimeManager.
|
protected |
|
protected |
|
protected |
addInterest | ( | self, | |
zoneId, | |||
note = "", | |||
event = None ) |
announceGenerate | ( | self | ) |
Sends a message to the world after the object has been generated and all of its required fields filled in.
Reimplemented in TimeManager.
b_setLocation | ( | self, | |
parentId, | |||
zoneId ) |
d_setLocation | ( | self, | |
parentId, | |||
zoneId ) |
delete | ( | self | ) |
Inheritors should redefine this to take appropriate action on delete
Reimplemented from DistributedObjectBase.
Reimplemented in DistributedCartesianGrid, DistributedNode, DistributedSmoothNode, and TimeManager.
deleteOrDelay | ( | self | ) |
disable | ( | self | ) |
Inheritors should redefine this to take appropriate action on disable
Reimplemented in DistributedCamera, DistributedCartesianGrid, DistributedNode, DistributedSmoothNode, and TimeManager.
disableAndAnnounce | ( | self | ) |
Inheritors should *not* redefine this function.
disableAnnounceAndDelete | ( | self | ) |
doCallbackContext | ( | self, | |
context, | |||
args ) |
doneBarrier | ( | self, | |
name = None ) |
execCommand | ( | self, | |
string, | |||
mwMgrId, | |||
avId, | |||
zoneId ) |
flushCachedData | ( | self, | |
name ) |
generate | ( | self | ) |
Inheritors should redefine this to take appropriate action on generate
Reimplemented in DistributedCartesianGrid, DistributedNode, DistributedSmoothNode, and TimeManager.
generateInit | ( | self | ) |
This method is called when the DistributedObject is first introduced to the world... Not when it is pulled from the cache.
getAutoInterests | ( | self | ) |
getBarrierData | ( | self | ) |
getCacheable | ( | self | ) |
getCachedData | ( | self, | |
name ) |
getCallback | ( | self, | |
context ) |
getCallbackArgs | ( | self, | |
context ) |
getCallbackContext | ( | self, | |
callback, | |||
extraArgs = [] ) |
getCurrentContexts | ( | self | ) |
getDelayDeleteCount | ( | self | ) |
getDelayDeleteEvent | ( | self | ) |
getDisableEvent | ( | self | ) |
getDoId | ( | self | ) |
Return the distributed object id
getLocation | ( | self | ) |
Reimplemented from DistributedObjectBase.
getNeverDisable | ( | self | ) |
getParentObj | ( | self | ) |
Reimplemented from DistributedObjectBase.
hasCachedData | ( | self, | |
name ) |
isDisabled | ( | self | ) |
Returns true if the object has been disabled and/or deleted, or if it is brand new and hasn't yet been generated.
isGenerated | ( | self | ) |
Returns true if the object has been fully generated by now, and not yet disabled.
isGridParent | ( | self | ) |
Reimplemented in DistributedCartesianGrid.
isLocal | ( | self | ) |
postGenerateMessage | ( | self | ) |
removeInterest | ( | self, | |
handle, | |||
event = None ) |
sendDeleteMsg | ( | self | ) |
sendDisableMsg | ( | self | ) |
sendUpdate | ( | self, | |
fieldName, | |||
args = [], | |||
sendToId = None ) |
setBarrierData | ( | self, | |
data ) |
setCacheable | ( | self, | |
bool ) |
setCachedData | ( | self, | |
name, | |||
data ) |
setLocation | ( | self, | |
parentId, | |||
zoneId ) |
Reimplemented in DistributedNode.
setNeverDisable | ( | self, | |
bool ) |
status | ( | self, | |
indent = 0 ) |
print out "doId(parentId, zoneId) className and conditionally show generated, disabled, neverDisable, or cachable"
Reimplemented from DistributedObjectBase.
taskName | ( | self, | |
taskString ) |
uniqueName | ( | self, | |
idString ) |
updateAllRequiredFields | ( | self, | |
dclass, | |||
di ) |
updateRequiredFields | ( | self, | |
dclass, | |||
di ) |
updateRequiredOtherFields | ( | self, | |
dclass, | |||
di ) |
|
protected |
|
protected |
|
protected |
|
protected |
activeState |
autoInterests |
cacheable |
cr |
dclass |
destroyDoStackTrace |
DistributedObject_deleted |
DistributedObject_initialized |
doId |
|
static |
neverDisable |
|
static |
parentId |
zoneId |