edu.sdsc.mbt.viewers.GLViewerImpl
Class MbtRenderable

java.lang.Object
  extended byedu.sdsc.mbt.viewers.GLViewerImpl.MbtRenderable
All Implemented Interfaces:
GlRenderable

public class MbtRenderable
extends java.lang.Object
implements GlRenderable

Provides a renderable object which contains all properties needed to regenerate geometry for a visible representation of the data. As the viewer processes incomming state change events from the tookit, the viewer passes the events to instances of this class so that the updated content can be rendered on the next call to the draw method.


Field Summary
 boolean status
           
 StructureComponent structureComponent
           
 StructureStyles structureStyles
           
 
Constructor Summary
MbtRenderable(StructureComponent structureComponent, StructureStyles styles, Geometry geometry)
          Construct a Renderable object.
 
Method Summary
 void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut)
          Tell the geometry to redraw its representation for this renderable.
 void freeGlResources(javax.media.opengl.GL gl)
           
 Geometry getGeometry()
           
 StructureComponent getStructureComponent()
          Return the StructureComponent for this MbtRenderable.
 void setDirty()
          An event sent to us when one or more style properties have changed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

structureComponent

public StructureComponent structureComponent

structureStyles

public StructureStyles structureStyles

status

public boolean status
Constructor Detail

MbtRenderable

public MbtRenderable(StructureComponent structureComponent,
                     StructureStyles styles,
                     Geometry geometry)
Construct a Renderable object.

Method Detail

getStructureComponent

public final StructureComponent getStructureComponent()
Return the StructureComponent for this MbtRenderable.


draw

public final void draw(javax.media.opengl.GL gl,
                       javax.media.opengl.glu.GLU glu,
                       com.sun.opengl.util.GLUT glut)
Tell the geometry to redraw its representation for this renderable.

Specified by:
draw in interface GlRenderable

getGeometry

public Geometry getGeometry()

setDirty

public final void setDirty()
An event sent to us when one or more style properties have changed.

Specified by:
setDirty in interface GlRenderable

freeGlResources

public final void freeGlResources(javax.media.opengl.GL gl)
Specified by:
freeGlResources in interface GlRenderable