Panda3D
Public Member Functions | Public Attributes | Static Public Attributes

DistributedNode Class Reference

Inheritance diagram for DistributedNode:
DistributedObject DistributedSmoothNode

List of all members.

Public Member Functions

def __init__
def __cmp__
def addInterest
def announceGenerate
def b_setLocation
def b_setParent
 setParent ###
def d_setH
def d_setHpr
def d_setLocation
def d_setP
def d_setParent
def d_setPos
def d_setPosHpr
def d_setR
def d_setX
 set pos and hpr functions #######
def d_setXY
def d_setXYH
def d_setXYZH
def d_setXZ
def d_setY
def d_setZ
def delete
def deleteOrDelay
def disable
def disableAndAnnounce
def disableAnnounceAndDelete
def do_setParent
def doCallbackContext
def doneBarrier
def execCommand
def flushCachedData
def generate
def generateInit
def getAutoInterests
def getBarrierData
def getCacheable
def getCachedData
def getCallback
def getCallbackArgs
def getCallbackContext
def getCurrentContexts
def getDelayDeleteCount
def getDelayDeleteEvent
def getDisableEvent
def getDoId
def getLocation
def getNeverDisable
def getParentObj
def hasCachedData
def isDisabled
def isGenerated
def isGridParent
def isLocal
def postGenerateMessage
def removeInterest
def sendDeleteMsg
def sendDisableMsg
def sendUpdate
def setBarrierData
def setCacheable
def setCachedData
def setLocation
def setLocation
def setNeverDisable
def setParent
def setParentStr
def setXY
def setXYH
def setXYZH
def setXZ
def status
def taskName
def uniqueName
def updateAllRequiredFields
def updateRequiredFields
def updateRequiredOtherFields

Public Attributes

 activeState
 cacheable
 cr
 dclass
 destroyDoStackTrace
 DistributedNode_deleted
 DistributedNode_initialized
 DistributedObject_deleted
 DistributedObject_initialized
 gotStringParentToken
 gridParent
 neverDisable
 parentId
 zoneId

Static Public Attributes

int neverDisable = 0
tuple notify = directNotify.newCategory("DistributedObject")

Detailed Description

Distributed Node class:

Constructor & Destructor Documentation

def __init__ (   self,
  cr 
)

Reimplemented from DistributedObject.

Reimplemented in DistributedSmoothNode.


Member Function Documentation

def __cmp__ (   self,
  other 
)
def addInterest (   self,
  zoneId,
  note = "",
  event = None 
) [inherited]
def announceGenerate (   self) [inherited]
Sends a message to the world after the object has been
generated and all of its required fields filled in.

Reimplemented in TimeManager.

def b_setLocation (   self,
  parentId,
  zoneId 
) [inherited]
def b_setParent (   self,
  parentToken 
)

setParent ###

def d_setH (   self,
  h 
)
def d_setHpr (   self,
  h,
  p,
  r 
)
def d_setLocation (   self,
  parentId,
  zoneId 
) [inherited]
def d_setP (   self,
  p 
)
def d_setParent (   self,
  parentToken 
)

Reimplemented in DistributedSmoothNode.

def d_setPos (   self,
  x,
  y,
  z 
)
def d_setPosHpr (   self,
  x,
  y,
  z,
  h,
  p,
  r 
)
def d_setR (   self,
  r 
)
def d_setX (   self,
  x 
)

set pos and hpr functions #######

def d_setXY (   self,
  x,
  y 
)
def d_setXYH (   self,
  x,
  y,
  h 
)
def d_setXYZH (   self,
  x,
  y,
  z,
  h 
)
def d_setXZ (   self,
  x,
  z 
)
def d_setY (   self,
  y 
)
def d_setZ (   self,
  z 
)
def delete (   self)
Inheritors should redefine this to take appropriate action on delete

Reimplemented from DistributedObject.

Reimplemented in DistributedSmoothNode.

def deleteOrDelay (   self) [inherited]
def disable (   self)
Inheritors should redefine this to take appropriate action on disable

Reimplemented from DistributedObject.

