Class CompoundInteractWidget
java.lang.Object
com.ardor3d.extension.interact.widget.AbstractInteractWidget
com.ardor3d.extension.interact.widget.CompoundInteractWidget
-
Field Summary
Modifier and TypeFieldDescriptionprotected AbstractInteractWidget
protected Map
<String, AbstractInteractWidget> 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilter
(UpdateFilter filter) void
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
receivedControl
(InteractManager manager) void
removeFilter
(UpdateFilter filter) void
render
(Renderer renderer, InteractManager manager) void
setInteractMatrix
(InteractMatrix matrix) void
targetChanged
(InteractManager manager) void
targetDataUpdated
(InteractManager manager) void
update
(ReadOnlyTimer timer, InteractManager manager) withMoveXAxis
(ReadOnlyColorRGBA color) withMoveXAxis
(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) withMoveYAxis
(ReadOnlyColorRGBA color) withMoveYAxis
(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) withMoveZAxis
(ReadOnlyColorRGBA color) withMoveZAxis
(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) withMultiPlanarHandle
(double extent) withPlanarHandle
(MovePlanarWidget.MovePlane plane, double radius, double height, ReadOnlyColorRGBA color) withPlanarHandle
(MovePlanarWidget.MovePlane plane, ReadOnlyColorRGBA color) withRingTexture
(Texture2D texture) withRotateXAxis
(ReadOnlyColorRGBA color) withRotateXAxis
(ReadOnlyColorRGBA color, float scale, float width) withRotateYAxis
(ReadOnlyColorRGBA color) withRotateYAxis
(ReadOnlyColorRGBA color, float scale, float width) withRotateZAxis
(ReadOnlyColorRGBA color) withRotateZAxis
(ReadOnlyColorRGBA color, float scale, float width) Methods inherited from class com.ardor3d.extension.interact.widget.AbstractInteractWidget
applyFilters, beginDrag, calculateHandleScale, checkMouseOver, checkShouldDrag, endDrag, findPick, getDragButton, getHandle, getLastPick, getLastPickable, getMouseOverCallback, getPickRay, isActiveInputOnly, isActiveRenderOnly, isActiveUpdateOnly, isFlipPickRay, lostControl, mouseDeparted, mouseEntered, setActiveInputOnly, setActiveRenderOnly, setActiveUpdateOnly, setDragButton, setFlipPickRay, setMouseOverCallback
-
Field Details
-
MIN_SCALE
public static double MIN_SCALE -
_widgets
-
_lastInputWidget
-
-
Constructor Details
-
CompoundInteractWidget
public CompoundInteractWidget()
-
-
Method Details
-
addFilter
- Overrides:
addFilter
in classAbstractInteractWidget
-
removeFilter
- Overrides:
removeFilter
in classAbstractInteractWidget
-
clearFilters
public void clearFilters()- Overrides:
clearFilters
in classAbstractInteractWidget
-
withMoveXAxis
-
withMoveXAxis
-
withMoveXAxis
public CompoundInteractWidget withMoveXAxis(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) -
withMoveYAxis
-
withMoveYAxis
-
withMoveYAxis
public CompoundInteractWidget withMoveYAxis(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) -
withMoveZAxis
-
withMoveZAxis
-
withMoveZAxis
public CompoundInteractWidget withMoveZAxis(ReadOnlyColorRGBA color, double scale, double width, double lengthGap, double tipGap) -
withRotateXAxis
-
withRotateXAxis
-
withRotateXAxis
-
withRotateYAxis
-
withRotateYAxis
-
withRotateYAxis
-
withRotateZAxis
-
withRotateZAxis
-
withRotateZAxis
-
withRingTexture
-
withMultiPlanarHandle
-
withMultiPlanarHandle
-
withPlanarHandle
public CompoundInteractWidget withPlanarHandle(MovePlanarWidget.MovePlane plane, ReadOnlyColorRGBA color) -
withPlanarHandle
public CompoundInteractWidget withPlanarHandle(MovePlanarWidget.MovePlane plane, double radius, double height, ReadOnlyColorRGBA color) -
targetChanged
- Overrides:
targetChanged
in classAbstractInteractWidget
-
targetDataUpdated
- Overrides:
targetDataUpdated
in classAbstractInteractWidget
-
receivedControl
- Overrides:
receivedControl
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.
-
setInteractMatrix
- Overrides:
setInteractMatrix
in classAbstractInteractWidget
-
getInteractMatrix
- Overrides:
getInteractMatrix
in classAbstractInteractWidget
-
update
- Overrides:
update
in classAbstractInteractWidget
-