Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ClusterServer Class Reference
Inheritance diagram for ClusterServer:

Public Member Functions

def __init__ (self, cameraJig, camera)
 
def addControlMapping (self, objectName, controlledName, offset=None, priority=0)
 
def addNamedObjectMapping (self, object, name, hasColor=True, priority=0)
 
def controlObjectTask (self, task)
 
def handleCamFrustum (self, dgi)
 
def handleCamMovement (self, dgi)
 
def handleCamOffset (self, dgi)
 
def handleCommandString (self, dgi)
 
def handleDatagram (self, dgi, type)
 
def handleMessageQueue (self)
 
def handleNamedMovement (self, data)
 
def handleSelectedMovement (self, dgi)
 
def handleTimeData (self, dgi)
 
def listenerPollTask (self, task)
 
def moveObject (self, nodePath, object, offset, hasColor)
 
def redoSortedPriorities (self)
 
def removeControlMapping (self, name)
 
def removeObjectMapping (self, name)
 
def sendNamedMovementDone (self)
 
def sendSwapReady (self)
 
def setControlMappingOffset (self, objectName, offset)
 
def startControlObjectTask (self)
 
def startListenerPollTask (self)
 
def startReaderPollTask (self)
 
def startSwapCoordinator (self)
 
def swapCoordinatorTask (self, task)
 

Public Attributes

 camera
 
 cameraJig
 
 controlMappings
 
 controlOffsets
 
 controlPriorities
 
 cw
 
 daemon
 
 fPosReceived
 
 lastConnection
 
 lens
 
 messageQueue
 
 msgHandler
 
 objectHasColor
 
 objectMappings
 
 qcl
 
 qcm
 
 qcr
 
 sortedControlMappings
 
 tcpRendezvous
 

Static Public Attributes

int MSG_NUM = 2000000
 
 notify = DirectNotifyGlobal.directNotify.newCategory("ClusterServer")
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  cameraJig,
  camera 
)

Member Function Documentation

◆ addControlMapping()

def addControlMapping (   self,
  objectName,
  controlledName,
  offset = None,
  priority = 0 
)

◆ addNamedObjectMapping()

def addNamedObjectMapping (   self,
  object,
  name,
  hasColor = True,
  priority = 0 
)

◆ controlObjectTask()

def controlObjectTask (   self,
  task 
)

◆ handleCamFrustum()

def handleCamFrustum (   self,
  dgi 
)
Adjust camera frustum based on parameters sent by client 

◆ handleCamMovement()

def handleCamMovement (   self,
  dgi 
)
Update cameraJig position to reflect latest position 

◆ handleCamOffset()

def handleCamOffset (   self,
  dgi 
)
Set offset of camera from cameraJig 

◆ handleCommandString()

def handleCommandString (   self,
  dgi 
)
Handle arbitrary command string from client 

◆ handleDatagram()

def handleDatagram (   self,
  dgi,
  type 
)
Process a datagram depending upon type flag 

◆ handleMessageQueue()

def handleMessageQueue (   self)

◆ handleNamedMovement()

def handleNamedMovement (   self,
  data 
)
Update cameraJig position to reflect latest position 

◆ handleSelectedMovement()

def handleSelectedMovement (   self,
  dgi 
)
Update cameraJig position to reflect latest position 

◆ handleTimeData()

def handleTimeData (   self,
  dgi 
)
Update cameraJig position to reflect latest position 

◆ listenerPollTask()

def listenerPollTask (   self,
  task 
)
Task to listen for a new connection from the client 

◆ moveObject()

def moveObject (   self,
  nodePath,
  object,
  offset,
  hasColor 
)

◆ redoSortedPriorities()

def redoSortedPriorities (   self)

◆ removeControlMapping()

def removeControlMapping (   self,
  name 
)

◆ removeObjectMapping()

def removeObjectMapping (   self,
  name 
)

◆ sendNamedMovementDone()

def sendNamedMovementDone (   self)

◆ sendSwapReady()

def sendSwapReady (   self)

◆ setControlMappingOffset()

def setControlMappingOffset (   self,
  objectName,
  offset 
)

◆ startControlObjectTask()

def startControlObjectTask (   self)

◆ startListenerPollTask()

def startListenerPollTask (   self)

◆ startReaderPollTask()

def startReaderPollTask (   self)
Task to handle datagrams from client 

◆ startSwapCoordinator()

def startSwapCoordinator (   self)

◆ swapCoordinatorTask()

def swapCoordinatorTask (   self,
  task 
)

Member Data Documentation

◆ camera

camera

◆ cameraJig

cameraJig

◆ controlMappings

controlMappings

◆ controlOffsets

controlOffsets

◆ controlPriorities

controlPriorities

◆ cw

cw

◆ daemon

daemon

◆ fPosReceived

fPosReceived

◆ lastConnection

lastConnection

◆ lens

lens

◆ messageQueue

messageQueue

◆ MSG_NUM

int MSG_NUM = 2000000
static

◆ msgHandler

msgHandler

◆ notify

notify = DirectNotifyGlobal.directNotify.newCategory("ClusterServer")
static

◆ objectHasColor

objectHasColor

◆ objectMappings

objectMappings

◆ qcl

qcl

◆ qcm

qcm

◆ qcr

qcr

◆ sortedControlMappings

sortedControlMappings

◆ tcpRendezvous

tcpRendezvous