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

Variable Index

 o vrmlshades
 o wireframe
 o xlight
 o ylight
 o zlight

Constructor Index

 o WaveVRMLSurface()
Creates a frame of the requested size

Method Index

 o drawView(Graphics)
Overide the drawView method with a dummy method since the VRML does not draw anything into the container
 o plot()
Connects to the PV-WAVE server and creates the graphic display and displays it in the container.
 o reset()
Reset all PV-WAVE plot attributes and data
 o setLight(double, double, double)
Set the position of a light source in 3D coordinates
 o setShades(int)
Set the color of the VRML surface.
 o setWireframe(boolean)
Flag to set Wireframe vrs Shaded Surface representation

Variables

 o wireframe
  protected boolean wireframe
 o vrmlshades
  protected int vrmlshades
 o xlight
  protected double xlight
 o ylight
  protected double ylight
 o zlight
  protected double zlight

Constructors

 o 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

Methods

 o 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
 o 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
 o setWireframe
  public void setWireframe(boolean flag)
Flag to set Wireframe vrs Shaded Surface representation
 o 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.
 o setLight
  public void setLight(double x,
                       double y,
                       double z)
Set the position of a light source in 3D coordinates
 o 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