org.opensourcephysics.display3d.simple3d
Class ElementPlane
java.lang.Object
org.opensourcephysics.display3d.simple3d.Element
org.opensourcephysics.display3d.simple3d.AbstractTile
org.opensourcephysics.display3d.simple3d.ElementPlane
- All Implemented Interfaces:
- Element, ElementPlane, InteractionSource
public class ElementPlane
- extends AbstractTile
- implements ElementPlane
Title: ElementBox
Description: Painter's algorithm implementation of a Plane
- Version:
- March 2005
- Author:
- Francisco Esquembre
Method Summary |
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 |
Methods inherited from class org.opensourcephysics.display3d.simple3d.Element |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
ElementPlane
public ElementPlane()
setFirstDirection
public void setFirstDirection(double[] vector)
- Description copied from interface:
ElementPlane
- Sets the first direction vector of th eplane
- Specified by:
setFirstDirection
in interface ElementPlane
getFirstDirection
public double[] getFirstDirection()
- Description copied from interface:
ElementPlane
- Gets the first direction vector of th eplane
- Specified by:
getFirstDirection
in interface ElementPlane
- Returns:
- the double[3] array for the first vector
setSecondDirection
public void setSecondDirection(double[] vector)
- Description copied from interface:
ElementPlane
- Sets the second direction vector of th eplane
- Specified by:
setSecondDirection
in interface ElementPlane
getSecondDirection
public double[] getSecondDirection()
- Description copied from interface:
ElementPlane
- Gets the second direction vector of th eplane
- Specified by:
getSecondDirection
in interface ElementPlane
- Returns:
- the double[3] array for the first vector
computeCorners
protected void computeCorners()
- Description copied from class:
AbstractTile
- This will be used by subclasses whenever there is a need to recompute
the actual values of the corners before drawing.
Synchronization is recomended.
- Specified by:
computeCorners
in class AbstractTile
getLoader
public static XML.ObjectLoader getLoader()
- Returns an XML.ObjectLoader to save and load object data.
- Returns:
- the XML.ObjectLoader