Element
, InteractionSource
ElementPolygon
public interface ElementPolygon extends Element
Title: ElementPolygon
Description: A 3D polygon.
Polygons can be closed (a real polygon) or open (polylines).Modifier and Type | Interface | Description |
---|---|---|
static class |
ElementPolygon.ElementPolygonLoader |
Element.Loader
TARGET_POSITION, TARGET_SIZE
Modifier and Type | Method | Description |
---|---|---|
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.
|
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
addInteractionListener, getInteractionTarget, removeInteractionListener
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()