|
|||||||||
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.PointCloudStrategy
A PointCloudStrategy defines a strategy for representing 3D data as
a single 3D visualization object where each data object is rendered
as a single pixel. Several component Strategies provide pieces that
are assembled into the 3D object. A PositionStrategy and
Appearance Strategy must be defined (and cannot be null), but the other
Strategies are optional. The 3D object constructed is then wrapped in an
ObjectGroup
object that is returned to the caller.
PositionStrategy
,
ColoringStrategy
,
AlphaColoringStrategy
,
AppearanceStrategy
,
PointArray
Constructor Summary | |
PointCloudStrategy()
Constructs a simple PointCloudStrategy with a default PositionStrategy and AppearanceStrategy . |
|
PointCloudStrategy(PositionStrategy positionStrategy,
ColoringStrategy coloringStrategy,
AlphaColoringStrategy alphaColoringStrategy,
AppearanceStrategy appearanceStrategy)
Constructs a PointCloudStrategy that will use the specified components for its positions, colors, alpha values, and Appearance. |
|
PointCloudStrategy(PositionStrategy positionStrategy,
ColoringStrategy coloringStrategy,
AppearanceStrategy appearanceStrategy)
Constructs a PointCloudStrategy that will use the specified components for its positions, 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. |
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 |
setVertexFormat(int format)
sets the vertexFormat used to construct the GeometryArray. |
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 PointCloudStrategy()
PositionStrategy
and AppearanceStrategy
.public PointCloudStrategy(PositionStrategy positionStrategy, ColoringStrategy coloringStrategy, AppearanceStrategy appearanceStrategy)
NullPointerException
- if either positionStrategy or appearanceStrategy
is nullpublic PointCloudStrategy(PositionStrategy positionStrategy, ColoringStrategy coloringStrategy, AlphaColoringStrategy alphaColoringStrategy, AppearanceStrategy appearanceStrategy)
NullPointerException
- if either positionStrategy 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 are available to construct
the GeometryArraysGeometryArray
public 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 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 |