edu.sdsc.mbt.viewers.GLViewerImpl
Class BondGeometry

java.lang.Object
  extended byedu.sdsc.mbt.viewers.GLViewerImpl.Geometry
      extended byedu.sdsc.mbt.viewers.GLViewerImpl.BondGeometry

public class BondGeometry
extends Geometry

Construct a new object for generating bond geometry using default

Author:
John L. Moreland
See Also:

Field Summary
 
Fields inherited from class edu.sdsc.mbt.viewers.GLViewerImpl.Geometry
FORM_FLAT, FORM_LINES, FORM_POINTS, FORM_THICK
 
Constructor Summary
BondGeometry()
          Construct a new BondGeometry object.
 
Method Summary
 void draw(Bond bond, StructureStyles structureStyles, javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut)
          Please complete the missing tags for main
 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
 void drawCylinder(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut, double height, boolean drawBottom, double bottomRadius, boolean drawTop, float topRadius, int slices, int segments)
          Please complete the missing tags for main
 boolean getShowOrder()
          Get the state of showing/hiding a representation of bond order.
 void setShowOrder(boolean state)
          Set the state of showing/hiding a representation of bond order.
 
Methods inherited from class edu.sdsc.mbt.viewers.GLViewerImpl.Geometry
equals, getForm, getQuality, getStatus, setForm, setQuality
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BondGeometry

public BondGeometry()
Construct a new BondGeometry object.

Method Detail

setShowOrder

public final void setShowOrder(boolean state)
Set the state of showing/hiding a representation of bond order.

Order Segments Order/2.0 Copies
0.0 ----- 0.0 1
0.5 - - - 1.0 1
1.0 ----- 2.0 1
1.5 -----
- - -
3.0 2
2.0 -----
-----
4.0 2
2.5 -----
-----
- - -
5.0 3
3.0 -----
-----
-----
6.0 3
Etc...

Returns:
Throws:

getShowOrder

public final boolean getShowOrder()
Get the state of showing/hiding a representation of bond order.

Returns:
Throws:

draw

public final 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

Specified by:
draw in class Geometry
Returns:
Throws:

draw

public final void draw(Bond bond,
                       StructureStyles structureStyles,
                       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:

drawCylinder

public void drawCylinder(javax.media.opengl.GL gl,
                         javax.media.opengl.glu.GLU glu,
                         com.sun.opengl.util.GLUT glut,
                         double height,
                         boolean drawBottom,
                         double bottomRadius,
                         boolean drawTop,
                         float topRadius,
                         int slices,
                         int segments)
Please complete the missing tags for main

Returns:
Throws: