igeo.gui
Class IGLTriangles

java.lang.Object
  extended by igeo.gui.IGLElement
      extended by igeo.gui.IGLTriangles

public class IGLTriangles
extends IGLElement

Objectified OpenGL triangle drawing process.

Version:
0.7.0.0;
Author:
Satoru Sugihara

Field Summary
 
Fields inherited from class igeo.gui.IGLElement
normal, pts, tmpNormal, tmpPts
 
Constructor Summary
IGLTriangles(IVec[][] triangles)
           
IGLTriangles(IVec[][] triangles, IVec[][] normals)
           
 
Method Summary
 void draw(javax.media.opengl.GL gl)
           
 void setPoint(int triangleIdx, int vertexIdx, IVec pt)
           
 void setPoint(int triangleIdx, int vertexIdx, IVec pt, IVec nml)
           
 int triangleNum()
           
 
Methods inherited from class igeo.gui.IGLElement
addPoint, addPoint, drawPoints, finalizePoint, getNum, num, setNormal, setNormal, setNormalNum, setPoint, setPoint, setPointNum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGLTriangles

public IGLTriangles(IVec[][] triangles)

IGLTriangles

public IGLTriangles(IVec[][] triangles,
                    IVec[][] normals)
Method Detail

triangleNum

public int triangleNum()

setPoint

public void setPoint(int triangleIdx,
                     int vertexIdx,
                     IVec pt)

setPoint

public void setPoint(int triangleIdx,
                     int vertexIdx,
                     IVec pt,
                     IVec nml)

draw

public void draw(javax.media.opengl.GL gl)
Specified by:
draw in class IGLElement