Class MoveWidget
java.lang.Object
com.ardor3d.extension.interact.widget.AbstractInteractWidget
com.ardor3d.extension.interact.widget.MoveWidget
-
Field Summary
Modifier and TypeFieldDescriptionprotected InteractMatrix
protected InteractArrow
protected InteractArrow
protected ColorRGBA
protected InteractArrow
protected ColorRGBA
protected InteractArrow
protected ColorRGBA
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, _lastDragSpatial, _lastMouseOverSpatial, _mouseOver, _mouseOverCallback, _results, MIN_SCALE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
calculateHandleScale
(InteractManager manager) protected Vector3
getNewOffset
(InteractArrow arrow, Vector2 oldMouse, MouseState current, Camera camera, InteractManager manager) getYRing()
getZRing()
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) withXAxis
(ReadOnlyColorRGBA color) withXAxis
(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) withYAxis
(ReadOnlyColorRGBA color) withYAxis
(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) withZAxis
(ReadOnlyColorRGBA color) withZAxis
(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) 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 -
_lastArrow
-
_xArrow
-
_yArrow
-
_zArrow
-
_xColor
-
_yColor
-
_zColor
-
_interactMatrix
-
DEFAULT_CURSOR
-
-
Constructor Details
-
MoveWidget
-
-
Method Details
-
withXAxis
-
withXAxis
-
withXAxis
public MoveWidget withXAxis(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) -
withYAxis
-
withYAxis
-
withYAxis
public MoveWidget withYAxis(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) -
withZAxis
-
withZAxis
-
withZAxis
public MoveWidget withZAxis(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) -
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(InteractArrow arrow, Vector2 oldMouse, MouseState current, Camera camera, InteractManager manager) -
getXArrow
-
getYRing
-
getZRing
-