Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
SampleObject Class Reference
Inheritance diagram for SampleObject:
DistributedObject DistributedObjectBase DirectObject

Public Member Functions

def __init__ (self, cr)
 
def getColor (self)
 
def setColor (self, red=0, green=0, blue=0)
 
- Public Member Functions inherited from DistributedObject
def addInterest (self, zoneId, note="", event=None)
 
def announceGenerate (self)
 
def b_setLocation (self, parentId, zoneId)
 
def d_setLocation (self, parentId, zoneId)
 
def delete (self)
 
def deleteOrDelay (self)
 
def disable (self)
 
def disableAndAnnounce (self)
 
def disableAnnounceAndDelete (self)
 
def doCallbackContext (self, context, args)
 
def doneBarrier (self, name=None)
 
def execCommand (self, string, mwMgrId, avId, zoneId)
 
def flushCachedData (self, name)
 
def generate (self)
 
def generateInit (self)
 
def getAutoInterests (self)
 
def getBarrierData (self)
 
def getCacheable (self)
 
def getCachedData (self, name)
 
def getCallback (self, context)
 
def getCallbackArgs (self, context)
 
def getCallbackContext (self, callback, extraArgs=[])
 
def getCurrentContexts (self)
 
def getDelayDeleteCount (self)
 
def getDelayDeleteEvent (self)
 
def getDisableEvent (self)
 
def getDoId (self)
 
def getLocation (self)
 
def getNeverDisable (self)
 
def getParentObj (self)
 
def hasCachedData (self, name)
 
def isDisabled (self)
 
def isGenerated (self)
 
def isGridParent (self)
 
def isLocal (self)
 
def postGenerateMessage (self)
 
def removeInterest (self, handle, event=None)
 
def sendDeleteMsg (self)
 
def sendDisableMsg (self)
 
def sendUpdate (self, fieldName, args=[], sendToId=None)
 
def setBarrierData (self, data)
 
def setCacheable (self, bool)
 
def setCachedData (self, name, data)
 
def setLocation (self, parentId, zoneId)
 
def setNeverDisable (self, bool)
 
def status (self, indent=0)
 
def taskName (self, taskString)
 
def uniqueName (self, idString)
 
def updateAllRequiredFields (self, dclass, di)
 
def updateRequiredFields (self, dclass, di)
 
def updateRequiredOtherFields (self, dclass, di)
 
- Public Member Functions inherited from DistributedObjectBase
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)
 
- 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

 blue
 
 cr
 
 green
 
 red
 
- Public Attributes inherited from DistributedObject
 activeState
 
 autoInterests
 
 cacheable
 
 cr
 
 dclass
 
 destroyDoStackTrace
 
 DistributedObject_deleted
 
 DistributedObject_initialized
 
 neverDisable
 
 parentId
 
 zoneId
 
- Public Attributes inherited from DistributedObjectBase
 cr
 
 parentId
 
 zoneId
 

Static Public Attributes

 notify = directNotify.newCategory("SampleObject")
 
- Static Public Attributes inherited from DistributedObject
int neverDisable = 0
 
 notify = directNotify.newCategory("DistributedObject")
 
- Static Public Attributes inherited from DistributedObjectBase
 notify = directNotify.newCategory("DistributedObjectBase")
 
- Static Public Attributes inherited from DirectObject
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
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  cr 
)

Reimplemented from DistributedObject.

Member Function Documentation

◆ getColor()

def getColor (   self)

◆ setColor()

def setColor (   self,
  red = 0,
  green = 0,
  blue = 0 
)

Member Data Documentation

◆ blue

blue

◆ cr

cr

◆ green

green

◆ notify

notify = directNotify.newCategory("SampleObject")
static

◆ red

red