sim.portrayal3d
Class SimplePortrayal3D

java.lang.Object
  extended bysim.portrayal3d.SimplePortrayal3D
All Implemented Interfaces:
Portrayal, Portrayal3D, java.io.Serializable
Direct Known Subclasses:
Axes, CubePortrayal3D, FixPortrayal3D, SpherePortrayal3D, WireFrameBoxPortrayal3D

public abstract class SimplePortrayal3D
extends java.lang.Object
implements Portrayal3D

See Also:
sim.portrayal.SimplePortrayal.java, Serialized Form

Constructor Summary
SimplePortrayal3D()
           
 
Method Summary
static void clearPickableFlags(javax.media.j3d.Node n)
           
 Inspector getInspector(LocationWrapper wrapper, GUIState state)
          Provide an inspector for an object.
 java.lang.String getName(LocationWrapper wrapper)
          Returns a name for the given object that is useful for a human to distinguish it from other objects.
 void setParentPortrayal(FieldPortrayal3D p)
          A non field portrayal3D need to enclose its parent FieldPortrayal into the PickInfo.
static void setPickableFlags(javax.media.j3d.Geometry geom)
           
static void setPickableFlags(javax.media.j3d.Shape3D s3d)
           
 boolean setSelected(LocationWrapper wrapper, boolean selected)
          Change the portrayal state to reflect the fact that you've been selected or not selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sim.portrayal3d.Portrayal3D
getModel
 

Constructor Detail

SimplePortrayal3D

public SimplePortrayal3D()
Method Detail

getInspector

public Inspector getInspector(LocationWrapper wrapper,
                              GUIState state)
Description copied from interface: Portrayal
Provide an inspector for an object.

Specified by:
getInspector in interface Portrayal

getName

public java.lang.String getName(LocationWrapper wrapper)
Description copied from interface: Portrayal
Returns a name for the given object that is useful for a human to distinguish it from other objects. A simple default would be just to return "" + object.

Specified by:
getName in interface Portrayal

setParentPortrayal

public void setParentPortrayal(FieldPortrayal3D p)
Description copied from interface: Portrayal3D
A non field portrayal3D need to enclose its parent FieldPortrayal into the PickInfo. A FieldPortrayal3D should have an empty body.

Specified by:
setParentPortrayal in interface Portrayal3D

setSelected

public boolean setSelected(LocationWrapper wrapper,
                           boolean selected)
Description copied from interface: Portrayal
Change the portrayal state to reflect the fact that you've been selected or not selected. Always return true, except if you've received a setSelected(true) and in fact do not wish to be selectable, in which case return false in that sole situation.

Specified by:
setSelected in interface Portrayal

setPickableFlags

public static void setPickableFlags(javax.media.j3d.Shape3D s3d)

setPickableFlags

public static void setPickableFlags(javax.media.j3d.Geometry geom)

clearPickableFlags

public static void clearPickableFlags(javax.media.j3d.Node n)