edu.washington.NVisF.plotter
Class PointCloudAppearanceStrategy

java.lang.Object
  |
  +--edu.washington.NVisF.plotter.AppearanceStrategy
        |
        +--edu.washington.NVisF.plotter.PointCloudAppearanceStrategy

public class PointCloudAppearanceStrategy
extends AppearanceStrategy

This class constructs and returns an Appearance object appropriate for use with a PointCloudStrategy. Methods are provided for setting the size of the pixels and whether to use antialiasing, or for setting the PointAttributes object that contains this information. A different Appearance object with identical parameters will be returned on each call to getAppearance.

See Also:
PointCloudStrategy, PointAttributes

Constructor Summary
PointCloudAppearanceStrategy()
          Constructs a PointCloudAppearanceStrategy that will return an Appearance with default values.
PointCloudAppearanceStrategy(float pointSize, boolean antiAliasing)
          Constructs a PointCloudAppearanceStrategy that will return an Appearance with the specified pixel size and antialiasing.
PointCloudAppearanceStrategy(PointAttributes pa)
          Constructs a PointCloudAppearanceStrategy that will return an Appearance referencing the provided PointAttributes object.
 
Method Summary
 Appearance getAppearance(PlotCommand command)
          Returns an Appearance object with default values except for the pre-defined pixel size and antialiasing.
 void setPointAttributes(float pointSize, boolean antiAliasing)
          Sets the pixel size and antialiasing to use when constructing Appearance objects.
 void setPointAttributes(PointAttributes pa)
          Sets the PointAttributes object to reference when constructing Appearance objects.
 
Methods inherited from class edu.washington.NVisF.plotter.AppearanceStrategy
getShape3D
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointCloudAppearanceStrategy

public PointCloudAppearanceStrategy()
Constructs a PointCloudAppearanceStrategy that will return an Appearance with default values.

PointCloudAppearanceStrategy

public PointCloudAppearanceStrategy(float pointSize,
                                    boolean antiAliasing)
Constructs a PointCloudAppearanceStrategy that will return an Appearance with the specified pixel size and antialiasing.
See Also:
PointAttributes

PointCloudAppearanceStrategy

public PointCloudAppearanceStrategy(PointAttributes pa)
Constructs a PointCloudAppearanceStrategy that will return an Appearance referencing the provided PointAttributes object.
Method Detail

getAppearance

public Appearance getAppearance(PlotCommand command)
Returns an Appearance object with default values except for the pre-defined pixel size and antialiasing.
Overrides:
getAppearance in class AppearanceStrategy

setPointAttributes

public void setPointAttributes(float pointSize,
                               boolean antiAliasing)
Sets the pixel size and antialiasing to use when constructing Appearance objects.
See Also:
PointAttributes

setPointAttributes

public void setPointAttributes(PointAttributes pa)
Sets the PointAttributes object to reference when constructing Appearance objects.