Element
, ElementPlane
, InteractionSource
public class ElementPlane extends AbstractTile implements ElementPlane
Title: ElementBox
Description: Painter's algorithm implementation of a Plane
ElementPlane.ElementPlaneLoader
corners, numberOfTiles
TARGET_POSITION, TARGET_SIZE
targetPosition, targetSize
Constructor | Description |
---|---|
ElementPlane() |
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[] |
getFirstDirection() |
Gets the first direction vector of th eplane
|
static XML.ObjectLoader |
getLoader() |
Returns an XML.ObjectLoader to save and load object data.
|
double[] |
getSecondDirection() |
Gets the second direction vector of th eplane
|
void |
setFirstDirection(double[] vector) |
Sets the first direction vector of th eplane
|
void |
setSecondDirection(double[] vector) |
Sets the second direction vector of th eplane
|
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 setFirstDirection(double[] vector)
ElementPlane
setFirstDirection
in interface ElementPlane
public double[] getFirstDirection()
ElementPlane
getFirstDirection
in interface ElementPlane
public void setSecondDirection(double[] vector)
ElementPlane
setSecondDirection
in interface ElementPlane
public double[] getSecondDirection()
ElementPlane
getSecondDirection
in interface ElementPlane
protected void computeCorners()
AbstractTile
computeCorners
in class AbstractTile
public static XML.ObjectLoader getLoader()