edu.sdsc.mbt.viewers.GLViewerImpl
Class GlExtrusion

java.lang.Object
  extended byedu.sdsc.mbt.viewers.GLViewerImpl.GlExtrusion

public class GlExtrusion
extends java.lang.Object

Creates a geometry factory that uses JOGL/OpenGL to draw a generalized extrusion.

Note: All angles are expressed in radians.

Author:
John L. Moreland
See Also:

Constructor Summary
GlExtrusion(float[][] spine, float[][] crossSection)
          Secondary Constructor.
GlExtrusion(float[][] spine, float[][] crossSection, float[][] color)
          Secondary Constructor.
GlExtrusion(float[][] spine, float[][] crossSection, float[][] color, float[][] scale)
          Secondary Constructor.
GlExtrusion(float[][] spine, float[][] crossSection, float[][] color, float[][] orientation, float[][] scale)
          Secondary Constructor.
GlExtrusion(float[][] spine, float[][] crossSection, float[][] color, float[][] orientation, float[][] scale, boolean beginCap, boolean endCap, boolean ccw, float creaseAngle)
          Primary Constructor.
 
Method Summary
 void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut)
          Draw the extrusion with the specified JOGL context using the current extrusion state.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlExtrusion

public GlExtrusion(float[][] spine,
                   float[][] crossSection,
                   float[][] color,
                   float[][] orientation,
                   float[][] scale,
                   boolean beginCap,
                   boolean endCap,
                   boolean ccw,
                   float creaseAngle)
Primary Constructor.

Parameters:
spine - [spineIndex] [x,y,z].
crossSection - [index] [x,y].
color - [spineIndex] [r,g,b].
orientation - [spineIndex] [angle,x,y,z] to provide a "twist".
scale - [spineIndex] [x,y].
beginCap - draw it or not.
endCap - draw it or not.
ccw - counter clock-wise polygon ordering (TBD).
creaseAngle - smooth VS facet normal cut-off (TBD).
Throws:
java.lang.NullPointerException - if an argument is null.
java.lang.IllegalArgumentException - if an argument is invalid.

GlExtrusion

public GlExtrusion(float[][] spine,
                   float[][] crossSection,
                   float[][] color,
                   float[][] orientation,
                   float[][] scale)
Secondary Constructor.

See Also:
GlExtrusion(float[][],float[][],float[][],float[][],float[][],boolean,boolean,boolean,float)

GlExtrusion

public GlExtrusion(float[][] spine,
                   float[][] crossSection,
                   float[][] color,
                   float[][] scale)
Secondary Constructor.

See Also:
GlExtrusion(float[][],float[][],float[][],float[][],float[][],boolean,boolean,boolean,float)

GlExtrusion

public GlExtrusion(float[][] spine,
                   float[][] crossSection,
                   float[][] color)
Secondary Constructor.

See Also:
GlExtrusion(float[][],float[][],float[][],float[][],float[][],boolean,boolean,boolean,float)

GlExtrusion

public GlExtrusion(float[][] spine,
                   float[][] crossSection)
Secondary Constructor.

See Also:
GlExtrusion(float[][],float[][],float[][],float[][],float[][],boolean,boolean,boolean,float)
Method Detail

draw

public final void draw(javax.media.opengl.GL gl,
                       javax.media.opengl.glu.GLU glu,
                       com.sun.opengl.util.GLUT glut)
Draw the extrusion with the specified JOGL context using the current extrusion state.

Returns:
Throws: