sim.portrayal3d.grid
Class SparseGrid3DPortrayal
java.lang.Object
sim.portrayal.FieldPortrayal
sim.portrayal3d.FieldPortrayal3D
sim.portrayal3d.SparseFieldPortrayal3D
sim.portrayal3d.grid.SparseGrid3DPortrayal
- All Implemented Interfaces:
- Portrayal, Portrayal3D, java.io.Serializable
- public class SparseGrid3DPortrayal
- extends SparseFieldPortrayal3D
portrayal 3D for SparseFields.
- See Also:
- Serialized Form
Methods inherited from class sim.portrayal.FieldPortrayal |
getDefaultNullPortrayal, getInspector, getName, getPortrayalForAll, getPortrayalForNull, getPortrayalForObject, getPortrayalForRemainder, setPortrayalForAll, setPortrayalForClass, setPortrayalForNull, setPortrayalForObject, setPortrayalForRemainder, setSelected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SparseGrid3DPortrayal
public SparseGrid3DPortrayal(SparseGrid2D field,
double dx,
double dy)
SparseGrid3DPortrayal
public SparseGrid3DPortrayal(SparseGrid3D field,
double dx,
double dy,
double dz)
SparseGrid3DPortrayal
public SparseGrid3DPortrayal(SparseGrid2D field,
javax.media.j3d.Transform3D transf)
SparseGrid3DPortrayal
public SparseGrid3DPortrayal(SparseGrid3D field,
javax.media.j3d.Transform3D transf)
getLocationOfObjectAsVector3d
public javax.vecmath.Vector3d getLocationOfObjectAsVector3d(java.lang.Object obj)
- Description copied from class:
SparseFieldPortrayal3D
- Instead of allocating a new Vector3d
for every call, reuse
tmpVect
, unless
concurrecy is an issue.
- Specified by:
getLocationOfObjectAsVector3d
in class SparseFieldPortrayal3D
- See Also:
sim.portrayal.SparseFieldPortrayal3D#getLocationOfObjectAsVector3d(Object)
setField
public void setField(java.lang.Object field)
- Description copied from class:
FieldPortrayal
- Attaches the field portrayal to the given field. Should throw an exception if the object is invalid.
- Specified by:
setField
in class FieldPortrayal
getField
public java.lang.Object getField()
- Description copied from class:
FieldPortrayal
- Returns the current field.
- Specified by:
getField
in class FieldPortrayal
completedWrapper
public LocationWrapper completedWrapper(LocationWrapper w,
com.sun.j3d.utils.picking.PickIntersection pi)
- Specified by:
completedWrapper
in class FieldPortrayal3D