Element, ElementTessellation, InteractionSourcepublic class ElementTessellation extends AbstractTile implements ElementTessellation
Title: ElementBox
Description: Painter's algorithm implementation of a Surface
| Modifier and Type | Field | Description |
|---|---|---|
protected double[][][] |
data |
corners, numberOfTilesTARGET_POSITION, TARGET_SIZEtargetPosition, targetSize| Constructor | Description |
|---|---|
ElementTessellation() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
computeCorners() |
This will be used by subclasses whenever there is a need to recompute
the actual values of the corners before drawing.
|
void |
getExtrema(double[] min,
double[] max) |
Returns the extreme points of a box that contains the element.
|
static XML.ObjectLoader |
getLoader() |
Returns an XML.ObjectLoader to save and load object data.
|
double[][][] |
getTiles() |
Gets the data of the surface.
|
void |
setTiles(double[][][] data) |
Sets the data of the tiles.
|
getTargetHit, projectPoints, setColorBelowWhenEqual, setColorOriginAndDirection, setColorRegions, setCorners, setDrawQuickInteriorgetDrawingPanel3D, 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, toSpaceFrameaddInteractionListener, getAxesMode, getDrawingPanel3D, getHotSpotBodyCoordinates, getInteractionTarget, getName, getSizeX, getSizeY, getSizeZ, getStyle, getTransformation, getX, getY, getZ, isReallyVisible, isVisible, loadUnmutableObjects, removeInteractionListener, setName, setSizeX, setSizeXYZ, setSizeXYZ, setSizeY, setSizeZ, setTransformation, setVisible, setX, setXYZ, setXYZ, setY, setZ, toBodyFrame, toSpaceFrameaddInteractionListener, getInteractionTarget, removeInteractionListenerpublic void setTiles(double[][][] data)
ElementTessellationsetTiles in interface ElementTessellationdata - the double[nTiles][nVertex][3] array of coordinates for the tiles.
The number of vertex of the tiles may vary.public double[][][] getTiles()
ElementTessellationgetTiles in interface ElementTessellationpublic void getExtrema(double[] min,
double[] max)
Elementmin - double[] A previously allocated double[3] array that will hold
the minimum pointmax - double[] A previously allocated double[3] array that will hold
the maximum pointprotected void computeCorners()
AbstractTilecomputeCorners in class AbstractTilepublic static XML.ObjectLoader getLoader()