public class ValuePortrayal3D extends Shape3DPortrayal3D
ValuePortrayal3D has settable polygon attributes: so you can have it display with faces, as a wireframe, or as corner dots (just change the desired value in the options panel of the Display3D when running).
Modifier and Type | Class and Description |
---|---|
static class |
ValuePortrayal3D.DoubleFilter |
static class |
ValuePortrayal3D.Filter |
static class |
ValuePortrayal3D.IntFilter |
Modifier and Type | Field and Description |
---|---|
static int |
SHAPE_CUBE |
static int |
SHAPE_SQUARE |
group
DEFAULT_APPEARANCE
Constructor and Description |
---|
ValuePortrayal3D()
Creates a ValuePortrayal3D with a cube shape.
|
ValuePortrayal3D(int shape)
Creates a ValuePortrayal3D with a cube (SHAPE_CUBE) or square (SHAPE_SQUARE) shape.
|
Modifier and Type | Method and Description |
---|---|
Inspector |
getInspector(LocationWrapper wrapper,
GUIState state)
Provide an inspector for an object.
|
javax.media.j3d.TransformGroup |
getModel(java.lang.Object obj,
javax.media.j3d.TransformGroup j3dModel)
We suggest that if you wish to override this to change the appearance or scale or transform
of the underlying model, do the changes first and THEN call super.getModel(obj, j3dModel).
|
java.lang.String |
getName(LocationWrapper wrapper)
Returns a static, one-line name for the given object that is useful for a human
to distinguish it from other objects.
|
protected javax.media.j3d.Shape3D |
getShape(javax.media.j3d.TransformGroup j3dModel,
int shapeNumber)
Returns the shape by the given index.
|
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).
|
boolean |
setTransform(javax.media.j3d.TransformGroup j3dModel,
javax.media.j3d.Transform3D transform)
Returns false and does not set the transform (there's nothing to set).
|
numShapes
getAppearance, setAppearance, setPickable, setScale, setShape3DFlags
appearanceForColor, appearanceForColors, appearanceForImage, clearPickableFlags, getCurrentDisplay, getCurrentFieldPortrayal, getCurrentGUIState, getStatus, isSelected, setAppearanceFlags, setCurrentDisplay, setCurrentFieldPortrayal, setPickableFlags, setPickableFlags, setSelected
public static final int SHAPE_CUBE
public static final int SHAPE_SQUARE
public ValuePortrayal3D()
public ValuePortrayal3D(int shape)
public boolean setTransform(javax.media.j3d.TransformGroup j3dModel, javax.media.j3d.Transform3D transform)
setTransform
in class PrimitivePortrayal3D
protected javax.media.j3d.Shape3D getShape(javax.media.j3d.TransformGroup j3dModel, int shapeNumber)
PrimitivePortrayal3D
getShape
in class Shape3DPortrayal3D
public javax.media.j3d.PolygonAttributes polygonAttributes()
Portrayal3D
polygonAttributes
in interface Portrayal3D
polygonAttributes
in class SimplePortrayal3D
public javax.media.j3d.TransformGroup getModel(java.lang.Object obj, javax.media.j3d.TransformGroup j3dModel)
PrimitivePortrayal3D
getModel
in interface Portrayal3D
getModel
in class PrimitivePortrayal3D
public Inspector getInspector(LocationWrapper wrapper, GUIState state)
Portrayal
getInspector
in interface Portrayal
getInspector
in class SimplePortrayal3D
public java.lang.String getName(LocationWrapper wrapper)
Portrayal
getName
in interface Portrayal
getName
in class SimplePortrayal3D