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__(cameraJig, camera)[source]
addControlMapping(objectName, controlledName, offset=None, priority=0)[source]
addNamedObjectMapping(object, name, hasColor=True, priority=0)[source]
controlObjectTask(task)[source]
handleCamFrustum(dgi)[source]

Adjust camera frustum based on parameters sent by client

handleCamMovement(dgi)[source]

Update cameraJig position to reflect latest position

handleCamOffset(dgi)[source]

Set offset of camera from cameraJig

handleCommandString(dgi)[source]

Handle arbitrary command string from client

handleDatagram(dgi, type)[source]

Process a datagram depending upon type flag

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

Update cameraJig position to reflect latest position

handleSelectedMovement(dgi)[source]

Update cameraJig position to reflect latest position

handleTimeData(dgi)[source]

Update cameraJig position to reflect latest position

listenerPollTask(task)[source]

Task to listen for a new connection from the client

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

Task to handle datagrams from client

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