subscript.vis
Class VisSurface

java.lang.Object
  extended by subscript.vis.VisObject
      extended by subscript.vis.VisSurface
Direct Known Subclasses:
VisQuadraticSurface

public class VisSurface
extends VisObject

Visualization of a surface as a mesh (x,y,z) tuples.


Constructor Summary
VisSurface(ColorMapper cm, double[][] data)
           
VisSurface(ColorMapper cm, double[] xs, double[] ys, double[] zs, int stride)
           
 
Method Summary
 Box3D getExtents(Matrix S)
          Get the bounding box in global coordinates, i.e., using the object's transform T and the passed-in matrix S.
 void render(VisRenderer r, VisWorld world, VisView v)
          Called by VisCanvas when it is time to render the object.
 void setEnableShading(boolean v)
           
 void visCanvasNativeRender(VisCanvas vc, VisWorld world, VisView view, javax.media.opengl.GLAutoDrawable gld, javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu)
           
 
Methods inherited from class subscript.vis.VisObject
getPosition, rotateX, rotateY, rotateZ, setPosition, setPosition, setPosition, setPositionT, setPositionXYT, setPositionXYT, setPositionXYZ, transform, transform, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisSurface

public VisSurface(ColorMapper cm,
                  double[] xs,
                  double[] ys,
                  double[] zs,
                  int stride)
Parameters:
stride - How many x,y,z triplets to plot in each "strip"

VisSurface

public VisSurface(ColorMapper cm,
                  double[][] data)
Method Detail

setEnableShading

public void setEnableShading(boolean v)

render

public void render(VisRenderer r,
                   VisWorld world,
                   VisView v)
Description copied from class: VisObject
Called by VisCanvas when it is time to render the object.

Specified by:
render in class VisObject

getExtents

public Box3D getExtents(Matrix S)
Description copied from class: VisObject
Get the bounding box in global coordinates, i.e., using the object's transform T and the passed-in matrix S. I.e., pass S*T to methods of Box3D.

Specified by:
getExtents in class VisObject

visCanvasNativeRender

public void visCanvasNativeRender(VisCanvas vc,
                                  VisWorld world,
                                  VisView view,
                                  javax.media.opengl.GLAutoDrawable gld,
                                  javax.media.opengl.GL gl,
                                  javax.media.opengl.glu.GLU glu)