Class MovePlanarWidget
java.lang.Object
com.ardor3d.extension.interact.widget.AbstractInteractWidget
com.ardor3d.extension.interact.widget.MovePlanarWidget
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected MovePlanarWidget.MovePlane
static MouseCursor
static double
static double
Fields inherited from class com.ardor3d.extension.interact.widget.AbstractInteractWidget
_activeInputOnly, _activeRenderOnly, _activeUpdateOnly, _calcRay, _calcVec3A, _calcVec3B, _calcVec3C, _calcVec3D, _dragButton, _dragging, _filters, _flipPickRay, _handle, _interactMatrix, _lastDragSpatial, _lastMouseOverSpatial, _mouseOver, _mouseOverCallback, _results, MIN_SCALE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
calculateHandleScale
(InteractManager manager) protected Vector3
getNewOffset
(Vector2 oldMouse, MouseState current, Camera camera, InteractManager manager) void
processInput
(Canvas source, TwoInputStates inputStates, AtomicBoolean inputConsumed, InteractManager manager) Use the given input states to determine if and how to activate this widget.void
render
(Renderer renderer, InteractManager manager) void
targetDataUpdated
(InteractManager manager) withDefaultHandle
(double radius, double height, ReadOnlyColorRGBA color) withHandle
(Spatial handle) Methods inherited from class com.ardor3d.extension.interact.widget.AbstractInteractWidget
addFilter, applyFilters, beginDrag, checkMouseOver, checkShouldDrag, clearFilters, endDrag, findPick, getDragButton, getHandle, getInteractMatrix, getLastPick, getLastPickable, getMouseOverCallback, getPickRay, isActiveInputOnly, isActiveRenderOnly, isActiveUpdateOnly, isFlipPickRay, lostControl, mouseDeparted, mouseEntered, receivedControl, removeFilter, setActiveInputOnly, setActiveRenderOnly, setActiveUpdateOnly, setDragButton, setFlipPickRay, setInteractMatrix, setMouseOverCallback, targetChanged, update
-
Field Details
-
DEFAULT_SCALE
public static double DEFAULT_SCALE -
MOUSEOVER_SCALE
public static double MOUSEOVER_SCALE -
_plane
-
DEFAULT_CURSOR
-
-
Constructor Details
-
MovePlanarWidget
-
-
Method Details
-
withDefaultHandle
-
withPlane
-
withHandle
-
targetDataUpdated
- Overrides:
targetDataUpdated
in classAbstractInteractWidget
-
calculateHandleScale
- Overrides:
calculateHandleScale
in classAbstractInteractWidget
-
render
- Overrides:
render
in classAbstractInteractWidget
-
processInput
public void processInput(Canvas source, TwoInputStates inputStates, AtomicBoolean inputConsumed, InteractManager manager) Description copied from class:AbstractInteractWidget
Use the given input states to determine if and how to activate this widget. If the widget uses the given input, inputConsumed should be set to "true" and applyFilters should be called by this method.- Overrides:
processInput
in classAbstractInteractWidget
- Parameters:
source
- the canvas that is our input source.inputStates
- the current and previous state of our input devices.inputConsumed
- an atomic boolean used to indicate back to the caller of this function that we have consumed the given inputStates. If set to true, no other widgets will be offered this input, nor will any other scene input triggers attached to the manager.manager
- our interact manager.
-
getNewOffset
protected Vector3 getNewOffset(Vector2 oldMouse, MouseState current, Camera camera, InteractManager manager)
-