public static enum Viewer.RotationMode extends java.lang.Enum<Viewer.RotationMode>
Enum Constant and Description |
---|
CONTINUOUS
The horizontal and vertical displacements describe instantaneous
angular velocity components of the eye-to-world rotation.
|
FIXED_VERTICAL
The horizontal displacement describes a rotation about the vertical
(``up'') direction (as returned by
Viewer.getUpVector() ), while the
vertical displacement controls the elevation of the eye position. |
OFF
Viewer rotation is disabled.
|
Modifier and Type | Method and Description |
---|---|
static Viewer.RotationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Viewer.RotationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Viewer.RotationMode FIXED_VERTICAL
Viewer.getUpVector()
), while the
vertical displacement controls the elevation of the eye position. This
mode has the advantage that the ``up'' direction always remains
parallel to the vertical direction of the viewer plane. However,
because of this, the eye-to-world rotation cannot be adjusted to an
arbitrary value.public static final Viewer.RotationMode CONTINUOUS
public static final Viewer.RotationMode OFF
public static Viewer.RotationMode[] values()
for (Viewer.RotationMode c : Viewer.RotationMode.values()) System.out.println(c);
public static Viewer.RotationMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null