|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Title: ElementPolygon
Description: A 3D polygon.
Polygons can be closed (a real polygon) or open (polylines).
Nested Class Summary | |
static class |
ElementPolygon.ElementPolygonLoader
|
Nested classes inherited from class org.opensourcephysics.display3d.core.Element |
Element.Loader |
Field Summary |
Fields inherited from interface org.opensourcephysics.display3d.core.Element |
TARGET_POSITION, TARGET_SIZE |
Method Summary | |
double[][] |
getData()
Gets ths data of the points fo the polygon |
boolean |
isClosed()
Gets whether the polygon is closed |
void |
setClosed(boolean closed)
Sets whether the polygon is closed |
void |
setData(double[][] data)
Sets the data for the points of the polygon. |
Methods inherited from interface org.opensourcephysics.display3d.core.Element |
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 |
Methods inherited from interface org.opensourcephysics.display3d.core.interaction.InteractionSource |
addInteractionListener, getInteractionTarget, removeInteractionListener |
Method Detail |
public void setClosed(boolean closed)
closed
- booleanpublic boolean isClosed()
public void setData(double[][] data)
data
- double[][] the double[nPoints][3] array with the datapublic double[][] getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |