public abstract class GraphicsModeControl extends Control implements Cloneable
A GraphicsModeControl is not linked to any DisplayRealType or ScalarMap. It is linked to a DisplayImpl.
Modifier and Type | Field and Description |
---|---|
static int |
AVERAGE_COLOR_MODE
Average color style for merging color maps
|
static int |
DASH_DOT_STYLE
Dash-Dot line style for Display.LineStyle mapping
|
static int |
DASH_STYLE
Dash line style for Display.LineStyle mapping
|
static int |
DOT_STYLE
Dot line style for Display.LineStyle mapping
|
static int |
SOLID_STYLE
Solid line style for Display.LineStyle mapping
|
static int |
STACK2D
2D stack type for volume rendering
|
static int |
SUM_COLOR_MODE
Sum color style for merging color maps
|
static int |
TEXTURE3D
3D texture type for volume rendering
|
Constructor and Description |
---|
GraphicsModeControl(DisplayImpl d)
Create a GraphicsModeControl for the display.
|
Modifier and Type | Method and Description |
---|---|
abstract Object |
clone()
A method to copy this object
|
abstract boolean |
getAdjustProjectionSeam()
See whether or not to call methods to adjust the projection seam
(VisADGeometryArray.adjustLongitude/adjustSeam);
|
abstract boolean |
getCacheAppearances()
Get whether Appearances are cached or not
|
abstract int |
getColorMode()
Get the color mode.
|
abstract int |
getCurvedSize()
Get the undersampling factor of surface shape for curved texture maps
|
abstract int |
getLineStyle()
Get the line style
|
abstract float |
getLineWidth()
Get the width of line rendering.
|
abstract boolean |
getMergeGeometries()
Set whether Geometries for shapes should be merged into Group
|
abstract boolean |
getMissingTransparent()
See whether missing values are rendered as transparent or not.
|
abstract boolean |
getMode2D()
Get the 2D mode of the display.
|
abstract boolean |
getPointMode()
Get the point mode.
|
abstract float |
getPointSize()
Get the size for point rendering
|
abstract int |
getPolygonMode()
Get the Polygon mode
|
abstract float |
getPolygonOffset()
Get the current polygon offset.
|
abstract float |
getPolygonOffsetFactor()
Get the current polygon offset factor.
|
abstract int |
getProjectionPolicy()
Get the current graphics-API-specific projection policy for the display.
|
String |
getSaveString()
Get a string that can be used to reconstruct this control later
|
abstract boolean |
getScaleEnable()
Get the use of numerical scales along display axes.
|
abstract int |
getTexture3DMode()
Get the mode for Texture3D for volume rendering
|
abstract boolean |
getTextureEnable()
Get the use of texture mapping.
|
abstract int |
getTransparencyMode()
Gets the graphics-API-specific transparency mode (e.g.,
SCREEN_DOOR, BLENDED) used in the display
|
abstract void |
setAdjustProjectionSeam(boolean adjust)
Set whether or not to call methods to adjust the projection seam
(VisADGeometryArray.adjustLongitude/adjustSeam);
|
abstract void |
setCacheAppearances(boolean cache)
Set whether the Appearances are reused
|
abstract void |
setColorMode(int mode)
Set the mode for merging color mappings.
|
abstract void |
setCurvedSize(int curved_size)
Set the undersampling factor of surface shape for curved texture maps
|
abstract void |
setLineStyle(int style)
set the style of line rendering; this is over-ridden by
ConstantMaps to Display.LineStyle
|
abstract void |
setLineStyle(int style,
boolean noChange)
Set the style of line rendering, does not update the display.
|
abstract void |
setLineWidth(float width)
Set the width of line rendering; this is over-ridden by
ConstantMaps to Display.LineWidth.
|
abstract void |
setLineWidth(float width,
boolean noChange)
Set the width of line rendering, do not update the display.
|
abstract void |
setMergeGeometries(boolean merge)
Set whether Geometries for shapes should be merged into Group if
possible to reduce memory use.
|
abstract void |
setMissingTransparent(boolean missing)
Set the transparency of missing values.
|
abstract void |
setPointMode(boolean mode)
Set the point rendering mode.
|
abstract void |
setPointSize(float size)
Set the size for point rendering; this is over-ridden by
ConstantMaps to Display.PointSize.
|
abstract void |
setPointSize(float size,
boolean noChange)
Set the size for point rendering, does not update the display.
|
abstract void |
setPolygonMode(int mode)
Sets the graphics-API-specific polygon mode and updates the display
|
abstract void |
setPolygonMode(int mode,
boolean noChange)
Sets the graphics-API-specific polygon mode.
|
abstract void |
setPolygonOffset(float polygonOffset)
Sets the polygon offset and updates the display.
|
abstract void |
setPolygonOffset(float polygonOffset,
boolean noChange)
Sets the polygon offset.
|
abstract void |
setPolygonOffsetFactor(float factor)
Sets the polygon offset factor and updates the display.
|
abstract void |
setPolygonOffsetFactor(float factor,
boolean noChange)
Sets the polygon offset factor, does not update display.
|
abstract void |
setProjectionPolicy(int policy)
Sets a graphics-API-specific projection policy (e.g.,
PARALLEL_PROJECTION, PERSPECTIVE_PROJECTION) for the display.
|
void |
setSaveString(String save)
Reconstruct this control using the specified save string
|
abstract void |
setScaleEnable(boolean enable)
Set the use of numerical scales along display axes.
|
abstract void |
setTexture3DMode(int mode)
Set the mode for Texture3D for volume rendering
|
abstract void |
setTextureEnable(boolean enable)
Set the use of texture mapping.
|
abstract void |
setTransparencyMode(int mode)
Sets a graphics-API-specific transparency mode (e.g.,
SCREEN_DOOR, BLENDED) on the display.
|
addControlListener, animation_string, changeControl, checkTicks, equals, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, syncControl, toString
public static final int SOLID_STYLE
public static final int DASH_STYLE
public static final int DOT_STYLE
public static final int DASH_DOT_STYLE
public static final int AVERAGE_COLOR_MODE
public static final int SUM_COLOR_MODE
public static final int STACK2D
public static final int TEXTURE3D
public GraphicsModeControl(DisplayImpl d)
d
- DisplayImpl to usepublic abstract boolean getMode2D()
public abstract float getLineWidth()
public abstract void setLineWidth(float width) throws VisADException, RemoteException
width
- line width to useRemoteException
VisADException
public abstract void setLineWidth(float width, boolean noChange)
width
- line width to usenoChange
- dummy flagpublic abstract float getPointSize()
public abstract void setPointSize(float size) throws VisADException, RemoteException
size
- point sizeVisADException
- unable to set point sizeRemoteException
- unable to set point size on remote displaypublic abstract void setPointSize(float size, boolean noChange)
size
- point sizenoChange
- dummy flagpublic abstract int getLineStyle()
public abstract void setLineStyle(int style) throws VisADException, RemoteException
style
- The line styles are:
VisADException
- unable to set line styleRemoteException
- unable to set line style on remote displaypublic abstract void setLineStyle(int style, boolean noChange)
style
- The line styles are:
noChange
- dummy flagpublic abstract int getColorMode()
public abstract void setColorMode(int mode) throws VisADException, RemoteException
mode
- The color modes are:
VisADException
- unable to set color modeRemoteException
- unable to set color mode on remote displaypublic abstract boolean getPointMode()
public abstract void setPointMode(boolean mode) throws VisADException, RemoteException
mode
- if true, this will cause some rendering as points
rather than lines or surfaces.VisADException
- unable to enable point modeRemoteException
- unable to enable point mode on remote displaypublic abstract boolean getTextureEnable()
public abstract void setTextureEnable(boolean enable) throws VisADException, RemoteException
enable
- if true this will enable the use of texture
mapping, where appropriateVisADException
- unable to enable texture mappingRemoteException
- unable to enable texture mapping on remote displaypublic abstract boolean getScaleEnable()
public abstract void setScaleEnable(boolean enable) throws VisADException, RemoteException
enable
- if true, this will enable numerical
scales along display spatial axesVisADException
- unable to enable scalesRemoteException
- unable to enable scales on remote displaypublic abstract int getTransparencyMode()
public abstract void setTransparencyMode(int mode) throws VisADException, RemoteException
mode
- graphics-API-specific transparency modeVisADException
- Unable to change transparency modeRemoteException
- can't change transparency mode on remote displaypublic abstract void setProjectionPolicy(int policy) throws VisADException, RemoteException
policy
- policy to be usedVisADException
- bad policy or can't create the necessary VisAD
objectRemoteException
- change policy on remote displaypublic abstract int getProjectionPolicy()
public abstract void setPolygonMode(int mode) throws VisADException, RemoteException
mode
- the polygon mode to be usedVisADException
- bad mode or can't create the necessary VisAD
objectRemoteException
- can't change mode on remote displaypublic abstract void setPolygonMode(int mode, boolean noChange) throws VisADException, RemoteException
mode
- the polygon mode to be usednoChange
- dummy flagVisADException
- bad mode or can't create the necessary VisAD
objectRemoteException
- can't change mode on remote displaypublic abstract int getPolygonMode()
public abstract void setPolygonOffset(float polygonOffset) throws VisADException, RemoteException
polygonOffset
- the polygon offset to be usedVisADException
- Unable to change offsetRemoteException
- can't change offset on remote displaypublic abstract void setPolygonOffset(float polygonOffset, boolean noChange)
polygonOffset
- the polygon offset to be usednoChange
- dummy variablepublic abstract float getPolygonOffset()
public abstract void setPolygonOffsetFactor(float factor) throws VisADException, RemoteException
factor
- the polygon offset factor to be usedVisADException
- Unable to change offset factorRemoteException
- can't change offset factor on remote displaypublic abstract void setPolygonOffsetFactor(float factor, boolean noChange)
factor
- the polygon offset to be usednoChange
- dummy variablepublic abstract float getPolygonOffsetFactor()
public abstract void setMissingTransparent(boolean missing) throws VisADException, RemoteException
missing
- true if missing values should be rendered transparent.VisADException
- Unable to change missing transparentRemoteException
- can't change missing transparent on remote displaypublic abstract boolean getMissingTransparent()
public abstract void setAdjustProjectionSeam(boolean adjust) throws VisADException, RemoteException
adjust
- true if seams should be adjustedVisADException
- Unable to change adjust seam propertyRemoteException
- can't change adjust seam property on remote displaypublic abstract boolean getAdjustProjectionSeam()
public abstract void setTexture3DMode(int mode) throws VisADException, RemoteException
mode
- mode for Texture3D (STACK2D or TEXTURE3D)VisADException
- Unable to change Texture3D modeRemoteException
- can't change Texture3D mode on remote displaypublic abstract int getTexture3DMode()
public abstract void setCurvedSize(int curved_size)
curved_size
- undersampling factor (default 10)VisADException
- Unable to change curved sizeRemoteException
- can't change curved size on remote displaypublic abstract int getCurvedSize()
public abstract void setCacheAppearances(boolean cache)
cache
- true to cache and reuse appearancespublic abstract boolean getCacheAppearances()
public abstract void setMergeGeometries(boolean merge)
merge
- true to merge geometries if possiblepublic abstract boolean getMergeGeometries()
public String getSaveString()
getSaveString
in class Control
public void setSaveString(String save) throws VisADException, RemoteException
setSaveString
in class Control
save
- save stringRemoteException
VisADException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.