Class VisualNumerics.wave.WaveVRMLSurface
All Packages Class Hierarchy This Package Previous Next Index
Class VisualNumerics.wave.WaveVRMLSurface
java.lang.Object
|
+----netscape.application.View
|
+----netscape.application.ContainerView
|
+----VisualNumerics.wave.WaveGraph
|
+----VisualNumerics.wave.WaveVRMLSurface
- public class WaveVRMLSurface
- extends WaveGraph
A class for creating VRML surface plots.
This class encapsulates the PV-WAVE VRMLSurface command
and all of the associated positional parameters and keywords
and produces a VRML surface plot in a new container.
VRMLSurface is part of the "Wave on the Web" toolkit.
Methods for setting all of the parameters/keywords have the form
setKeyword(arg1, arg2, ...) where "Keyword" is the parameter
or keyword name from the PV-WAVE documentation. See the WaveGraph
class documentation for information on these methods.
This class also handles the communication between the applet and a PV-WAVE
graphic server running on the web server that served the java applet.
- Version:
- 2.00, 4 Dec 1996
- Author:
- Steve Lang
- See Also:
- setX, setY, setZ, setGrid, setGridNx, setGridNy, setGridNghbr, TEK_COLOR, LOADCT, setAx, setAz, setCharsize, setCharthick, setColor, setData, setDevice, setNormal, setFont, setLinestyle, setNodata, setPosition, setRegion, setTitle, setSubtitle, setThick, setTicklen, setYnozero, setXCharsize, setXGridstyle, setXMinor, setXRange, setXStyle, setXTicklen, setXTicks, setXTitle, setXType, setYCharsize, setYGridstyle, setYMinor, setYRange, setYStyle, setYTicklen, setYTicks, setYTitle, setYType, setZCharsize, setZGridstyle, setZMinor, setZRange, setZStyle, setZTicklen, setZTicks, setZTitle, setZType, setFile
-
vrmlshades
-
-
wireframe
-
-
xlight
-
-
ylight
-
-
zlight
-
-
WaveVRMLSurface()
- Creates a frame of the requested size
-
drawView(Graphics)
- Overide the drawView method with a dummy method since the VRML does not
draw anything into the container
-
plot()
- Connects to the PV-WAVE server and creates the graphic
display and displays it in the container.
-
reset()
- Reset all PV-WAVE plot attributes and data
-
setLight(double, double, double)
- Set the position of a light source in 3D coordinates
-
setShades(int)
- Set the color of the VRML surface.
-
setWireframe(boolean)
- Flag to set Wireframe vrs Shaded Surface representation
wireframe
protected boolean wireframe
vrmlshades
protected int vrmlshades
xlight
protected double xlight
ylight
protected double ylight
zlight
protected double zlight
WaveVRMLSurface
public WaveVRMLSurface()
- Creates a frame of the requested size
- Parameters:
- x - the x location of the View
- y - the x location of the View
- xs - the with of the View
- ys - the height of the View
plot
public void plot()
- Connects to the PV-WAVE server and creates the graphic
display and displays it in the container.
- Overrides:
- plot in class WaveGraph
drawView
public void drawView(Graphics g)
- Overide the drawView method with a dummy method since the VRML does not
draw anything into the container
- Overrides:
- drawView in class WaveGraph
setWireframe
public void setWireframe(boolean flag)
- Flag to set Wireframe vrs Shaded Surface representation
setShades
public void setShades(int col)
- Set the color of the VRML surface. Valid indicies are 0-32
which uses colors from the PV-WAVE TEK_COLOR palette.
setLight
public void setLight(double x,
double y,
double z)
- Set the position of a light source in 3D coordinates
reset
public void reset()
- Reset all PV-WAVE plot attributes and data
- Overrides:
- reset in class WaveGraph
All Packages Class Hierarchy This Package Previous Next Index