Package gaiasky.script.v2.impl
Class InstancesModule
java.lang.Object
gaiasky.script.v2.impl.APIModule
gaiasky.script.v2.impl.InstancesModule
- All Implemented Interfaces:
InstancesAPI
The instances module contains methods and calls to access, modify, and query the connected instances
subsystem (primary-replica).
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInstancesModule(EventManager em, APIv2 api, String name) Create a new module with the given attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidset_projection_fov(float fov) Same asCameraModule.set_fov(float), but this method bypasses the restriction of an active projection in the replica (replicas that have an active projection do not accept fov modification events).voidset_projection_pitch(float pitch) Sets the projection pitch angle (if this is a replica instance), in degrees.voidset_projection_roll(float roll) Sets the projection roll angle (if this is a replica instance), in degrees.voidset_projection_yaw(float yaw) Sets the projection yaw angle (if this is a replica instance), in degrees.
-
Constructor Details
-
InstancesModule
Create a new module with the given attributes.- Parameters:
api- Reference to the API class.name- Name of the module.
-
-
Method Details
-
set_projection_yaw
public void set_projection_yaw(float yaw) Description copied from interface:InstancesAPISets the projection yaw angle (if this is a replica instance), in degrees. The yaw angle turns the camera to the right. This function is intended for multi-projector setups, to configure replicas without restarting Gaia Sky.- Specified by:
set_projection_yawin interfaceInstancesAPI- Parameters:
yaw- The yaw angle in degrees.
-
set_projection_pitch
public void set_projection_pitch(float pitch) Description copied from interface:InstancesAPISets the projection pitch angle (if this is a replica instance), in degrees. The pitch angle turns the camera up. This function is intended for multi-projector setups, to configure replicas without restarting Gaia Sky.- Specified by:
set_projection_pitchin interfaceInstancesAPI- Parameters:
pitch- The pitch angle in degrees.
-
set_projection_roll
public void set_projection_roll(float roll) Description copied from interface:InstancesAPISets the projection roll angle (if this is a replica instance), in degrees. The roll angle rolls the camera clockwise. This function is intended for multi-projector setups, to configure replicas without restarting Gaia Sky.- Specified by:
set_projection_rollin interfaceInstancesAPI- Parameters:
roll- The roll angle in degrees.
-
set_projection_fov
public void set_projection_fov(float fov) Description copied from interface:InstancesAPISame asCameraModule.set_fov(float), but this method bypasses the restriction of an active projection in the replica (replicas that have an active projection do not accept fov modification events).- Specified by:
set_projection_fovin interfaceInstancesAPI- Parameters:
fov- The field of view angle.
-