|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.Control visad.GraphicsModeControl visad.java2d.GraphicsModeControlJ2D
public class GraphicsModeControlJ2D
GraphicsModeControlJ2D is the VisAD class for controlling various mode settings for rendering.
A GraphicsModeControlJ2D is not linked to any DisplayRealType or ScalarMap. It is linked to a DisplayImpl.
Field Summary |
---|
Fields inherited from class visad.GraphicsModeControl |
---|
AVERAGE_COLOR_MODE, DASH_DOT_STYLE, DASH_STYLE, DOT_STYLE, SOLID_STYLE, STACK2D, SUM_COLOR_MODE, TEXTURE3D |
Constructor Summary | |
---|---|
GraphicsModeControlJ2D(DisplayImpl d)
|
Method Summary | |
---|---|
Object |
clone()
A method to copy this object |
boolean |
equals(Object o)
Indicates whether or not this instance equals an Object |
boolean |
getAdjustProjectionSeam()
See if VisADGeometryArray.adjustLongitude/Seam should be used |
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 |
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()
Get the 2D mode of the display. |
boolean |
getPointMode()
Gets the point mode. |
float |
getPointSize()
Get the current point size used for PointAttributes. |
int |
getPolygonMode()
Get the current polygon 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 |
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/Seam should be used. |
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 |
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 |
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 mode. |
void |
setPolygonMode(int mode,
boolean noChange)
Sets the polygon 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. |
void |
setPolygonOffsetFactor(float polygonOffsetFactor,
boolean noChange)
Sets the polygon offset factor. |
void |
setProjectionPolicy(int policy)
Sets the projection policy for the display. |
void |
setScaleEnable(boolean enable)
Toggle the axis scales in 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()
|
Methods inherited from class visad.GraphicsModeControl |
---|
getSaveString, setSaveString |
Methods inherited from class visad.Control |
---|
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GraphicsModeControlJ2D(DisplayImpl d)
Method Detail |
---|
public boolean getMode2D()
GraphicsModeControl
getMode2D
in class GraphicsModeControl
public float getLineWidth()
getLineWidth
in class GraphicsModeControl
public void setLineWidth(float width) throws VisADException, RemoteException
setLineWidth
in class GraphicsModeControl
width
- width to use (>= 1.0)
VisADException
- couldn't set the line width on local display
RemoteException
- couldn't set the line width on remote displaypublic void setLineWidth(float width, boolean noChange)
setLineWidth
in class GraphicsModeControl
width
- width to use (>= 1.0)noChange
- dummy flagpublic float getPointSize()
getPointSize
in class GraphicsModeControl
public void setPointSize(float size) throws VisADException, RemoteException
setPointSize
in class GraphicsModeControl
size
- size to use (>= 1.0)
VisADException
- couldn't set the point size on local display
RemoteException
- couldn't set the point size on remote displaypublic void setPointSize(float size, boolean noChange)
setPointSize
in class GraphicsModeControl
size
- size to use (>= 1.0)noChange
- dummy flagpublic int getLineStyle()
getLineStyle
in class GraphicsModeControl
public void setLineStyle(int style) throws VisADException, RemoteException
setLineStyle
in class GraphicsModeControl
style
- style to use (SOLID_STYLE, DASH_STYLE,
DOT_STYLE or DASH_DOT_STYLE)
VisADException
- couldn't set the line style on local display
RemoteException
- couldn't set the line style on remote displaypublic void setLineStyle(int style, boolean noChange)
setLineStyle
in class GraphicsModeControl
style
- style to use (SOLID_STYLE, DASH_STYLE,
DOT_STYLE or DASH_DOT_STYLE)noChange
- dummy flagpublic int getColorMode()
getColorMode
in class GraphicsModeControl
public void setColorMode(int mode) throws VisADException, RemoteException
setColorMode
in class GraphicsModeControl
mode
- mode to use (AVERAGE_COLOR_MODE or SUM_COLOR_MODE)
VisADException
- unable to set color mode
RemoteException
- unable to set color mode on remote displaypublic boolean getPointMode()
getPointMode
in class GraphicsModeControl
public void setPointMode(boolean mode) throws VisADException, RemoteException
setPointMode
in class GraphicsModeControl
mode
- true if the display should use points rather
than connected lines or surfaces for rendering.
VisADException
- unable to enable point mode
RemoteException
- unable to enable point mode on remote displaypublic void setTextureEnable(boolean enable) throws VisADException, RemoteException
setTextureEnable
in class GraphicsModeControl
enable
- true to use texture mapping (the default)
VisADException
- unable to enable texture mapping
RemoteException
- unable to enable texture mapping on remote displaypublic boolean getTextureEnable()
getTextureEnable
in class GraphicsModeControl
public void setScaleEnable(boolean enable) throws VisADException, RemoteException
setScaleEnable
in class GraphicsModeControl
enable
- true to enable, false to disable
VisADException
- couldn't change state of scale enablement
RemoteException
- couldn't change state of scale enablement on
remote displaypublic boolean getScaleEnable()
getScaleEnable
in class GraphicsModeControl
public int getTransparencyMode()
getTransparencyMode
in class GraphicsModeControl
public void setTransparencyMode(int mode) throws VisADException, RemoteException
setTransparencyMode
in class GraphicsModeControl
mode
- transparency mode to use. Legal value = 0.
VisADException
- bad mode or couldn't create necessary VisAD
object
RemoteException
- couldn't create necessary remote objectpublic void setProjectionPolicy(int policy) throws VisADException, RemoteException
setProjectionPolicy
in class GraphicsModeControl
policy
- policy to be used
VisADException
- bad policy or can't create the necessary VisAD
object
RemoteException
- change policy on remote displaypublic int getProjectionPolicy()
getProjectionPolicy
in class GraphicsModeControl
public void setPolygonMode(int mode) throws VisADException, RemoteException
setPolygonMode
in class GraphicsModeControl
mode
- the polygon mode to be used
VisADException
- bad mode or can't create the necessary VisAD
object
RemoteException
- can't change mode on remote displaypublic void setPolygonMode(int mode, boolean noChange)
setPolygonMode
in class GraphicsModeControl
mode
- the polygon mode to be usednoChange
- dummy flag
VisADException
- bad mode or can't create the necessary VisAD
object
RemoteException
- can't change mode on remote displaypublic int getPolygonMode()
getPolygonMode
in class GraphicsModeControl
public void setPolygonOffset(float polygonOffset) throws VisADException, RemoteException
setPolygonOffset
in class GraphicsModeControl
polygonOffset
- the polygon offset to be used
VisADException
- bad offset
RemoteException
- can't change offset on remote displaypublic void setPolygonOffset(float polygonOffset, boolean noChange)
setPolygonOffset
in class GraphicsModeControl
polygonOffset
- the polygon offset to be usednoChange
- dummy variablepublic float getPolygonOffset()
getPolygonOffset
in class GraphicsModeControl
public void setPolygonOffsetFactor(float polygonOffsetFactor) throws VisADException, RemoteException
setPolygonOffsetFactor
in class GraphicsModeControl
polygonOffsetFactor
- the polygon offset factor to be used
VisADException
- bad offset factor with change
RemoteException
- can't change mode on remote displaypublic void setPolygonOffsetFactor(float polygonOffsetFactor, boolean noChange)
setPolygonOffsetFactor
in class GraphicsModeControl
polygonOffsetFactor
- the polygon offset factor to be usednoChange
- dummy variable
VisADException
- bad offset factor with change
RemoteException
- can't change offset on remote displaypublic float getPolygonOffsetFactor()
getPolygonOffsetFactor
in class GraphicsModeControl
public boolean getMissingTransparent()
getMissingTransparent
in class GraphicsModeControl
public void setMissingTransparent(boolean missing) throws VisADException, RemoteException
setMissingTransparent
in class GraphicsModeControl
missing
- true if missing values should be rendered transparent.
VisADException
- Unable to change missing transparent
RemoteException
- can't change missing transparent on remote displaypublic int getCurvedSize()
getCurvedSize
in class GraphicsModeControl
public void setCurvedSize(int curved_size)
setCurvedSize
in class GraphicsModeControl
curved_size
- undersampling factor (default 10)public void setAdjustProjectionSeam(boolean adjust) throws VisADException, RemoteException
setAdjustProjectionSeam
in class GraphicsModeControl
adjust
- true to use adjust methods
VisADException
- Unable to change adjust seam property
RemoteException
- can't change adjust seam property on remote displaypublic boolean getAdjustProjectionSeam()
getAdjustProjectionSeam
in class GraphicsModeControl
public void setTexture3DMode(int mode) throws VisADException, RemoteException
setTexture3DMode
in class GraphicsModeControl
mode
- mode for Texture3D (STACK2D or TEXTURE3D)
VisADException
- Unable to change Texture3D mode
RemoteException
- can't change Texture3D mode on remote displaypublic void setCacheAppearances(boolean cache)
setCacheAppearances
in class GraphicsModeControl
cache
- true to cache and reuse appearances
VisADException
- Unable to change caching
RemoteException
- can't change caching on remote displaypublic boolean getCacheAppearances()
getCacheAppearances
in class GraphicsModeControl
public void setMergeGeometries(boolean merge)
setMergeGeometries
in class GraphicsModeControl
merge
- true to merge geometries if possible
VisADException
- Unable to change caching
RemoteException
- can't change caching on remote displaypublic boolean getMergeGeometries()
getMergeGeometries
in class GraphicsModeControl
public int getTexture3DMode()
getTexture3DMode
in class GraphicsModeControl
public Object clone()
GraphicsModeControl
clone
in class GraphicsModeControl
public void syncControl(Control rmt) throws VisADException
syncControl
in class Control
rmt
- remote Control whose state is copied
VisADException
- if a VisAD error occurspublic boolean equals(Object o)
Control
equals
in class Control
o
- an Object
public String toString()
toString
in class Control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |