Class SimpleScaleWidget
java.lang.Object
com.ardor3d.extension.interact.widget.AbstractInteractWidget
com.ardor3d.extension.interact.widget.SimpleScaleWidget
-
Field Summary
Modifier and TypeFieldDescriptionprotected ReadOnlyVector3
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 double
getNewScale
(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) withArrow
(ReadOnlyVector3 arrowDirection) withArrow
(ReadOnlyVector3 arrowDirection, ReadOnlyColorRGBA color) withArrow
(ReadOnlyVector3 arrowDirection, ReadOnlyColorRGBA color, 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 -
_arrowDirection
-
DEFAULT_CURSOR
-
-
Constructor Details
-
SimpleScaleWidget
-
-
Method Details
-
withArrow
-
withArrow
-
withArrow
public SimpleScaleWidget withArrow(ReadOnlyVector3 arrowDirection, ReadOnlyColorRGBA color, 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.
-
getNewScale
protected double getNewScale(Vector2 oldMouse, MouseState current, Camera camera, InteractManager manager)
-