Package gaiasky.util
Class MasterManager
java.lang.Object
gaiasky.util.MasterManager
- All Implemented Interfaces:
IObserver
Manager for Gaia Sky master instances.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidboardcastCamera(Vector3d pos, Vector3d dir, Vector3d up) Broadcasts the given camera state to all the slavesvoidboardcastCameraAndTime(Vector3b 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(Vector3b 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
Broadcasts the given camera state to all the slaves- Parameters:
pos- Camera positiondir- Camera directionup- Camera up
-
setSlaveYaw
-
setSlavePitch
-
setSlaveRoll
-
setSlaveFov
-
getSlaves
-
notify
Description copied from interface:IObserverEvent notification call.
-