|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.sdsc.mbt.viewers.GLViewerImpl.GlExtrusion
Creates a geometry factory that uses JOGL/OpenGL to draw a generalized extrusion.
Note: All angles are expressed in radians.
| 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 |
public GlExtrusion(float[][] spine,
float[][] crossSection,
float[][] color,
float[][] orientation,
float[][] scale,
boolean beginCap,
boolean endCap,
boolean ccw,
float creaseAngle)
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).
java.lang.NullPointerException - if an argument is null.
java.lang.IllegalArgumentException - if an argument is invalid.
public GlExtrusion(float[][] spine,
float[][] crossSection,
float[][] color,
float[][] orientation,
float[][] scale)
GlExtrusion(float[][],float[][],float[][],float[][],float[][],boolean,boolean,boolean,float)
public GlExtrusion(float[][] spine,
float[][] crossSection,
float[][] color,
float[][] scale)
GlExtrusion(float[][],float[][],float[][],float[][],float[][],boolean,boolean,boolean,float)
public GlExtrusion(float[][] spine,
float[][] crossSection,
float[][] color)
GlExtrusion(float[][],float[][],float[][],float[][],float[][],boolean,boolean,boolean,float)
public GlExtrusion(float[][] spine,
float[][] crossSection)
GlExtrusion(float[][],float[][],float[][],float[][],float[][],boolean,boolean,boolean,float)| Method Detail |
public final void draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
com.sun.opengl.util.GLUT glut)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||