Element
, ElementSurface
, InteractionSource
public class ElementSurface extends AbstractTile implements ElementSurface
Title: ElementBox
Description: Painter's algorithm implementation of a Surface
Modifier and Type | Field | Description |
---|---|---|
protected double[][][] |
data |
|
protected int |
nu |
|
protected int |
nv |
corners, numberOfTiles
TARGET_POSITION, TARGET_SIZE
targetPosition, targetSize
Constructor | Description |
---|---|
ElementSurface() |
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.
|
double[][][] |
getData() |
Gets the data of the surface.
|
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.
|
void |
setData(double[][][] data) |
Sets the data of the surface.
|
getTargetHit, projectPoints, setColorBelowWhenEqual, setColorOriginAndDirection, setColorRegions, setCorners, setDrawQuickInterior
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, 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, toSpaceFrame
addInteractionListener, getInteractionTarget, removeInteractionListener
public void setData(double[][][] data)
ElementSurface
setData
in interface ElementSurface
data
- the double[nu][nv][3] array of coordinates for the surface.public double[][][] getData()
ElementSurface
getData
in interface ElementSurface
public void getExtrema(double[] min, double[] max)
Element
min
- 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()
AbstractTile
computeCorners
in class AbstractTile
public static XML.ObjectLoader getLoader()