Class MasterManager
java.lang.Object
gaiasky.util.MasterManager
- All Implemented Interfaces:
IObserver
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidboardcastCamera(Vector3D pos, Vector3D dir, Vector3D up) Broadcasts the given camera state to all the slavesvoidboardcastCameraAndTime(Vector3Q pos, Vector3D dir, Vector3D up, ITimeFrameProvider time) Broadcasts the given camera state and time to all the slaves.intgetSlaveIndex(String slaveName) byte[]static booleanstatic voidbooleanisSlaveConnected(int index) booleanisSlaveConnected(String slaveName) voidEvent notification call.voidsetSlaveFov(String slave, float fov) voidsetSlavePitch(String slave, float pitch) voidsetSlaveRoll(String slave, float roll) voidsetSlaveYaw(String slave, float yaw)
-
Field Details
-
instance
-
-
Method Details
-
initialize
public static void initialize() -
hasSlaves
public static boolean hasSlaves() -
isSlaveConnected
-
getSlaveIndex
-
isSlaveConnected
public boolean isSlaveConnected(int index) -
getSlaveStates
public byte[] getSlaveStates() -
boardcastCameraAndTime
public void boardcastCameraAndTime(Vector3Q pos, Vector3D dir, Vector3D up, ITimeFrameProvider time) Broadcasts the given camera state and time to all the slaves.- Parameters:
pos- Camera position.dir- Camera direction.up- Camera up.time- Current time.
-
boardcastCamera
-
setSlaveYaw
-
setSlavePitch
-
setSlaveRoll
-
setSlaveFov
-
getSlaves
-
notify
-