sim.portrayal3d.continuous
Class ContinuousPortrayal3D

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

public class ContinuousPortrayal3D
extends SparseFieldPortrayal3D

Portrays both Continuous2D and Continuous3D fields. 2D fields are spread through the XY plane and are presumed to have Z=0.

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.FieldPortrayal3D
field, immutableField
 
Fields inherited from class sim.portrayal.FieldPortrayal
classPortrayals, portrayalForAll, portrayalForNull, portrayalForRemainder, portrayals
 
Constructor Summary
ContinuousPortrayal3D()
           
 
Method Summary
 LocationWrapper completedWrapper(LocationWrapper w, com.sun.j3d.utils.picking.PickIntersection pi)
          Given the provided PickIntersection, fill in w the location of the picked object, and return it.
 javax.vecmath.Vector3d getLocationOfObjectAsVector3d(java.lang.Object obj, javax.vecmath.Vector3d putInHere)
          Converts a given location (perhaps a Double3D, Double2D, Int3D, or Int2D) into a Vector3d, placing it in the given Vector3d, and returning that Vector3d.
 void setField(java.lang.Object field)
          Attaches the field portrayal to the given field.
 
Methods inherited from class sim.portrayal3d.SparseFieldPortrayal3D
createModel, insertModelForNewObject, updateModel
 
Methods inherited from class sim.portrayal3d.FieldPortrayal3D
getDefaultPortrayal, getDefaultTransform, getField, getModel, getTransform, isImmutableField, polygonAttributes, resetTransform, rotateX, rotateY, rotateZ, scale, scale, setImmutableField, setTransform, transform, translate
 
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

ContinuousPortrayal3D

public ContinuousPortrayal3D()
Method Detail

getLocationOfObjectAsVector3d

public javax.vecmath.Vector3d getLocationOfObjectAsVector3d(java.lang.Object obj,
                                                            javax.vecmath.Vector3d putInHere)
Description copied from class: SparseFieldPortrayal3D
Converts a given location (perhaps a Double3D, Double2D, Int3D, or Int2D) into a Vector3d, placing it in the given Vector3d, and returning that Vector3d. Double2D and Int2D should convert to a Vector3d with a zero Z value.

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 FieldPortrayal3D

completedWrapper

public LocationWrapper completedWrapper(LocationWrapper w,
                                        com.sun.j3d.utils.picking.PickIntersection pi)
Description copied from class: FieldPortrayal3D
Given the provided PickIntersection, fill in w the location of the picked object, and return it. Alternatively, return a new LocationWrapper with all information filled in.

Specified by:
completedWrapper in class FieldPortrayal3D