-
public class Manipulator.Builder
-
-
Constructor Summary
Constructors Constructor Description Manipulator.Builder()
-
Method Summary
Modifier and Type Method Description Manipulator.Builderviewport(@IntRange(from = 1) int width, @IntRange(from = 1) int height)Width and height of the viewing area. Manipulator.BuildertargetPosition(float x, float y, float z)Sets world-space position of interest, which defaults to (0,0,0). Manipulator.BuilderupVector(float x, float y, float z)Sets orientation for the home position, which defaults to (0,1,0). Manipulator.BuilderzoomSpeed(float arg)Sets the scroll delta multiplier, which defaults to 0.01. Manipulator.BuilderorbitHomePosition(float x, float y, float z)Sets initial eye position in world space for ORBIT mode.This defaults to (0,0,1). Manipulator.BuilderorbitSpeed(float x, float y)Sets the multiplier with viewport delta for ORBIT mode.This defaults to 0. Manipulator.BuilderfovDirection(Manipulator.Fov fov)Sets the FOV axis that's held constant when the viewport changes.This defaults to Vertical. Manipulator.BuilderfovDegrees(float arg)Sets the full FOV (not the half-angle) in the degrees.This defaults to 33. Manipulator.BuilderfarPlane(float arg)Sets the distance to the far plane, which defaults to 5000. Manipulator.BuildermapExtent(float width, float height)Sets the ground plane size used to compute the home position for MAP mode. Manipulator.BuildermapMinDistance(float arg)Constrains the zoom-in level. Manipulator.BuilderflightStartPosition(float x, float y, float z)Sets the initial eye position in world space for FREE_FLIGHT mode. Manipulator.BuilderflightStartOrientation(float pitch, float yaw)Sets the initial orientation in pitch and yaw for FREE_FLIGHT mode. Manipulator.BuilderflightMaxMoveSpeed(float maxSpeed)Sets the maximum camera translation speed in world units per second for FREE_FLIGHT mode.Defaults to 10. Manipulator.BuilderflightSpeedSteps(int steps)Sets the number of speed steps adjustable with scroll wheel for FREE_FLIGHT mode.Defaults to 80. Manipulator.BuilderflightPanSpeed(float x, float y)Sets the multiplier with viewport delta for FREE_FLIGHT mode.This defaults to 0.01. Manipulator.BuilderflightMoveDamping(float damping)Applies a deceleration to camera movement in FREE_FLIGHT mode. Manipulator.BuildergroundPlane(float a, float b, float c, float d)Sets the ground plane equation used for ray casts.This is a plane equation as in Ax + By + Cz + D = 0.Defaults to (0, 0, 1, 0). Manipulatorbuild(Manipulator.Mode mode)Creates and returns the Manipulatorobject.-
-
Method Detail
-
viewport
@NonNull() Manipulator.Builder viewport(@IntRange(from = 1) int width, @IntRange(from = 1) int height)
Width and height of the viewing area.
-
targetPosition
@NonNull() Manipulator.Builder targetPosition(float x, float y, float z)
Sets world-space position of interest, which defaults to (0,0,0).
-
upVector
@NonNull() Manipulator.Builder upVector(float x, float y, float z)
Sets orientation for the home position, which defaults to (0,1,0).
-
zoomSpeed
@NonNull() Manipulator.Builder zoomSpeed(float arg)
Sets the scroll delta multiplier, which defaults to 0.01.
-
orbitHomePosition
@NonNull() Manipulator.Builder orbitHomePosition(float x, float y, float z)
Sets initial eye position in world space for ORBIT mode.This defaults to (0,0,1).
-
orbitSpeed
@NonNull() Manipulator.Builder orbitSpeed(float x, float y)
Sets the multiplier with viewport delta for ORBIT mode.This defaults to 0.01
-
fovDirection
@NonNull() Manipulator.Builder fovDirection(Manipulator.Fov fov)
Sets the FOV axis that's held constant when the viewport changes.This defaults to Vertical.
-
fovDegrees
@NonNull() Manipulator.Builder fovDegrees(float arg)
Sets the full FOV (not the half-angle) in the degrees.This defaults to 33.
-
farPlane
@NonNull() Manipulator.Builder farPlane(float arg)
Sets the distance to the far plane, which defaults to 5000.
-
mapExtent
@NonNull() Manipulator.Builder mapExtent(float width, float height)
Sets the ground plane size used to compute the home position for MAP mode.This defaults to 512 x 512
-
mapMinDistance
@NonNull() Manipulator.Builder mapMinDistance(float arg)
Constrains the zoom-in level. Defaults to 0.
-
flightStartPosition
Manipulator.Builder flightStartPosition(float x, float y, float z)
Sets the initial eye position in world space for FREE_FLIGHT mode. Defaults to (0,0,0).
-
flightStartOrientation
Manipulator.Builder flightStartOrientation(float pitch, float yaw)
Sets the initial orientation in pitch and yaw for FREE_FLIGHT mode. Defaults to (0,0).
-
flightMaxMoveSpeed
Manipulator.Builder flightMaxMoveSpeed(float maxSpeed)
Sets the maximum camera translation speed in world units per second for FREE_FLIGHT mode.Defaults to 10.
-
flightSpeedSteps
Manipulator.Builder flightSpeedSteps(int steps)
Sets the number of speed steps adjustable with scroll wheel for FREE_FLIGHT mode.Defaults to 80.
-
flightPanSpeed
Manipulator.Builder flightPanSpeed(float x, float y)
Sets the multiplier with viewport delta for FREE_FLIGHT mode.This defaults to 0.01.
-
flightMoveDamping
Manipulator.Builder flightMoveDamping(float damping)
Applies a deceleration to camera movement in FREE_FLIGHT mode. Defaults to 0 (no damping).Lower values give slower damping times. A good default is 15.0. Too high a value may leadto instability.
-
groundPlane
@NonNull() Manipulator.Builder groundPlane(float a, float b, float c, float d)
Sets the ground plane equation used for ray casts.This is a plane equation as in Ax + By + Cz + D = 0.Defaults to (0, 0, 1, 0).
-
build
@NonNull() Manipulator build(Manipulator.Mode mode)
Creates and returns the
Manipulatorobject.
-
-
-
-