|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsim.portrayal.FieldPortrayal
sim.portrayal3d.FieldPortrayal3D
sim.portrayal3d.grid.ValueGridPortrayal3D
public class ValueGridPortrayal3D
| Field Summary |
|---|
| Fields inherited from class sim.portrayal.FieldPortrayal |
|---|
classPortrayals, field, immutableField, portrayalForAll, portrayalForNonNull, portrayalForNull, portrayalForRemainder, portrayals |
| Constructor Summary | |
|---|---|
ValueGridPortrayal3D()
|
|
ValueGridPortrayal3D(double s)
|
|
ValueGridPortrayal3D(java.lang.String valueName)
|
|
ValueGridPortrayal3D(java.lang.String valueName,
double scale)
|
|
| Method Summary | |
|---|---|
LocationWrapper |
completedWrapper(LocationWrapper w,
com.sun.j3d.utils.picking.PickIntersection pi,
com.sun.j3d.utils.picking.PickResult pr)
Given the provided PickIntersection and the PickResult it came from, fill in w the location of the picked object, and return it. |
javax.media.j3d.TransformGroup |
createModel()
Returns a tree structure of the form InternalTransformGroup[model info]. |
java.awt.Color |
getColorFor(java.lang.Object wrapper)
Returns the color presently mapped to the value stored within the given wrapper. |
Portrayal |
getDefaultPortrayal()
Should return a portrayal which can portray any object regardless of whether it's valid or not |
java.lang.Object |
getField()
Returns the field. |
ColorMap |
getMap()
|
double |
getScale()
|
java.lang.String |
getValueName()
|
double |
newValue(int x,
int y,
int z,
double value)
This method is called by the default inspector to filter new values set by the user. |
javax.media.j3d.PolygonAttributes |
polygonAttributes()
Provides a PolygonAttributes which can be modified to change the underlying model's attributes (culling, vertex versus point versus fill). |
void |
setField(java.lang.Object field)
Sets the field, and sets the dirtyField flag to true. |
void |
setMap(ColorMap m)
|
void |
setScale(double val)
|
void |
setValueName(java.lang.String name)
|
void |
updateModel(javax.media.j3d.TransformGroup modelTG)
Returns a tree structure of the form InternalTransformGroup[model info]. |
| Methods inherited from class sim.portrayal3d.FieldPortrayal3D |
|---|
getCurrentDisplay, getCurrentGUIState, getDefaultTransform, getModel, getTransform, resetTransform, rotateX, rotateY, rotateZ, scale, scale, setCurrentDisplay, setTransform, transform, translate |
| 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, getStatus, setSelected |
| Constructor Detail |
|---|
public ValueGridPortrayal3D()
public ValueGridPortrayal3D(java.lang.String valueName)
public ValueGridPortrayal3D(double s)
public ValueGridPortrayal3D(java.lang.String valueName,
double scale)
| Method Detail |
|---|
public ColorMap getMap()
public void setMap(ColorMap m)
public java.lang.String getValueName()
public void setValueName(java.lang.String name)
public double getScale()
public void setScale(double val)
public Portrayal getDefaultPortrayal()
FieldPortrayal
getDefaultPortrayal in class FieldPortrayal3Dpublic void setField(java.lang.Object field)
FieldPortrayal
setField in class FieldPortrayalpublic java.lang.Object getField()
FieldPortrayal
getField in class FieldPortrayalpublic javax.media.j3d.PolygonAttributes polygonAttributes()
Portrayal3D
polygonAttributes in interface Portrayal3DpolygonAttributes in class FieldPortrayal3D
public double newValue(int x,
int y,
int z,
double value)
public javax.media.j3d.TransformGroup createModel()
FieldPortrayal3D...where InternalTransformGroup is an identity transformgroup whose transform will be modified elsewhere (create it but don't play with it).
createModel in class FieldPortrayal3Dpublic void updateModel(javax.media.j3d.TransformGroup modelTG)
FieldPortrayal3D...where InternalTransformGroup is an identity transformgroup whose transform will be modified elsewhere (don't play with it). By default, this function does nothing. Override it to update the model when it's called.
updateModel in class FieldPortrayal3D
public LocationWrapper completedWrapper(LocationWrapper w,
com.sun.j3d.utils.picking.PickIntersection pi,
com.sun.j3d.utils.picking.PickResult pr)
FieldPortrayal3D
completedWrapper in class FieldPortrayal3Dpublic java.awt.Color getColorFor(java.lang.Object wrapper)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||