Package gaiasky.scenegraph.camera
Enum CameraManager.CameraMode
- java.lang.Object
-
- java.lang.Enum<CameraManager.CameraMode>
-
- gaiasky.scenegraph.camera.CameraManager.CameraMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CameraManager.CameraMode>
- Enclosing class:
- CameraManager
public static enum CameraManager.CameraMode extends java.lang.Enum<CameraManager.CameraMode>
Convenience enum to describe the camera mode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOCUS_MODE
FOCUS_MODEFREE_MODE
Free navigationGAIA_FOV1_MODE
FOV1GAIA_FOV2_MODE
FOV2GAIA_FOVS_MODE
Both fields of viewGAIA_SCENE_MODE
Gaia SceneGAME_MODE
GAME_MODE modeSPACECRAFT_MODE
SPACECRAFT_MODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGaiaFovMode()
Returns the current FOV mode: 1 - FOV1 2 - FOV2 3 - FOV1&2 0 - No FOV modejava.lang.String
getKey()
static CameraManager.CameraMode
getMode(int idx)
boolean
isFocus()
boolean
isFree()
boolean
isGaiaFov()
boolean
isGame()
boolean
isSpacecraft()
java.lang.String
toStringI18n()
boolean
useClosest()
boolean
useFocus()
static CameraManager.CameraMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CameraManager.CameraMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FREE_MODE
public static final CameraManager.CameraMode FREE_MODE
Free navigation
-
FOCUS_MODE
public static final CameraManager.CameraMode FOCUS_MODE
FOCUS_MODE
-
GAME_MODE
public static final CameraManager.CameraMode GAME_MODE
GAME_MODE mode
-
GAIA_SCENE_MODE
public static final CameraManager.CameraMode GAIA_SCENE_MODE
Gaia Scene
-
SPACECRAFT_MODE
public static final CameraManager.CameraMode SPACECRAFT_MODE
SPACECRAFT_MODE
-
GAIA_FOV1_MODE
public static final CameraManager.CameraMode GAIA_FOV1_MODE
FOV1
-
GAIA_FOV2_MODE
public static final CameraManager.CameraMode GAIA_FOV2_MODE
FOV2
-
GAIA_FOVS_MODE
public static final CameraManager.CameraMode GAIA_FOVS_MODE
Both fields of view
-
-
Method Detail
-
values
public static CameraManager.CameraMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CameraManager.CameraMode c : CameraManager.CameraMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CameraManager.CameraMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMode
public static CameraManager.CameraMode getMode(int idx)
-
getKey
public java.lang.String getKey()
-
toStringI18n
public java.lang.String toStringI18n()
-
isGaiaFov
public boolean isGaiaFov()
-
isSpacecraft
public boolean isSpacecraft()
-
isFocus
public boolean isFocus()
-
isFree
public boolean isFree()
-
isGame
public boolean isGame()
-
useFocus
public boolean useFocus()
-
useClosest
public boolean useClosest()
-
getGaiaFovMode
public int getGaiaFovMode()
Returns the current FOV mode:- 1 - FOV1
- 2 - FOV2
- 3 - FOV1&2
- 0 - No FOV mode
- Returns:
- The current FOV mode of the camera as an integer
-
-