Reimplemented in DistributedSmoothNode.

def disableAndAnnounce (   self) [inherited]
Inheritors should *not* redefine this function.
def disableAnnounceAndDelete (   self) [inherited]
def do_setParent (   self,
  parentToken 
)
do_setParent(self, int parentToken)

This function is defined simply to allow a derived class (like
DistributedAvatar) to override the behavior of setParent if
desired.
def doCallbackContext (   self,
  context,
  args 
) [inherited]
def doneBarrier (   self,
  name = None 
) [inherited]
def execCommand (   self,
  string,
  mwMgrId,
  avId,
  zoneId 
) [inherited]
def flushCachedData (   self,
  name 
) [inherited]
def generate (   self)
Inheritors should redefine this to take appropriate action on generate

Reimplemented from DistributedObject.

Reimplemented in DistributedSmoothNode.

def generateInit (   self) [inherited]
This method is called when the DistributedObject is first introduced
to the world... Not when it is pulled from the cache.
def getAutoInterests (   self) [inherited]
def getBarrierData (   self) [inherited]
def getCacheable (   self) [inherited]
def getCachedData (   self,
  name 
) [inherited]
def getCallback (   self,
  context 
) [inherited]
def getCallbackArgs (   self,
  context 
) [inherited]
def getCallbackContext (   self,
  callback,
  extraArgs = [] 
) [inherited]
def getCurrentContexts (   self) [inherited]
def getDelayDeleteCount (   self) [inherited]
def getDelayDeleteEvent (   self) [inherited]
def getDisableEvent (   self) [inherited]
def getDoId (   self) [inherited]
Return the distributed object id
def getLocation (   self) [inherited]
def getNeverDisable (   self) [inherited]
def getParentObj (   self) [inherited]
def hasCachedData (   self,
  name 
) [inherited]
def isDisabled (   self) [inherited]
Returns true if the object has been disabled and/or deleted,
or if it is brand new and hasn't yet been generated.
def isGenerated (   self) [inherited]
Returns true if the object has been fully generated by now,
and not yet disabled.
def isGridParent (   self) [inherited]
def isLocal (   self) [inherited]
def postGenerateMessage (   self) [inherited]
def removeInterest (   self,
  handle,
  event = None 
) [inherited]
def sendDeleteMsg (   self) [inherited]
def sendDisableMsg (   self) [inherited]
def sendUpdate (   self,
  fieldName,
  args = [],
  sendToId = None 
) [inherited]
def setBarrierData (   self,
  data 
) [inherited]
def setCacheable (   self,
  bool 
) [inherited]
def setCachedData (   self,
  name,
  data 
) [inherited]
def setLocation (   self,
  parentId,
  zoneId,
  teleport = 0 
)
def setLocation (   self,
  parentId,
  zoneId 
) [inherited]
def setNeverDisable (   self,
  bool 
) [inherited]
def setParent (   self,
  parentToken 
)
def setParentStr (   self,
  parentTokenStr 
)
def setXY (   self,
  x,
  y 
)
def setXYH (   self,
  x,
  y,
  h 
)
def setXYZH (   self,
  x,
  y,
  z,
  h 
)
def setXZ (   self,
  x,
  z 
)
def status (   self,
  indent = 0 
) [inherited]
print out "doId(parentId, zoneId) className
    and conditionally show generated, disabled, neverDisable,
    or cachable"
def taskName (   self,
  taskString 
) [inherited]
def uniqueName (   self,
  idString 
) [inherited]
def updateAllRequiredFields (   self,
  dclass,
  di 
) [inherited]
def updateRequiredFields (   self,
  dclass,
  di 
) [inherited]
def updateRequiredOtherFields (   self,
  dclass,
  di 
) [inherited]

Member Data Documentation

activeState [inherited]
cacheable [inherited]
cr [inherited]
dclass [inherited]
destroyDoStackTrace [inherited]
int neverDisable = 0 [static, inherited]
neverDisable [inherited]
tuple notify = directNotify.newCategory("DistributedObject") [static, inherited]

Reimplemented in TimeManager.

parentId [inherited]
zoneId [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties