Package uk.ac.starlink.ttools.plot
Class Plot3DState
- java.lang.Object
-
- uk.ac.starlink.ttools.plot.PlotState
-
- uk.ac.starlink.ttools.plot.Plot3DState
-
- Direct Known Subclasses:
SphericalPlotState
public class Plot3DState extends PlotState
PlotState subclass which has specific features for specifying the state of 3D scatter plots. The most important extra feature is the rotation matrix, which describes the viewing angle for the 3D data space.- Since:
- 22 Nov 2005
- Author:
- Mark Taylor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class uk.ac.starlink.ttools.plot.PlotState
PlotState.SimpleValueInfo
-
-
Constructor Summary
Constructors Constructor Description Plot3DState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object otherObject)doublegetFogginess()Returns the intensity of fog used for depth rendering.booleangetRotating()Indicates whether the plot is currently rotating.double[]getRotation()Returns the rotation matrix.doublegetZoomScale()Sets the zoom level.inthashCode()voidsetFogginess(double fog)Sets the intensity of fog used for depth rendering (1 is a reasonable amount; 0 is no fog).voidsetRotating(boolean isRotating)Sets whether the plot is currently rotating.voidsetRotation(double[] matrix)Sets the rotation matrix.voidsetZoomScale(double zoomScale)Returns the zoom level.-
Methods inherited from class uk.ac.starlink.ttools.plot.PlotState
compare, getAntialias, getAxes, getAxisLabels, getConverters, getFlipFlags, getGrid, getLogFlags, getMainNdim, getPlotData, getRanges, getShaders, getValid, setAntialias, setAxes, setAxisLabels, setConverters, setFlipFlags, setGrid, setLogFlags, setMainNdim, setPlotData, setRanges, setShaders, setValid
-
-
-
-
Method Detail
-
setRotation
public void setRotation(double[] matrix)
Sets the rotation matrix.- Parameters:
matrix- 9-element 3d rotation matrix
-
getRotation
public double[] getRotation()
Returns the rotation matrix.- Returns:
- 9-element 3d rotation matrix
-
setFogginess
public void setFogginess(double fog)
Sets the intensity of fog used for depth rendering (1 is a reasonable amount; 0 is no fog).- Parameters:
fog- fog intensity
-
getFogginess
public double getFogginess()
Returns the intensity of fog used for depth rendering.- Returns:
- fog intensity
-
setRotating
public void setRotating(boolean isRotating)
Sets whether the plot is currently rotating. A true value for this indicates that the whole set of data points does not need to be drawn; a sequence of plot requests withisRotatingtrue must be followed quickly by one withisRotatingfalse.- Parameters:
isRotating- true iff this plot is currently in the middle of a sequence of rotation operations
-
getRotating
public boolean getRotating()
Indicates whether the plot is currently rotating. A true value for indicates that the whole set of data points does not need to be drawn; a sequence of plot requests withisRotatingtrue must be followed quickly by one withisRotatingfalse.- Returns:
- true if not all the points need to be drawn this time
-
setZoomScale
public void setZoomScale(double zoomScale)
Returns the zoom level. Unity is normal size, and a larger number means more magnification.- Parameters:
zoomScale- zoom level
-
getZoomScale
public double getZoomScale()
Sets the zoom level.- Returns:
- zoom level
-
-