igeo.gui
Class IGLQuadMatrix

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

public class IGLQuadMatrix
extends IGLElement

Objectified OpenGL drawing process of matrix of quad geometries by quad strips.

Author:
Satoru Sugihara

Field Summary
 int height
           
 int width
           
 
Fields inherited from class igeo.gui.IGLElement
normal, pts, tmpNormal, tmpPts
 
Constructor Summary
private IGLQuadMatrix()
           
private IGLQuadMatrix(int width, int height)
           
private IGLQuadMatrix(IVec[][] ptmatrix)
           
private IGLQuadMatrix(IVec[][] ptmatrix, IVec[][] normalMatrix)
           
 
Method Summary
 void draw(GL2 gl)
           
 int height()
           
 void setPoint(int x, int y, IVec pt)
           
 void setPoint(int x, int y, IVec pt, IVec nrm)
           
 int width()
           
 
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
 

Field Detail

width

public int width

height

public int height
Constructor Detail

IGLQuadMatrix

private IGLQuadMatrix()

IGLQuadMatrix

private IGLQuadMatrix(int width,
                      int height)

IGLQuadMatrix

private IGLQuadMatrix(IVec[][] ptmatrix)

IGLQuadMatrix

private IGLQuadMatrix(IVec[][] ptmatrix,
                      IVec[][] normalMatrix)
Method Detail

width

public int width()

height

public int height()

setPoint

public void setPoint(int x,
                     int y,
                     IVec pt)

setPoint

public void setPoint(int x,
                     int y,
                     IVec pt,
                     IVec nrm)

draw

public void draw(GL2 gl)
Specified by:
draw in class IGLElement