|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElementPolygon
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/interfaces inherited from interface 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. |
void |
setData(double[] xArray,
double[] yArray,
double[] zArray)
Sets the data for the points of the polygon. |
Methods inherited from interface org.opensourcephysics.display3d.core.Element |
---|
getDrawingPanel3D, 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 |
---|
void setClosed(boolean closed)
closed
- booleanboolean isClosed()
void setData(double[][] data)
data
- double[][] the double[nPoints][3] array with the datavoid setData(double[] xArray, double[] yArray, double[] zArray)
xArray
- double[] the double[nPoints] array with the X coordinatesyArray
- double[] the double[nPoints] array with the Y coordinateszArray
- double[] the double[nPoints] array with the Z coordinatesdouble[][] getData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |