# ClusterServer

from direct.cluster.ClusterServer import ClusterServer

## Inheritance:

ClusterServer:

## Methods of ClusterServer:

__init__
_readerPollTask
_syncReaderPollTask
addControlMapping
addNamedObjectMapping
controlObjectTask
handleCamFrustum
handleCamMovement
handleCamOffset
handleCommandString
handleDatagram
handleMessageQueue
handleNamedMovement
handleSelectedMovement
handleTimeData
listenerPollTask
moveObject
redoSortedPriorities
removeControlMapping
removeObjectMapping
sendNamedMovementDone
sendSwapReady
setControlMappingOffset
startControlObjectTask
startListenerPollTask
startReaderPollTask
startSwapCoordinator
swapCoordinatorTask

__init__ def __init__(self, cameraJig, camera) Undocumented function.

_readerPollTask def _readerPollTask(self, state) Non blocking task to read all available datagrams

_syncReaderPollTask def _syncReaderPollTask(self, task) Undocumented function.

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

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

controlObjectTask def controlObjectTask(self, task) Undocumented function.

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) Undocumented function.

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) Undocumented function.

redoSortedPriorities def redoSortedPriorities(self) Undocumented function.

removeControlMapping def removeControlMapping(self, name) Undocumented function.

removeObjectMapping def removeObjectMapping(self, name) Undocumented function.

sendNamedMovementDone def sendNamedMovementDone(self) Undocumented function.

sendSwapReady def sendSwapReady(self) Undocumented function.

setControlMappingOffset def setControlMappingOffset(self, objectName, offset) Undocumented function.

startControlObjectTask def startControlObjectTask(self) Undocumented function.

startListenerPollTask def startListenerPollTask(self) Undocumented function.

startReaderPollTask def startReaderPollTask(self) Task to handle datagrams from client

startSwapCoordinator def startSwapCoordinator(self) Undocumented function.

swapCoordinatorTask def swapCoordinatorTask(self, task) Undocumented function.