Class RotateWidget
java.lang.Object
com.ardor3d.extension.interact.widget.AbstractInteractWidget
com.ardor3d.extension.interact.widget.RotateWidget
-
Field Summary
Modifier and TypeFieldDescriptionprotected Matrix3
protected InteractRing
protected Matrix3
protected InteractRing
protected InteractRing
protected InteractRing
static MouseCursor
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 ReadOnlyQuaternion
getNewAxisRotation
(InteractRing ring, Vector2 oldMouse, MouseState current, Camera camera, InteractManager manager) getXRing()
getYRing()
getZRing()
protected void
mouseDeparted
(Canvas source, MouseState current, InteractManager manager) protected void
mouseEntered
(Canvas source, MouseState current, 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
setInteractMatrix
(InteractMatrix matrix) protected void
void
setTexture
(Texture2D texture) Call this after creating the rings you want to use.void
targetDataUpdated
(InteractManager manager) protected void
updateBlendStates
(Spatial highlight) withXAxis
(ReadOnlyColorRGBA color) withXAxis
(ReadOnlyColorRGBA color, float scale, float width) withYAxis
(ReadOnlyColorRGBA color) withYAxis
(ReadOnlyColorRGBA color, float scale, float width) withZAxis
(ReadOnlyColorRGBA color) withZAxis
(ReadOnlyColorRGBA color, float scale, float width) Methods inherited from class com.ardor3d.extension.interact.widget.AbstractInteractWidget
addFilter, applyFilters, beginDrag, calculateHandleScale, checkMouseOver, checkShouldDrag, clearFilters, endDrag, findPick, getDragButton, getHandle, getInteractMatrix, getLastPick, getLastPickable, getMouseOverCallback, getPickRay, isActiveInputOnly, isActiveRenderOnly, isActiveUpdateOnly, isFlipPickRay, lostControl, receivedControl, removeFilter, setActiveInputOnly, setActiveRenderOnly, setActiveUpdateOnly, setDragButton, setFlipPickRay, setMouseOverCallback, targetChanged, update
-
Field Details
-
_calcMat3
-
_rotateStore
-
_lastRing
-
_xRing
-
_yRing
-
_zRing
-
DEFAULT_CURSOR
-
-
Constructor Details
-
RotateWidget
-
-
Method Details
-
setTexture
Call this after creating the rings you want to use.- Parameters:
texture
- the texture to set
-
mouseEntered
- Overrides:
mouseEntered
in classAbstractInteractWidget
-
mouseDeparted
- Overrides:
mouseDeparted
in classAbstractInteractWidget
-
updateBlendStates
-
withXAxis
-
withXAxis
-
withXAxis
-
withYAxis
-
withYAxis
-
withYAxis
-
withZAxis
-
withZAxis
-
withZAxis
-
setRingRotations
-
targetDataUpdated
- Overrides:
targetDataUpdated
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.
-
getNewAxisRotation
protected ReadOnlyQuaternion getNewAxisRotation(InteractRing ring, Vector2 oldMouse, MouseState current, Camera camera, InteractManager manager) -
setInteractMatrix
- Overrides:
setInteractMatrix
in classAbstractInteractWidget
-
getXRing
-
getYRing
-
getZRing
-