Package com.io7m.jcamera
Interface JCameraSphericalInputType
- All Known Implementing Classes:
JCameraSphericalInput
public interface JCameraSphericalInputType
The type of inputs for spherical cameras.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTargetMovingContinuousForward(double in_forward) Add a movement forward to the target position.voidaddTargetMovingContinuousRight(double in_right) Add a movement right to the target position.doubledoubledoubledoublebooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetContinuousForwardFactor(double f) Set the multiplication factor used for continuous forward/backward movement.voidsetContinuousRightwardFactor(double f) Set the multiplication factor used for continuous left/right movement.voidsetOrbitHeadingNegative(boolean o) Tell the camera to start/stop orbiting (for heading) in a negative direction.voidsetOrbitHeadingPositive(boolean o) Tell the camera to start/stop orbiting (for heading) in a positive direction.voidsetOrbitInclineNegative(boolean o) Tell the camera to start/stop orbiting (for incline) in a negative direction.voidsetOrbitInclinePositive(boolean o) Tell the camera to start/stop orbiting (for incline) in a positive direction.voidsetTargetMovingBackwardCursor(boolean in_backward) Tell the camera target to start/stop moving backward.voidsetTargetMovingBackwardKey(boolean in_backward) Tell the camera target to start/stop moving backward.voidsetTargetMovingContinuousForward(double f) Set the amount of continuous forward movement.voidsetTargetMovingContinuousRight(double f) Set the amount of continuous rightward movement.voidsetTargetMovingDown(boolean in_down) Tell the camera target to start/stop moving down.voidsetTargetMovingForwardCursor(boolean in_forward) Tell the camera target to start/stop moving forward.voidsetTargetMovingForwardKey(boolean in_forward) Tell the camera target to start/stop moving forward.voidsetTargetMovingLeftCursor(boolean in_left) Tell the camera target to start/stop moving left.voidsetTargetMovingLeftKey(boolean in_left) Tell the camera target to start/stop moving left.voidsetTargetMovingRightCursor(boolean in_right) Tell the camera target to start/stop moving right.voidsetTargetMovingRightKey(boolean in_right) Tell the camera target to start/stop moving right.voidsetTargetMovingUp(boolean in_up) Tell the camera target to start/stop moving up.voidsetZoomingIn(boolean in_zoom_in) Tell the camera target to start/stop zooming in.voidsetZoomingOut(boolean in_zoom_out) Tell the camera target to start/stop zooming out.doubleRetriever=getTargetMovingForwardContinuous(), set the current forward movement to 0.0, and returnr.double
-
Method Details
-
addTargetMovingContinuousForward
void addTargetMovingContinuousForward(double in_forward) Add a movement forward to the target position. A negative value decreases the amount of movement forward and increases the amount of movement backward.- Parameters:
in_forward- The amount to move forward
-
addTargetMovingContinuousRight
void addTargetMovingContinuousRight(double in_right) Add a movement right to the target position. A negative value decreases the amount of movement to the right and increases the amount of movement to the left.- Parameters:
in_right- The amount to move right
-
getForwardFactor
double getForwardFactor()- Returns:
- The multiplication factor used for continuous forward/backward movement.
-
getRightFactor
double getRightFactor()- Returns:
- The multiplication factor used for continuous right/left movement.
-
getTargetMovingForwardContinuous
double getTargetMovingForwardContinuous()- Returns:
- The current forward movement.
-
getTargetMovingRight
double getTargetMovingRight()- Returns:
- The current rightward movement.
-
isOrbitingHeadingNegative
boolean isOrbitingHeadingNegative()- Returns:
trueif the user is telling the camera to orbit
-
isOrbitingHeadingPositive
boolean isOrbitingHeadingPositive()- Returns:
trueif the user is telling the camera to orbit
-
isOrbitingInclineNegative
boolean isOrbitingInclineNegative()- Returns:
trueif the user is telling the camera to orbit
-
isOrbitingInclinePositive
boolean isOrbitingInclinePositive()- Returns:
trueif the user is telling the camera to orbit
-
isTargetMovingBackward
boolean isTargetMovingBackward()- Returns:
trueif the user is telling the camera target to move backward
-
isTargetMovingDown
boolean isTargetMovingDown()- Returns:
trueif the user is telling the camera target to move down
-
setTargetMovingDown
void setTargetMovingDown(boolean in_down) Tell the camera target to start/stop moving down.- Parameters:
in_down-trueif the camera should be moving
-
isTargetMovingForward
boolean isTargetMovingForward()- Returns:
trueif the user is telling the camera target to move forward
-
isTargetMovingLeft
boolean isTargetMovingLeft()- Returns:
trueif the user is telling the camera target to move left
-
isTargetMovingRight
boolean isTargetMovingRight()- Returns:
trueif the user is telling the camera target to move right
-
isTargetMovingUp
boolean isTargetMovingUp()- Returns:
trueif the user is telling the camera target to move up
-
setTargetMovingUp
void setTargetMovingUp(boolean in_up) Tell the camera target to start/stop moving up.- Parameters:
in_up-trueif the camera should be moving
-
isZoomingIn
boolean isZoomingIn()- Returns:
trueif the user is telling the camera to zoom in
-
setZoomingIn
void setZoomingIn(boolean in_zoom_in) Tell the camera target to start/stop zooming in.- Parameters:
in_zoom_in-trueif the camera should be moving
-
isZoomingOut
boolean isZoomingOut()- Returns:
trueif the user is telling the camera to zoom out
-
setZoomingOut
void setZoomingOut(boolean in_zoom_out) Tell the camera target to start/stop zooming out.- Parameters:
in_zoom_out-trueif the camera should be moving
-
setContinuousForwardFactor
void setContinuousForwardFactor(double f) Set the multiplication factor used for continuous forward/backward movement.- Parameters:
f- The multiplication factor
-
setContinuousRightwardFactor
void setContinuousRightwardFactor(double f) Set the multiplication factor used for continuous left/right movement.- Parameters:
f- The multiplication factor
-
setOrbitHeadingNegative
void setOrbitHeadingNegative(boolean o) Tell the camera to start/stop orbiting (for heading) in a negative direction.- Parameters:
o-trueif the camera should be moving
-
setOrbitHeadingPositive
void setOrbitHeadingPositive(boolean o) Tell the camera to start/stop orbiting (for heading) in a positive direction.- Parameters:
o-trueif the camera should be moving
-
setOrbitInclineNegative
void setOrbitInclineNegative(boolean o) Tell the camera to start/stop orbiting (for incline) in a negative direction.- Parameters:
o-trueif the camera should be moving
-
setOrbitInclinePositive
void setOrbitInclinePositive(boolean o) Tell the camera to start/stop orbiting (for incline) in a positive direction.- Parameters:
o-trueif the camera should be moving
-
setTargetMovingBackwardCursor
void setTargetMovingBackwardCursor(boolean in_backward) Tell the camera target to start/stop moving backward.- Parameters:
in_backward-trueif the camera should be moving
-
setTargetMovingBackwardKey
void setTargetMovingBackwardKey(boolean in_backward) Tell the camera target to start/stop moving backward.- Parameters:
in_backward-trueif the camera should be moving
-
setTargetMovingContinuousForward
void setTargetMovingContinuousForward(double f) Set the amount of continuous forward movement.- Parameters:
f- The forward movement
-
setTargetMovingContinuousRight
void setTargetMovingContinuousRight(double f) Set the amount of continuous rightward movement.- Parameters:
f- The rightward movement
-
setTargetMovingForwardCursor
void setTargetMovingForwardCursor(boolean in_forward) Tell the camera target to start/stop moving forward.- Parameters:
in_forward-trueif the camera should be moving
-
setTargetMovingForwardKey
void setTargetMovingForwardKey(boolean in_forward) Tell the camera target to start/stop moving forward.- Parameters:
in_forward-trueif the camera should be moving
-
setTargetMovingLeftCursor
void setTargetMovingLeftCursor(boolean in_left) Tell the camera target to start/stop moving left.- Parameters:
in_left-trueif the camera should be moving
-
setTargetMovingLeftKey
void setTargetMovingLeftKey(boolean in_left) Tell the camera target to start/stop moving left.- Parameters:
in_left-trueif the camera should be moving
-
setTargetMovingRightCursor
void setTargetMovingRightCursor(boolean in_right) Tell the camera target to start/stop moving right.- Parameters:
in_right-trueif the camera should be moving
-
setTargetMovingRightKey
void setTargetMovingRightKey(boolean in_right) Tell the camera target to start/stop moving right.- Parameters:
in_right-trueif the camera should be moving
-
takeTargetMovingForward
double takeTargetMovingForward()Retriever=getTargetMovingForwardContinuous(), set the current forward movement to 0.0, and returnr.- Returns:
- The amount of forward movement.
-
takeTargetMovingRight
double takeTargetMovingRight()- Returns:
- The amount of rightward movement.
-