igeo.gui
Class ICurveGraphicGL

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

public class ICurveGraphicGL
extends IGraphicObject

Graphic subobject class to draw a curve object by OpenGL

Author:
Satoru Sugihara

Field Summary
 ICurveI curve
           
 IVec[] pts
           
 float weight
           
 
Fields inherited from class igeo.IGraphicObject
color, colorRange1f, colorRange1i, colorRange2f, colorRange2i, colorRange3f, colorRange3i, colorRange4f, colorRange4i, parent, update, visible
 
Constructor Summary
ICurveGraphicGL(ICurve crv)
           
ICurveGraphicGL(ICurveR crv)
           
 
Method Summary
 void draw(IGraphics g)
           
 float getWeight()
           
 void initCurve()
           
 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 float weight

curve

public ICurveI curve

pts

public IVec[] pts
Constructor Detail

ICurveGraphicGL

public ICurveGraphicGL(ICurve crv)

ICurveGraphicGL

public ICurveGraphicGL(ICurveR crv)
Method Detail

initCurve

public void initCurve()

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