Package gaiasky.util
Class MasterManager
java.lang.Object
gaiasky.util.MasterManager
- All Implemented Interfaces:
IObserver
Manager for Gaia Sky master instances.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boardcastCamera
(Vector3d pos, Vector3d dir, Vector3d up) Broadcasts the given camera state to all the slavesvoid
boardcastCameraAndTime
(Vector3b pos, Vector3d dir, Vector3d up, ITimeFrameProvider time) Broadcasts the given camera state and time to all the slaves.int
getSlaveIndex
(String slaveName) byte[]
static boolean
static void
boolean
isSlaveConnected
(int index) boolean
isSlaveConnected
(String slaveName) void
Event notification call.void
setSlaveFov
(String slave, float fov) void
setSlavePitch
(String slave, float pitch) void
setSlaveRoll
(String slave, float roll) void
setSlaveYaw
(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:IObserver
Event notification call.
-