sim.portrayal3d.grid
Class SparseGrid3DPortrayal

java.lang.Object
  extended bysim.portrayal.FieldPortrayal
      extended bysim.portrayal3d.FieldPortrayal3D
          extended bysim.portrayal3d.SparseFieldPortrayal3D
              extended bysim.portrayal3d.grid.SparseGrid3DPortrayal
All Implemented Interfaces:
Portrayal, Portrayal3D, java.io.Serializable

public class SparseGrid3DPortrayal
extends SparseFieldPortrayal3D

portrayal 3D for SparseFields.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class sim.portrayal.FieldPortrayal
FieldPortrayal.CustomInspector
 
Field Summary
 
Fields inherited from class sim.portrayal3d.SparseFieldPortrayal3D
field, tmpLocalT, tmpVect
 
Fields inherited from class sim.portrayal3d.FieldPortrayal3D
overallT
 
Fields inherited from class sim.portrayal.FieldPortrayal
classPortrayals, portrayalForAll, portrayalForNull, portrayalForRemainder, portrayals
 
Constructor Summary
SparseGrid3DPortrayal(SparseGrid2D field, double dx, double dy)
           
SparseGrid3DPortrayal(SparseGrid2D field, javax.media.j3d.Transform3D transf)
           
SparseGrid3DPortrayal(SparseGrid3D field, double dx, double dy, double dz)
           
SparseGrid3DPortrayal(SparseGrid3D field, javax.media.j3d.Transform3D transf)
           
 
Method Summary
 LocationWrapper completedWrapper(LocationWrapper w, com.sun.j3d.utils.picking.PickIntersection pi)
           
 java.lang.Object getField()
          Returns the current field.
 javax.vecmath.Vector3d getLocationOfObjectAsVector3d(java.lang.Object obj)
          Instead of allocating a new Vector3d for every call, reuse tmpVect, unless concurrecy is an issue.
 void setField(java.lang.Object field)
          Attaches the field portrayal to the given field.
 
Methods inherited from class sim.portrayal3d.SparseFieldPortrayal3D
createModel, getDefaultPortrayal, getModel, InsertModelForNewObject, portray
 
Methods inherited from class sim.portrayal3d.FieldPortrayal3D
setParentPortrayal
 
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
 
Methods inherited from interface sim.portrayal.Portrayal
getInspector, getName, setSelected
 

Constructor Detail

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)
Method Detail

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