direct.cluster.ClusterClient

from direct.cluster.ClusterClient import ClusterClient, ClusterClientSync, ClusterConfigItem, DisplayConnection, DummyClusterClient, createClusterClient

ClusterClient: Master for multi-piping or PC clusters.

Inheritance diagram

Inheritance diagram of direct.cluster.ClusterClient

class ClusterClient(configList, clusterSyncFlag)[source]

Bases: direct.showbase.DirectObject.DirectObject

MGR_NUM = 1000000
__init__(self, configList, clusterSyncFlag)[source]
addControlMapping(self, objectName, controlledName, serverList=None, offset=None, priority=0)[source]
addNamedObjectMapping(self, object, name, hasColor=True)[source]
addObjectTag(self, object, selectFunction, deselectFunction, selectArgs, deselectArgs)[source]
controlObjectTask(self, task)[source]
deselectNodePath(self, nodePath)[source]
exit(self)[source]
getNodePathFindCmd(self, nodePath)[source]
getNodePathName(self, nodePath)[source]
handleDatagram(self, dgi, type, server)[source]
handleMessageQueue(self, server)[source]
handleNamedMovement(self, data)[source]

Update cameraJig position to reflect latest position

loadModel(self, nodePath)[source]
moveCamera(self, xyz, hpr)[source]
moveCameraTask(self, task)[source]
moveObject(self, nodePath, object, serverList, offset, hasColor=True)[source]
moveSelectedTask(self, state)[source]
notify = <direct.directnotify.Notifier.Notifier object>
redoSortedPriorities(self)[source]
removeControlMapping(self, name, serverList=None)[source]
removeObjectMapping(self, name)[source]
removeObjectTag(self, object)[source]
selectNodePath(self, nodePath)[source]
sendCamFrustum(self, focalLength, filmSize, filmOffset, indexList=[])[source]
sendNamedMovementDone(self, serverList=None)[source]
setControlMappingOffset(self, objectName, offset)[source]
startControlObjectTask(self)[source]
startMoveCamTask(self)[source]
startMoveSelectedTask(self)[source]
startReaderPollTask(self)[source]

Task to handle datagrams from server

startSynchronizeTimeTask(self)[source]
synchronizeTimeTask(self, task)[source]
class ClusterClientSync(configList, clusterSyncFlag)[source]

Bases: direct.cluster.ClusterClient.ClusterClient

__init__(self, configList, clusterSyncFlag)[source]
moveCamera(self, xyz, hpr)[source]
startSwapCoordinatorTask(self)[source]
swapCoordinator(self, task)[source]
class ClusterConfigItem(serverConfigName, serverName, serverDaemonPort, serverMsgPort)[source]

Bases: object

__init__(self, serverConfigName, serverName, serverDaemonPort, serverMsgPort)[source]
setCamFrustum(self, focalLength, filmSize, filmOffset)[source]
setCamOffset(self, xyz, hpr)[source]
class DisplayConnection(qcm, serverName, port, msgHandler)[source]

Bases: object

__init__(self, qcm, serverName, port, msgHandler)[source]
getSwapReady(self)[source]
poll(self)[source]

Non blocking task to read all available datagrams

sendCamFrustum(self, focalLength, filmSize, filmOffset)[source]
sendCamOffset(self, xyz, hpr)[source]
sendCommandString(self, commandString)[source]
sendExit(self)[source]
sendMoveCam(self, xyz, hpr)[source]
sendMoveNamedObject(self, xyz, hpr, scale, color, hidden, name)[source]
sendMoveSelected(self, xyz, hpr, scale)[source]
sendNamedMovementDone(self)[source]
sendSwapNow(self)[source]
sendTimeData(self, frameCount, frameTime, dt)[source]
class DummyClusterClient[source]

Bases: direct.showbase.DirectObject.DirectObject

Dummy class to handle command strings when not in cluster mode

__init__(self)[source]
notify = <direct.directnotify.Notifier.Notifier object>
createClusterClient()[source]