edu.sdsc.mbt.viewers.GLViewerImpl
Class Geometry

java.lang.Object
  extended byedu.sdsc.mbt.viewers.GLViewerImpl.Geometry
Direct Known Subclasses:
AtomGeometry, AtomLineGeometry, BondGeometry, ChainGeometry

public abstract class Geometry
extends java.lang.Object

This class provides the base functionality for geometry factory objects.

Author:
John L. Moreland
See Also:

Field Summary
static int FORM_FLAT
          Specifies a rendering style of simple flat polygons.
static int FORM_LINES
          Specifies a rendering style of wireframe lines.
static int FORM_POINTS
          Specifies a rendering style of points.
static int FORM_THICK
          Specifies a rendering style of thick shaded polygons.
 
Constructor Summary
Geometry()
           
 
Method Summary
abstract  void draw(StructureComponent structureComponent, StructureStyles styles, javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut)
          Please complete the missing tags for main
 boolean equals(Geometry geometry)
          Please complete the missing tags for main
 int getForm()
          Please complete the missing tags for main
 float getQuality()
          Gets the rendering quality level (0.0 meaning lowest quality but faster rendering, and 1.0 meaning highest quality but slower rendering).
 boolean getStatus()
           
 void setForm(int form)
          Sets the basic geometric representation used to render the primitive.
 void setQuality(float quality)
          Sets the rendering quality level (0.0 meaning lowest quality but faster rendering, and 1.0 meaning highest quality but slower rendering).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORM_POINTS

public static final int FORM_POINTS
Specifies a rendering style of points.

See Also:
Constant Field Values

FORM_LINES

public static final int FORM_LINES
Specifies a rendering style of wireframe lines.

See Also:
Constant Field Values

FORM_FLAT

public static final int FORM_FLAT
Specifies a rendering style of simple flat polygons.

See Also:
Constant Field Values

FORM_THICK

public static final int FORM_THICK
Specifies a rendering style of thick shaded polygons.

See Also:
Constant Field Values
Constructor Detail

Geometry

public Geometry()
Method Detail

equals

public boolean equals(Geometry geometry)
Please complete the missing tags for main

Returns:
Throws:

draw

public abstract void draw(StructureComponent structureComponent,
                          StructureStyles styles,
                          javax.media.opengl.GL gl,
                          javax.media.opengl.glu.GLU glu,
                          com.sun.opengl.util.GLUT glut)
Please complete the missing tags for main

Returns:
Throws:

setQuality

public final void setQuality(float quality)
Sets the rendering quality level (0.0 meaning lowest quality but faster rendering, and 1.0 meaning highest quality but slower rendering). Values specified outside this range will be clamped between 0.0 and 1.0.

Parameters:
quality - The rendering quality level.

getQuality

public final float getQuality()
Gets the rendering quality level (0.0 meaning lowest quality but faster rendering, and 1.0 meaning highest quality but slower rendering).

Returns:
Throws:

setForm

public final void setForm(int form)
Sets the basic geometric representation used to render the primitive.

Returns:
Throws:

getForm

public final int getForm()
Please complete the missing tags for main

Returns:
Throws:

getStatus

public boolean getStatus()