|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.washington.NVisF.plotter.PlotStrategy | +--edu.washington.NVisF.plotter.LineCloudStrategy
A LineCloudStrategy provides a strategy for representing a 3D vector field as a single 3D visualization object where the vector for each data object is represented as a line starting from the object's position. The endpoint of the vector is set by a VectorStrategy object which is a required component of this Strategy along with a PositionStrategy and AppearanceStrategy. The completed 3D visualization object is wrapped in an ObjectGroup.
PositionStrategy
,
VectorStrategy
,
ColoringStrategy
,
AlphaColoringStrategy
,
AppearanceStrategy
,
javax.media.j3d.LineArray
Constructor Summary | |
LineCloudStrategy()
Constructs a simple LineCloudStrategy with a default PositionStrategy , VectorStrategy , and
AppearanceStrategy . |
|
LineCloudStrategy(PositionStrategy positionStrategy,
VectorStrategy vectorStrategy,
ColoringStrategy coloringStrategy,
AlphaColoringStrategy alphaColoringStrategy,
AppearanceStrategy appearanceStrategy)
Constructs a LineCloudStrategy that will use the specified components for its positions, vector enpoints, colors, alpha values, and Appearance. |
|
LineCloudStrategy(PositionStrategy positionStrategy,
VectorStrategy vectorStrategy,
ColoringStrategy coloringStrategy,
AppearanceStrategy appearanceStrategy)
Constructs a LineCloudStrategy that will use the specified components for its positions, vector enpoints, colors, and Appearance. |
Method Summary | |
AlphaColoringStrategy |
getAlphaColoringStrategy()
returns the AlphaColoringStrategy that provides alpha values for this PlotStrategy. |
Appearance |
getAppearance(PlotCommand command)
returns an Appearance object appropriate to the given PlotCommand. |
AppearanceStrategy |
getAppearanceStrategy()
returns the AppearanceStrategy that provides Appearance objects for this PlotStrategy. |
ColoringStrategy |
getColoringStrategy()
returns the ColoringStrategy that provides colors for this PlotStrategy. |
GeometryArray[] |
getGeometryArrays(PlotCommand command)
builds the GeometryArray[] for the specified PlotCommand. |
PositionStrategy |
getPositionStrategy()
returns the PositionStrategy that provides coordinates for this PlotStrategy. |
VectorStrategy |
getVectorStrategy()
returns the VectorStrategy that provides vector endpoints for this PlotStrategy. |
int |
getVertexFormat()
returns the vertexFormat used to construct the GeometryArray. |
void |
setAlphaColoringStrategy(AlphaColoringStrategy alphaColoringStrategy)
setss the AlphaColoringStrategy that provides alpha values for this PlotStrategy. |
void |
setAppearanceStrategy(AppearanceStrategy appearanceStrategy)
sets the AppearanceStrategy that provides Appearance objects for this PlotStrategy. |
void |
setColoringStrategy(ColoringStrategy coloringStrategy)
sets the ColoringStrategy that provides colors for this PlotStrategy. |
void |
setPositionStrategy(PositionStrategy positionStrategy)
sets the PositionStrategy that provides coordinates for this PlotStrategy. |
void |
setVectorStrategy(VectorStrategy vectorStrategy)
sets the VectorStrategy that provides vector endpoints for this PlotStrategy. |
void |
setVertexFormat(int format)
sets the vertexFormat used to construct the GeometryArray. |
static float[] |
vectorSum(float[] first,
float[] second)
Utility method for adding two floating point arrays. |
Methods inherited from class edu.washington.NVisF.plotter.PlotStrategy |
getShape3Ds, getShape3Ds, getShape3Ds |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LineCloudStrategy()
PositionStrategy
, VectorStrategy
, and
AppearanceStrategy
.public LineCloudStrategy(PositionStrategy positionStrategy, VectorStrategy vectorStrategy, ColoringStrategy coloringStrategy, AppearanceStrategy appearanceStrategy)
NullPointerException
- if positionStrategy, vectorStrategy, or
appearanceStrategy is nullpublic LineCloudStrategy(PositionStrategy positionStrategy, VectorStrategy vectorStrategy, ColoringStrategy coloringStrategy, AlphaColoringStrategy alphaColoringStrategy, AppearanceStrategy appearanceStrategy)
NullPointerException
- if positionStrategy, vectorStrategy, or
appearanceStrategy is nullMethod Detail |
public Appearance getAppearance(PlotCommand command)
getAppearance
in class PlotStrategy
public GeometryArray[] getGeometryArrays(PlotCommand command)
setVertexFormat(int)
method call, which is also called from the constructors.getGeometryArrays
in class PlotStrategy
NullPointerException
- if no positions or vector endpoints are
available to construct the GeometryArrayaGeometryArray
public static float[] vectorSum(float[] first, float[] second)
NullPointerException
- if either argument is nullpublic int getVertexFormat()
GeometryArray
class for a definition of this format.public void setVertexFormat(int format)
GeometryArray
class for a definition of this format.public PositionStrategy getPositionStrategy()
public void setPositionStrategy(PositionStrategy positionStrategy)
NullPointerException
- if the supplied argument is nullpublic VectorStrategy getVectorStrategy()
public void setVectorStrategy(VectorStrategy vectorStrategy)
NullPointerException
- if the supplied argument is nullpublic ColoringStrategy getColoringStrategy()
public void setColoringStrategy(ColoringStrategy coloringStrategy)
public AlphaColoringStrategy getAlphaColoringStrategy()
public void setAlphaColoringStrategy(AlphaColoringStrategy alphaColoringStrategy)
public AppearanceStrategy getAppearanceStrategy()
public void setAppearanceStrategy(AppearanceStrategy appearanceStrategy)
NullPointerException
- if the supplied argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |