public class GraphicsModeControlJ3D extends GraphicsModeControl
A GraphicsModeControlJ3D is not linked to any DisplayRealType or ScalarMap. It is linked to a DisplayImpl.
AVERAGE_COLOR_MODE, DASH_DOT_STYLE, DASH_STYLE, DOT_STYLE, SOLID_STYLE, STACK2D, SUM_COLOR_MODE, TEXTURE3D| Constructor and Description |
|---|
GraphicsModeControlJ3D(DisplayImpl d)
Construct a GraphicsModeControlJ3D associated with the input display
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
clone this GraphicsModeControlJ3D
|
boolean |
equals(Object o)
Check to see if this GraphicsModeControlJ3D is equal to the object
in question.
|
boolean |
getAdjustProjectionSeam()
See whether VisADGeometryArray.adjustLongitude/Seam should be called.
|
boolean |
getAutoDepthOffsetEnable() |
boolean |
getCacheAppearances()
Get whether Appearances are cached or not
|
int |
getColorMode()
Get the color mode used for combining color values.
|
int |
getCurvedSize()
Get the undersampling factor of surface shape for curved texture maps
|
boolean |
getDepthBufferEnable() |
float |
getDepthOffsetIncrement() |
int |
getLineStyle()
Get the current line style used for LineAttributes.
|
float |
getLineWidth()
Get the current line width used for LineAttributes.
|
boolean |
getMergeGeometries()
Set whether Geometries for shapes should be merged into Group
|
boolean |
getMissingTransparent()
See whether missing values are rendered as transparent or not.
|
boolean |
getMode2D()
See if the display is being rendered in 2D mode
|
int |
getNumRenderersWithDepthOffset() |
boolean |
getPointMode()
Gets the point mode.
|
float |
getPointSize()
Get the current point size used for PointAttributes.
|
int |
getPolygonMode()
Get the current polygon rasterization mode.
|
float |
getPolygonOffset()
Get the current polygon offset.
|
float |
getPolygonOffsetFactor()
Get the current polygon offset factor.
|
int |
getProjectionPolicy()
Get the current projection policy for the display.
|
boolean |
getScaleEnable()
Get whether display scales are enabled or not
|
boolean |
getSceneAntialiasingEnable()
Get the current antialiasing flag for the display.
|
int |
getTexture3DMode()
Get the mode for Texture3D for volume rendering
|
boolean |
getTextureEnable()
See if texture mapping is enabled or not
|
int |
getTransparencyMode()
Get the current transparency mode
|
void |
setAdjustProjectionSeam(boolean adjust)
Set whether VisADGeometryArray.adjustLongitude/adjustSeam should be called.
|
void |
setAutoDepthOffsetEnable(boolean enable)
AutoDepthOffset: automatically offsets (pushes back) z-buffer depth for
flat surfaces with first farthest back and successive separated by a
constant increment toward front.
|
void |
setAutoDepthOffsetEnable(boolean enable,
boolean noChange) |
void |
setCacheAppearances(boolean cache)
Set whether the Appearances are reused
|
void |
setColorMode(int mode)
Set the color mode used for combining color values.
|
void |
setCurvedSize(int curved_size)
Set the undersampling factor of surface shape for curved texture maps
|
void |
setDepthBufferEnable(boolean enable) |
void |
setDepthBufferEnable(boolean enable,
boolean noChange) |
void |
setDepthOffsetIncrement(float inc,
boolean noChange)
Set the depth increment between successive flat surfaces in the autoDepthOffset stack.
|
void |
setLineStyle(int style)
Set the line style used for LineAttributes.
|
void |
setLineStyle(int style,
boolean noChange)
Set the line style used for LineAttributes.
|
void |
setLineWidth(float width)
Set the line width used for LineAttributes.
|
void |
setLineWidth(float width,
boolean noChange)
Set the line width used for LineAttributes.
|
void |
setMergeGeometries(boolean merge)
Set whether Geometries for shapes should be merged into Group if
possible to reduce memory use.
|
void |
setMissingTransparent(boolean missing)
Set the transparency of missing values.
|
void |
setNumRenderersWithDepthOffset(int numWith,
boolean noChange)
Set the maximum number of DataRenderers in the autoDepthOffset stack.
|
void |
setPointMode(boolean mode)
Sets the point mode and updates the display.
|
void |
setPointSize(float size)
Set the point size used for PointAttributes.
|
void |
setPointSize(float size,
boolean noChange)
Set the point size used for PointAttributes.
|
void |
setPolygonMode(int mode)
Sets the polygon rasterization mode.
|
void |
setPolygonMode(int mode,
boolean noChange)
Sets the polygon rasterization mode.
|
void |
setPolygonOffset(float polygonOffset)
Sets the polygon offset and updates the display.
|
void |
setPolygonOffset(float polygonOffset,
boolean noChange)
Sets the polygon offset.
|
void |
setPolygonOffsetFactor(float polygonOffsetFactor)
Sets the polygon offset factor and updates the display.
|
void |
setPolygonOffsetFactor(float polygonOffsetFactor,
boolean noChange)
Sets the polygon offset factor, does not update display.
|
void |
setProjectionPolicy(int policy)
Sets the projection policy for the display.
|
void |
setScaleEnable(boolean enable)
Toggle the axis scales in the display
|
void |
setSceneAntialiasingEnable(boolean flag)
Sets the antialiasing flag for the display.
|
void |
setTexture3DMode(int mode)
Set the mode for Texture3D for volume rendering
|
void |
setTextureEnable(boolean enable)
Set whether texture mapping should be used or not.
|
void |
setTransparencyMode(int mode)
Sets the transparency mode.
|
void |
syncControl(Control rmt)
Copy the state of a remote control to this control
|
String |
toString()
Return a string representation of this GraphicsModeControlJ3D
|
getSaveString, setSaveStringaddControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTickspublic GraphicsModeControlJ3D(DisplayImpl d)
d - display associated with this GraphicsModeControlJ3Dpublic boolean getMode2D()
getMode2D in class GraphicsModeControlDisplayRenderer.getMode2D()public float getLineWidth()
getLineWidth in class GraphicsModeControlpublic void setLineWidth(float width)
throws VisADException,
RemoteException
setLineWidth in class GraphicsModeControlwidth - width to use (>= 1.0)VisADException - couldn't set the line width on local displayRemoteException - couldn't set the line width on remote displaypublic void setLineWidth(float width,
boolean noChange)
setLineWidth in class GraphicsModeControlwidth - width to use (>= 1.0)noChange - dummy variablepublic float getPointSize()
getPointSize in class GraphicsModeControlpublic void setPointSize(float size)
throws VisADException,
RemoteException
setPointSize in class GraphicsModeControlsize - size to use (>= 1.0)VisADException - couldn't set the point size on local displayRemoteException - couldn't set the point size on remote displaypublic void setPointSize(float size,
boolean noChange)
setPointSize in class GraphicsModeControlsize - size to use (>= 1.0)noChange - dummy variablepublic int getLineStyle()
getLineStyle in class GraphicsModeControlpublic void setLineStyle(int style)
throws VisADException,
RemoteException
setLineStyle in class GraphicsModeControlstyle - style to use (SOLID_STYLE, DASH_STYLE,
DOT_STYLE or DASH_DOT_STYLE)VisADException - couldn't set the line style on local displayRemoteException - couldn't set the line style on remote displaypublic void setLineStyle(int style,
boolean noChange)
setLineStyle in class GraphicsModeControlstyle - style to use (SOLID_STYLE, DASH_STYLE,
DOT_STYLE or DASH_DOT_STYLE)noChange - dummy variablepublic int getColorMode()
getColorMode in class GraphicsModeControlpublic void setColorMode(int mode)
throws VisADException,
RemoteException
setColorMode in class GraphicsModeControlmode - mode to use (AVERAGE_COLOR_MODE or SUM_COLOR_MODE)VisADException - unable to set color modeRemoteException - unable to set color mode on remote displaypublic boolean getPointMode()
getPointMode in class GraphicsModeControlpublic void setPointMode(boolean mode)
throws VisADException,
RemoteException
setPointMode in class GraphicsModeControlmode - true if the display should use points rather
than connected lines or surfaces for rendering.VisADException - unable to enable point modeRemoteException - unable to enable point mode on remote displaypublic void setTextureEnable(boolean enable)
throws VisADException,
RemoteException
setTextureEnable in class GraphicsModeControlenable - true to use texture mapping (the default)VisADException - unable to enable texture mappingRemoteException - unable to enable texture mapping on remote displaypublic boolean getTextureEnable()
getTextureEnable in class GraphicsModeControlpublic void setScaleEnable(boolean enable)
throws VisADException,
RemoteException
setScaleEnable in class GraphicsModeControlenable - true to enable, false to disableVisADException - couldn't change state of scale enablementRemoteException - couldn't change state of scale enablement on
remote displaypublic boolean getScaleEnable()
getScaleEnable in class GraphicsModeControlpublic int getTransparencyMode()
getTransparencyMode in class GraphicsModeControlpublic void setTransparencyMode(int mode)
throws VisADException,
RemoteException
setTransparencyMode in class GraphicsModeControlmode - transparency mode to use. Legal values are
DisplayImplJ3D.FASTEST, DisplayImplJ3D.NICESTVisADException - bad mode or couldn't create necessary VisAD
objectRemoteException - couldn't create necessary remote objectpublic void setProjectionPolicy(int policy)
throws VisADException,
RemoteException
setProjectionPolicy in class GraphicsModeControlpolicy - policy to be used (DisplayImplJ3D.PARALLEL_PROJECTION
or DisplayImplJ3D.PERSPECTIVE_PROJECTIONVisADException - bad policy or can't create the necessary VisAD
objectRemoteException - change policy on remote displaypublic int getProjectionPolicy()
getProjectionPolicy in class GraphicsModeControlpublic void setSceneAntialiasingEnable(boolean flag)
throws VisADException,
RemoteException
flag - true to enable antialiasingVisADException - a VisAD error occurredRemoteException - change policy on remote displaypublic boolean getSceneAntialiasingEnable()
public void setPolygonMode(int mode)
throws VisADException,
RemoteException
setPolygonMode in class GraphicsModeControlmode - the polygon rasterization mode to be used; one of
DisplayImplJ3D.POLYGON_FILL, DisplayImplJ3D.POLYGON_LINE,
or DisplayImplJ3D.POLYGON_POINTVisADException - bad mode or can't create the necessary VisAD
objectRemoteException - can't change mode on remote displaypublic void setPolygonMode(int mode,
boolean noChange)
throws VisADException,
RemoteException
setPolygonMode in class GraphicsModeControlmode - the polygon rasterization mode to be used; one of
DisplayImplJ3D.POLYGON_FILL, DisplayImplJ3D.POLYGON_LINE,
or DisplayImplJ3D.POLYGON_POINTnoChange - dummy variableVisADException - bad mode or can't create the necessary VisAD
objectRemoteException - can't change mode on remote displaypublic int getPolygonMode()
getPolygonMode in class GraphicsModeControlpublic void setPolygonOffset(float polygonOffset)
throws VisADException,
RemoteException
setPolygonOffset in class GraphicsModeControlpolygonOffset - the polygon offset to be usedVisADException - Unable to change offsetRemoteException - can't change offset on remote displaypublic void setPolygonOffset(float polygonOffset,
boolean noChange)
setPolygonOffset in class GraphicsModeControlpolygonOffset - the polygon offset to be usednoChange - dummy variableVisADException - Unable to change offsetRemoteException - can't change offset on remote displaypublic float getPolygonOffset()
getPolygonOffset in class GraphicsModeControlpublic void setPolygonOffsetFactor(float polygonOffsetFactor)
throws VisADException,
RemoteException
setPolygonOffsetFactor in class GraphicsModeControlpolygonOffsetFactor - the polygon offset factor to be usedVisADException - Unable to change offset factorRemoteException - can't change offset factor on remote displaypublic void setPolygonOffsetFactor(float polygonOffsetFactor,
boolean noChange)
setPolygonOffsetFactor in class GraphicsModeControlpolygonOffsetFactor - the polygon offset to be usednoChange - dummy variableVisADException - Unable to change offset factorRemoteException - can't change offset factor on remote displaypublic float getPolygonOffsetFactor()
getPolygonOffsetFactor in class GraphicsModeControlpublic void setDepthBufferEnable(boolean enable)
throws VisADException,
RemoteException
VisADExceptionRemoteExceptionpublic void setDepthBufferEnable(boolean enable,
boolean noChange)
public boolean getDepthBufferEnable()
public void setAutoDepthOffsetEnable(boolean enable)
throws VisADException,
RemoteException
enable - VisADExceptionRemoteExceptionpublic void setAutoDepthOffsetEnable(boolean enable,
boolean noChange)
throws VisADException,
RemoteException
VisADExceptionRemoteExceptionpublic boolean getAutoDepthOffsetEnable()
public void setNumRenderersWithDepthOffset(int numWith,
boolean noChange)
throws VisADException,
RemoteException
numWith - should be > 1noChange - VisADExceptionRemoteExceptionpublic int getNumRenderersWithDepthOffset()
public void setDepthOffsetIncrement(float inc,
boolean noChange)
throws VisADException,
RemoteException
inc - noChange - VisADExceptionRemoteExceptionpublic float getDepthOffsetIncrement()
public boolean getMissingTransparent()
getMissingTransparent in class GraphicsModeControlpublic void setMissingTransparent(boolean missing)
setMissingTransparent in class GraphicsModeControlmissing - true if missing values should be rendered transparent.public int getCurvedSize()
getCurvedSize in class GraphicsModeControlpublic void setCurvedSize(int curved_size)
setCurvedSize in class GraphicsModeControlcurved_size - undersampling factor (default 10)public boolean getAdjustProjectionSeam()
getAdjustProjectionSeam in class GraphicsModeControlpublic void setAdjustProjectionSeam(boolean adjust)
throws VisADException,
RemoteException
setAdjustProjectionSeam in class GraphicsModeControladjust - true if adjust methods should be calledVisADException - Unable to change adjust seam propertyRemoteException - can't change adjust seam property on remote displaypublic void setTexture3DMode(int mode)
throws VisADException,
RemoteException
setTexture3DMode in class GraphicsModeControlmode - mode for Texture3D (STACK2D or TEXTURE3D)VisADException - Unable to change Texture3D modeRemoteException - can't change Texture3D mode on remote displaypublic int getTexture3DMode()
getTexture3DMode in class GraphicsModeControlpublic void setCacheAppearances(boolean cache)
setCacheAppearances in class GraphicsModeControlcache - true to cache and reuse appearancesVisADException - Unable to change cachingRemoteException - can't change caching on remote displaypublic boolean getCacheAppearances()
getCacheAppearances in class GraphicsModeControlpublic void setMergeGeometries(boolean merge)
setMergeGeometries in class GraphicsModeControlmerge - true to merge geometries if possibleVisADException - Unable to change cachingRemoteException - can't change caching on remote displaypublic boolean getMergeGeometries()
getMergeGeometries in class GraphicsModeControlpublic Object clone()
clone in class GraphicsModeControlpublic void syncControl(Control rmt) throws VisADException
syncControl in class Controlrmt - remote control to sync with this oneVisADException - rmt == null or rmt is not a
GraphicsModeControlJ3D or couldn't tell if
control was changed.public boolean equals(Object o)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.