Class InteractArrow
java.lang.Object
com.ardor3d.scenegraph.Spatial
com.ardor3d.scenegraph.Node
com.ardor3d.scenegraph.shape.Arrow
com.ardor3d.extension.interact.widget.InteractArrow
InteractArrow
is basically a cylinder with a pyramid on top. It extends the basic Arrow shape to include
a customizable gap between arrow head and base, and base and origin. This shape points along the +zaxis instead.-
Field Summary
Modifier and TypeFieldDescriptionprotected double
protected double
protected static final Quaternion
Fields inherited from class com.ardor3d.scenegraph.Spatial
_controllers, _delegateMap, _dirtyMark, _frustumIntersects, _listener, _localTransform, _name, _parent, _queueDistance, _renderStateList, _sceneHints, _userData, _worldBound, _worldTransform, ON_DIRTY_ATTACHED, ON_DIRTY_BOUNDING, ON_DIRTY_RENDERSTATE, ON_DIRTY_TRANSFORM, ON_DIRTY_TRANSFORM_ONLY
-
Constructor Summary
ConstructorDescriptionInteractArrow
(String name) InteractArrow
(String name, double length, double width) InteractArrow
(String name, double length, double width, double lengthGap, double tipGap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
double
double
void
read
(InputCapsule capsule) void
setLengthGap
(double lengthGap) void
setTipGap
(double tipGap) void
write
(OutputCapsule capsule) Methods inherited from class com.ardor3d.scenegraph.shape.Arrow
getLength, getWidth, setDefaultColor, setLength, setSolidColor, setWidth
Methods inherited from class com.ardor3d.scenegraph.Node
acceptVisitor, attachChild, attachChildAt, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, getChild, getChild, getChildIndex, getChildren, getClassTag, getNumberOfChildren, hasChild, makeCopy, makeInstanced, propagateDirtyDown, sortLights, swapChildren, updateChildren, updateWorldBound, updateWorldRenderStates, updateWorldTransform
Methods inherited from class com.ardor3d.scenegraph.Spatial
addController, addTranslation, addTranslation, applyWorldRenderStates, clearControllers, clearDirty, clearDirty, clearRenderState, getController, getControllerCount, getControllers, getCurrentRenderDelegate, getLastFrustumIntersection, getListener, getLocalLastFrustumIntersection, getLocalRenderState, getLocalRenderStates, getName, getParent, getParentHintable, getRenderDelegate, getRotation, getScale, getSceneHints, getTransform, getTranslation, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, isDirty, localToWorld, markDirty, markDirty, onDraw, propagateBoundToRoot, propagateDirtyUp, propagateStatesFromRoot, propageEventUp, removeController, removeController, removeFromParent, setLastFrustumIntersection, setListener, setName, setParent, setRenderDelegate, setRenderState, setRotation, setRotation, setScale, setScale, setScale, setTransform, setTranslation, setTranslation, setUserData, setWorldRotation, setWorldRotation, setWorldScale, setWorldScale, setWorldScale, setWorldTransform, setWorldTranslation, setWorldTranslation, toString, updateControllers, updateGeometricState, updateGeometricState, updateWorldRenderStates, worldToLocal
-
Field Details
-
_lengthGap
protected double _lengthGap -
_tipGap
protected double _tipGap -
ROTATOR
-
-
Constructor Details
-
InteractArrow
public InteractArrow() -
InteractArrow
-
InteractArrow
-
InteractArrow
-
-
Method Details
-
buildArrow
public void buildArrow()- Overrides:
buildArrow
in classArrow
-
getLengthGap
public double getLengthGap() -
setLengthGap
public void setLengthGap(double lengthGap) -
getTipGap
public double getTipGap() -
setTipGap
public void setTipGap(double tipGap) -
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classArrow
- Parameters:
capsule
- the capsule- Throws:
IOException
- Signals that an I/O exception has occurred.- See Also:
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classArrow
- Parameters:
capsule
- the input capsule- Throws:
IOException
- Signals that an I/O exception has occurred.- See Also:
-