public class ValueGridPortrayal3D extends FieldPortrayal3D
classPortrayals, field, immutableField, portrayalForAll, portrayalForNonNull, portrayalForNull, portrayalForRemainder, portrayals
Constructor and Description |
---|
ValueGridPortrayal3D() |
ValueGridPortrayal3D(double s) |
ValueGridPortrayal3D(java.lang.String valueName) |
ValueGridPortrayal3D(java.lang.String valueName,
double scale) |
Modifier and Type | Method and Description |
---|---|
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].
|
getCurrentDisplay, getCurrentGUIState, getDefaultTransform, getModel, getObjectLocation, getTransform, resetTransform, rotateX, rotateY, rotateZ, scale, scale, setCurrentDisplay, setObjectLocation, setTransform, transform, translate
getDefaultNullPortrayal, getInspector, getName, getPortrayalForAll, getPortrayalForNonNull, getPortrayalForNull, getPortrayalForObject, getPortrayalForRemainder, getStatus, isDirtyField, isImmutableField, reset, setDirtyField, setImmutableField, setPortrayalForAll, setPortrayalForClass, setPortrayalForNonNull, setPortrayalForNull, setPortrayalForObject, setPortrayalForRemainder, setSelected, setSelected
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInspector, getName, getStatus, setSelected
public ValueGridPortrayal3D()
public ValueGridPortrayal3D(java.lang.String valueName)
public ValueGridPortrayal3D(double s)
public ValueGridPortrayal3D(java.lang.String valueName, double scale)
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 FieldPortrayal3D
public void setField(java.lang.Object field)
FieldPortrayal
setField
in class FieldPortrayal
public java.lang.Object getField()
FieldPortrayal
getField
in class FieldPortrayal
public javax.media.j3d.PolygonAttributes polygonAttributes()
Portrayal3D
polygonAttributes
in interface Portrayal3D
polygonAttributes
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 FieldPortrayal3D
public 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 FieldPortrayal3D
public java.awt.Color getColorFor(java.lang.Object wrapper)