public interface ElementTrail extends Element
Title: ElementTrail
Description:A trail of 3D pixels on the screen.
This object is often used to show the path of a moving object.Modifier and Type | Interface and Description |
---|---|
static class |
ElementTrail.Loader |
TARGET_POSITION, TARGET_SIZE
Modifier and Type | Method and Description |
---|---|
void |
addPoint(double[] point)
Adds a new double[] point to the trail.
|
void |
addPoint(double x,
double y,
double z)
Adds a new (x,y,z) point to the trail.
|
void |
clear()
Clears all points from the trail.
|
int |
getMaximumPoints()
Returns the maximum number of points allowed for the trail
|
boolean |
isConnected()
Gets the connected flag.
|
void |
moveToPoint(double x,
double y,
double z)
Starts a new (x,y,z) trail segment by moving to a new point
without drawing.
|
void |
setConnected(boolean connected)
Sets the connected flag.
|
void |
setMaximumPoints(int maximum)
Sets the maximum number of points for the trail.
|
getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isVisible, loadUnmutableObjects, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrame
addInteractionListener, getInteractionTarget, removeInteractionListener
void addPoint(double x, double y, double z)
x
- doubley
- doublez
- doublevoid addPoint(double[] point)
point
- double[] The array with the coordinates of the point.
If the length of the array is 2, the coordinates are asumed to be X
and Y (Z=0). If it is 3, then X, Y, and Z (as usual).void setMaximumPoints(int maximum)
maximum
- intint getMaximumPoints()
void setConnected(boolean connected)
connected
- booleanboolean isConnected()
setConnected(boolean)
void moveToPoint(double x, double y, double z)
x
- doubley
- doublez
- doublevoid clear()