igeo.gui
Class IMeshGraphicGL

java.lang.Object
  extended by igeo.IGraphicObject
      extended by igeo.gui.IMeshGraphicGL
All Implemented Interfaces:
IGraphicI, ISubobject

public class IMeshGraphicGL
extends IGraphicObject

Graphic subobject class to draw polygon mesh object by OpenGL.

Author:
Satoru Sugihara

Field Summary
 IVec[][] edgePts
           
 IVec[][] faceNormal
           
 IVec[][] facePts
           
 IMeshI mesh
           
static float weight
           
 
Fields inherited from class igeo.IGraphicObject
color, colorRange1f, colorRange1i, colorRange2f, colorRange2i, colorRange3f, colorRange3i, colorRange4f, colorRange4i, parent, update, visible
 
Constructor Summary
IMeshGraphicGL(IMesh m)
           
IMeshGraphicGL(IMeshR m)
           
 
Method Summary
 void draw(IGraphics g)
           
 float getWeight()
           
 void initMesh()
           
 boolean isDrawable(IGraphicMode m)
           
 void setWeight(float w)
           
 
Methods inherited from class igeo.IGraphicObject
getAWTColor, getColor, getColor, getColor, getColor, getColor, getColor, getColor, getColor, getColor, getColor, getColor, getHSBColor, getHSBColor, hide, isVisible, parent, parent, setAttribute, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setColor, setHSBColor, setHSBColor, setVisible, show, update, visible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weight

public static float weight

mesh

public IMeshI mesh

facePts

public IVec[][] facePts

faceNormal

public IVec[][] faceNormal

edgePts

public IVec[][] edgePts
Constructor Detail

IMeshGraphicGL

public IMeshGraphicGL(IMesh m)

IMeshGraphicGL

public IMeshGraphicGL(IMeshR m)
Method Detail

initMesh

public void initMesh()

setWeight

public void setWeight(float w)
Overrides:
setWeight in class IGraphicObject

getWeight

public float getWeight()
Overrides:
getWeight in class IGraphicObject

isDrawable

public boolean isDrawable(IGraphicMode m)
Specified by:
isDrawable in interface IGraphicI
Specified by:
isDrawable in class IGraphicObject

draw

public void draw(IGraphics g)
Specified by:
draw in interface IGraphicI
Specified by:
draw in class IGraphicObject