public class MotionTrailShape3D extends Polyline3D implements MotionTrail
| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_MOTION_EASING |
static int |
DEFAULT_NUM_POINTS |
protected java.lang.Object |
mData |
protected int |
mMinLength |
protected float |
mMotionEasingX |
protected float |
mMotionEasingY |
protected float |
mMotionEasingZ |
protected int |
mNumPoints |
protected int |
mSegmentLength |
protected Manipulatable |
mTarget |
protected Point3D |
mTargetOffset |
VERTEX_POINTER_SIZEmAtlasFrame, mColorValues, mNarrowAngle, mNumPointsUsed, mPoints, mStackable, mStroke1, mStroke2, mStrokeColors, mStrokeInterpolator, mTextureCap1, mTextureCap2, mTextureCoords, mTextureRepeating, mTotalLength, mUniParent, mVertices, mVerticesNumATT_ASYNC, ATT_SOURCE, mColorBuffer, mTexture, mTextureCoordBuffer, mTextureCoordBufferScaled, mVertexBuffer, TAGATT_ALPHA, ATT_ANIMATOR, ATT_BLEND_MODE, ATT_COLOR, ATT_DEBUG, ATT_ORIGIN_AT_CENTER, ATT_ROTATION, ATT_VISIBLE, mAlive, mAlpha, mAlphaTestEnabled, mAutoUpdateBounds, mBlendFunc, mBounds, mBypassCameraClipping, mColor, mDebugFlags, mFrameDuration, mHasTransformValues, mId, mInvalidateFlags, mManipulators, mMask, mMatrix, mNumManipulators, mOrigin, mParent, mPerspectiveEnabled, mPivot, mPosition, mRotation, mRotationVectorX, mRotationVectorY, mRotationVectorZ, mScale, mScene, mSceneSize, mSize, mSkew, mTransformMatrix, mTransformMatrixValues, mUIConstraint, mVisible, mZFLIP_X, FLIP_YALL, ALPHA, BLEND, BOUNDS, CACHE, CHILDREN, COLOR, DEPTH, FRAME, ORIGIN, PARENT, PARENT_BOUNDS, PERSPECTIVE, PIVOT, POSITION, ROTATION, SCALE, SIZE, SKEW, TEXTURE, TEXTURE_COORDS, TRANSFORM_MATRIX, VERTICES, VISIBILITY, VISUAL| Constructor and Description |
|---|
MotionTrailShape3D() |
MotionTrailShape3D(Manipulatable target) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getData() |
int |
getMinLength() |
float |
getMotionEasingX() |
float |
getMotionEasingY() |
float |
getMotionEasingZ() |
int |
getNumPoints() |
Manipulatable |
getTarget() |
Point3D |
getTargetOffset() |
void |
move(float dx,
float dy) |
void |
move(float dx,
float dy,
float dz) |
void |
reset(java.lang.Object... params) |
void |
setData(java.lang.Object data) |
void |
setMinLength(int totalLength) |
void |
setMotionEasing(float easing) |
void |
setMotionEasing(float easingX,
float easingY,
float easingZ) |
void |
setNumPoints(int numPoints) |
void |
setPointsAt(float x,
float y,
float z) |
void |
setPointsAt(Point3D p) |
void |
setPosition(float x,
float y) |
void |
setPosition(float x,
float y,
float z) |
void |
setTarget(Manipulatable target) |
void |
setTargetOffset(float offsetX,
float offsetY,
float offsetZ) |
void |
setZ(float z)
Set the Z-depth
|
boolean |
update(int deltaTime) |
validateVerticesallocateVertices, draw, getAtlasFrame, getNumStackedChildren, getParent, getPoints, getStrokeInterpolator, getTotalLength, isStackable, onAdded, onRemoved, setAtlasFrame, setPoints, setPoints, setStackable, setStrokeColors, setStrokeInterpolator, setStrokeRange, setTexture, setTextureCaps, setTextureRepeating, stackdispose, drawChildren, drawStart, drawWireframe, flipTextureCoordBuffer, getColorBuffer, getTexture, getTextureCoordBuffer, getVertexBuffer, onAdded, onTextureLoaded, setColorBuffer, setTextureCoordBuffer, setTextureCoordBuffer, setVertexBuffer, setXMLAttributes, validateTextureCoordBufferaddManipulator, drawBounds, drawEnd, getAlpha, getBlendFunc, getBounds, getColor, getDebugFlags, getFps, getGlobalPosition, getHeight, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getMask, getMatrix, getNumManipulators, getObjectTree, getOrigin, getParentMatrix, getPivot, getPosition, getRotation, getScale, getScene, getSceneSize, getSize, getSkew, getUIConstraint, getWidth, getX, getY, getZ, globalToLocal, invalidate, invalidate, isAlive, isAlphaTestEnabled, isAutoUpdateBounds, isBypassCameraClipping, isOriginAtCenter, isPerspectiveEnabled, isVisible, localToGlobal, moveTo, onAddedToScene, onCreateChildren, onPreConcatParentMatrix, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, rotate, setAlive, setAlpha, setAlphaTestEnabled, setAutoUpdateBounds, setBlendFunc, setBypassCameraClipping, setColor, setDebugFlags, setFps, setId, setMask, setOrigin, setOrigin, setOriginAtCenter, setPerspectiveEnabled, setPivot, setPivot, setPivotAtCenter, setPosition, setRotation, setRotationVector, setScale, setScale, setSize, setSize, setSkew, setUIConstraint, setVisible, setX, setY, shouldDraw, toString, updateBounds, updateChildren, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdraw, isPerspectiveEnabled, onAdded, onCreateChildren, setPerspectiveEnabled, setXMLAttributesaddManipulator, dispose, getAlpha, getBlendFunc, getBounds, getColor, getFps, getId, getInheritedBlendFunc, getInheritedColor, getManipulator, getNumManipulators, getObjectTree, getOrigin, getParent, getPivot, getScene, getSkew, getZ, globalToLocal, invalidate, invalidate, isAlive, isAutoUpdateBounds, isVisible, localToGlobal, onAddedToScene, onRemoved, onRemovedFromScene, queueEvent, removeAllManipulators, removeFromParent, removeManipulator, setAlive, setAlpha, setAutoUpdateBounds, setBlendFunc, setColor, setFps, setId, setOrigin, setOrigin, setOriginAtCenter, setPivot, setPivot, setPivotAtCenter, setSkew, setVisible, shouldDraw, updateBoundsgetHeight, getPosition, getRotation, getScale, getSize, getWidth, getX, getY, moveTo, rotate, setPosition, setRotation, setScale, setScale, setSize, setSize, setX, setYpublic static final int DEFAULT_NUM_POINTS
public static final float DEFAULT_MOTION_EASING
protected int mNumPoints
protected float mMotionEasingX
protected float mMotionEasingY
protected float mMotionEasingZ
protected int mMinLength
protected int mSegmentLength
protected Manipulatable mTarget
protected Point3D mTargetOffset
protected java.lang.Object mData
public MotionTrailShape3D()
public MotionTrailShape3D(Manipulatable target)
public java.lang.Object getData()
getData in interface MotionTrailpublic void setData(java.lang.Object data)
setData in interface MotionTrailpublic void setPosition(float x,
float y)
setPosition in interface ManipulatablesetPosition in class BaseDisplayObjectpublic final void setPosition(float x,
float y,
float z)
public void setZ(float z)
BaseDisplayObjectsetZ in interface DisplayablesetZ in class BaseDisplayObjectBaseDisplayObject.setAlphaTestEnabled(boolean)public void move(float dx,
float dy)
move in interface Manipulatablemove in class BaseDisplayObjectpublic void move(float dx,
float dy,
float dz)
public boolean update(int deltaTime)
update in interface Displayableupdate in class Polylinepublic int getNumPoints()
getNumPoints in interface MotionTrailpublic void setNumPoints(int numPoints)
setNumPoints in interface MotionTrailpublic Manipulatable getTarget()
getTarget in interface MotionTrailpublic void setTarget(Manipulatable target)
setTarget in interface MotionTrailpublic void setPointsAt(float x,
float y,
float z)
public void setPointsAt(Point3D p)
public int getMinLength()
public void setMinLength(int totalLength)
public float getMotionEasingX()
public float getMotionEasingY()
public float getMotionEasingZ()
public void setMotionEasing(float easing)
easing, - must be from 0 to 1public void setMotionEasing(float easingX,
float easingY,
float easingZ)
public Point3D getTargetOffset()
public void setTargetOffset(float offsetX,
float offsetY,
float offsetZ)