|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisad.Control
visad.GraphicsModeControl
visad.java3d.GraphicsModeControlJ3D
public class GraphicsModeControlJ3D
GraphicsModeControlJ3D is the VisAD class for controlling various mode settings for rendering.
A GraphicsModeControlJ3D 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, SUM_COLOR_MODE |
Constructor Summary | |
---|---|
GraphicsModeControlJ3D(DisplayImpl d)
Construct a GraphicsModeControlJ3D associated with the input display |
Method Summary | |
---|---|
java.lang.Object |
clone()
clone this GraphicsModeControlJ3D |
boolean |
equals(java.lang.Object o)
Check to see if this GraphicsModeControlJ3D is equal to the object in question. |
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 |
getMissingTransparent()
See whether missing values are rendered as transparent or not. |
boolean |
getMode2D()
See if the display is being rendered in 2D mode |
boolean |
getPointMode()
Gets the point mode. |
float |
getPointSize()
Get the current point size used for PointAttributes. |
int |
getPolygonMode()
Get the current polygon rasterization mode. |
int |
getProjectionPolicy()
Get the current projection policy for the display. |
boolean |
getScaleEnable()
Get whether display scales are enabled or not |
boolean |
getTextureEnable()
See if texture mapping is enabled or not |
int |
getTransparencyMode()
Get the current transparency mode |
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 dummy)
Set the line style used for LineAttributes. |
void |
setLineWidth(float width)
Set the line width used for LineAttributes. |
void |
setLineWidth(float width,
boolean dummy)
Set the line width used for LineAttributes. |
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)
Get the point size used for PointAttributes. |
void |
setPointSize(float size,
boolean dummy)
Get the point size used for PointAttributes. |
void |
setPolygonMode(int mode)
Sets the polygon rasterization mode. |
void |
setProjectionPolicy(int policy)
Sets the projection policy for the display. |
void |
setScaleEnable(boolean enable)
Toggle the axis scales in the display |
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 |
java.lang.String |
toString()
Return a string representation of this GraphicsModeControlJ3D |
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 GraphicsModeControlJ3D(DisplayImpl d)
d
- display associated with this GraphicsModeControlJ3DMethod Detail |
---|
public boolean getMode2D()
getMode2D
in class GraphicsModeControl
DisplayRenderer.getMode2D()
public float getLineWidth()
getLineWidth
in class GraphicsModeControl
public void setLineWidth(float width) throws VisADException, java.rmi.RemoteException
setLineWidth
in class GraphicsModeControl
width
- width to use (>= 1.0)
VisADException
- couldn't set the line width on local display
java.rmi.RemoteException
- couldn't set the line width on remote displaypublic void setLineWidth(float width, boolean dummy)
setLineWidth
in class GraphicsModeControl
width
- width to use (>= 1.0)public float getPointSize()
getPointSize
in class GraphicsModeControl
public void setPointSize(float size) throws VisADException, java.rmi.RemoteException
setPointSize
in class GraphicsModeControl
size
- size to use (>= 1.0)
VisADException
- couldn't set the point size on local display
java.rmi.RemoteException
- couldn't set the point size on remote displaypublic void setPointSize(float size, boolean dummy)
setPointSize
in class GraphicsModeControl
size
- size to use (>= 1.0)public int getLineStyle()
getLineStyle
in class GraphicsModeControl
public void setLineStyle(int style) throws VisADException, java.rmi.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
java.rmi.RemoteException
- couldn't set the line style on remote displaypublic void setLineStyle(int style, boolean dummy)
setLineStyle
in class GraphicsModeControl
style
- style to use (SOLID_STYLE, DASH_STYLE,
DOT_STYLE or DASH_DOT_STYLE)public int getColorMode()
getColorMode
in class GraphicsModeControl
public void setColorMode(int mode) throws VisADException, java.rmi.RemoteException
setColorMode
in class GraphicsModeControl
mode
- mode to use (AVERAGE_COLOR_MODE or SUM_COLOR_MODE)
VisADException
java.rmi.RemoteException
public boolean getPointMode()
getPointMode
in class GraphicsModeControl
public void setPointMode(boolean mode) throws VisADException, java.rmi.RemoteException
setPointMode
in class GraphicsModeControl
mode
- true if the display should use points rather
than connected lines or surfaces for rendering.
VisADException
java.rmi.RemoteException
public void setTextureEnable(boolean enable) throws VisADException, java.rmi.RemoteException
setTextureEnable
in class GraphicsModeControl
enable
- true to use texture mapping (the default)
VisADException
java.rmi.RemoteException
public boolean getTextureEnable()
getTextureEnable
in class GraphicsModeControl
public void setScaleEnable(boolean enable) throws VisADException, java.rmi.RemoteException
setScaleEnable
in class GraphicsModeControl
enable
- true to enable, false to disable
VisADException
- couldn't change state of scale enablement
java.rmi.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, java.rmi.RemoteException
setTransparencyMode
in class GraphicsModeControl
mode
- transparency mode to use. Legal values are
DisplayImplJ3D.FASTEST, DisplayImplJ3D.NICEST
VisADException
- bad mode or couldn't create necessary VisAD
object
java.rmi.RemoteException
- couldn't create necessary remote objectpublic void setProjectionPolicy(int policy) throws VisADException, java.rmi.RemoteException
setProjectionPolicy
in class GraphicsModeControl
policy
- policy to be used (DisplayImplJ3D.PARALLEL_PROJECTION
or DisplayImplJ3D.PERSPECTIVE_PROJECTION
VisADException
- bad policy or can't create the necessary VisAD
object
java.rmi.RemoteException
- change policy on remote displaypublic int getProjectionPolicy()
getProjectionPolicy
in class GraphicsModeControl
public void setPolygonMode(int mode) throws VisADException, java.rmi.RemoteException
setPolygonMode
in class GraphicsModeControl
mode
- the polygon rasterization mode to be used; one of
DisplayImplJ3D.POLYGON_FILL, DisplayImplJ3D.POLYGON_LINE,
or DisplayImplJ3D.POLYGON_POINT
VisADException
- bad mode or can't create the necessary VisAD
object
java.rmi.RemoteException
- can't change mode on remote displaypublic int getPolygonMode()
getPolygonMode
in class GraphicsModeControl
public boolean getMissingTransparent()
getMissingTransparent
in class GraphicsModeControl
public void setMissingTransparent(boolean missing)
setMissingTransparent
in class GraphicsModeControl
missing
- true if missing values should be rendered transparent.public int getCurvedSize()
getCurvedSize
in class GraphicsModeControl
public void setCurvedSize(int curved_size)
setCurvedSize
in class GraphicsModeControl
curved_size
- undersampling factor (default 10)public java.lang.Object clone()
clone
in class GraphicsModeControl
public void syncControl(Control rmt) throws VisADException
syncControl
in class Control
rmt
- remote control to sync with this one
VisADException
- rmt == null or rmt is not a
GraphicsModeControlJ3D or couldn't tell if
control was changed.public boolean equals(java.lang.Object o)
equals
in class Control
o
- object in question
public java.lang.String toString()
toString
in class Control
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |