direct.cluster.ClusterServer

from direct.cluster.ClusterServer import ClusterServer

Inheritance diagram

Inheritance diagram of direct.cluster.ClusterServer

class ClusterServer(cameraJig, camera)[source]

Bases: DirectObject

MSG_NUM = 2000000
__init__(self, cameraJig, camera)[source]
addControlMapping(self, objectName, controlledName, offset=None, priority=0)[source]
addNamedObjectMapping(self, object, name, hasColor=True, priority=0)[source]
controlObjectTask(self, task)[source]
handleCamFrustum(self, dgi)[source]

Adjust camera frustum based on parameters sent by client

handleCamMovement(self, dgi)[source]

Update cameraJig position to reflect latest position

handleCamOffset(self, dgi)[source]

Set offset of camera from cameraJig

handleCommandString(self, dgi)[source]

Handle arbitrary command string from client

handleDatagram(self, dgi, type)[source]

Process a datagram depending upon type flag

handleMessageQueue(self)[source]
handleNamedMovement(self, data)[source]

Update cameraJig position to reflect latest position

handleSelectedMovement(self, dgi)[source]

Update cameraJig position to reflect latest position

handleTimeData(self, dgi)[source]

Update cameraJig position to reflect latest position

listenerPollTask(self, task)[source]

Task to listen for a new connection from the client

moveObject(self, nodePath, object, offset, hasColor)[source]
notify = <direct.directnotify.Notifier.Notifier object>
redoSortedPriorities(self)[source]
removeControlMapping(self, name)[source]
removeObjectMapping(self, name)[source]
sendNamedMovementDone(self)[source]
sendSwapReady(self)[source]
setControlMappingOffset(self, objectName, offset)[source]
startControlObjectTask(self)[source]
startListenerPollTask(self)[source]
startReaderPollTask(self)[source]

Task to handle datagrams from client

startSwapCoordinator(self)[source]
swapCoordinatorTask(self, task)[source]