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>
,java.lang.constant.Constable
- Enclosing class:
- CameraManager
public static enum CameraManager.CameraMode extends java.lang.Enum<CameraManager.CameraMode>
Convenience enum to describe the camera mode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
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
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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
FREE_MODE
Free navigation -
FOCUS_MODE
FOCUS_MODE -
GAME_MODE
GAME_MODE mode -
GAIA_SCENE_MODE
Gaia Scene -
SPACECRAFT_MODE
SPACECRAFT_MODE -
GAIA_FOV1_MODE
FOV1 -
GAIA_FOV2_MODE
FOV2 -
GAIA_FOVS_MODE
Both fields of view
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
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
-