edu.sdsc.mbt.viewers.GLViewerImpl
Class HelixGeometry

java.lang.Object
  extended byedu.sdsc.mbt.viewers.GLViewerImpl.GeometryEntity
      extended byedu.sdsc.mbt.viewers.GLViewerImpl.SsGeometry
          extended byedu.sdsc.mbt.viewers.GLViewerImpl.HelixGeometry

public class HelixGeometry
extends SsGeometry

HelixGeometry is an SsGeometry container which, primarily, manages the geometry associated with an alpha-helix. No smoothing is done, the ribon is interpolated between original CA coordinates. As with all GeometryEntity objects, it can have other Geometry children.

The algorithm for the generation of the normals and binormals along the helix are borrowed from Molscript

Author:
Apostol Gramada

Field Summary
static int CYLINDER
           
static int RIBBON
           
static float[] shininessTemp
           
 
Fields inherited from class edu.sdsc.mbt.viewers.GLViewerImpl.SsGeometry
colorCache, colorReference
 
Constructor Summary
HelixGeometry()
          Constructs a HelixGeometry objects with default values for the number of facets, segments, and cross section style.
 
Method Summary
 void drawJoglGeometry(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut)
          Return the BranchGroup object representing the geometrical shape contained by this GeometryEntity object.
 int getSsShape(int ssshape)
          Returns the general appearance of the helix shape, i.e.
 void setNormals(Vector3f[] normals)
          Sets the normals along the spine.
 void setSsShape(int ssshape)
          Sets the general appearance of the helix shape, i.e.
 void setTangents(Vector3f[] tangents)
          Sets the tangents along the spine.
 
Methods inherited from class edu.sdsc.mbt.viewers.GLViewerImpl.SsGeometry
drawSs, drawSs, drawSs, drawSs, getClosestResidueIndex, getColorMap, getHighlightState, getNextSs, getNextToFirstCa, getNextToFirstCaCoord, getPreviousSs, getPreviousToLastCa, getPreviousToLastCaCoord, getPriestleSteps, getUserData, getVisibilityMap, highlight, highlightClosestResidue, highlightResidue, highlightResidueRegion, isLeftExtended, isRightExtended, resetColor, resetGeometryColor, resetRibbonColor, setColorMap, setCoordinates, setCoordinates, setCrossSectionStyle, setCrossSectionType, setLeftExtended, setNextCaCoord, setNextCaCoord, setNextSs, setPreviousCaCoord, setPreviousCaCoord, setPreviousSs, setPriestleSteps, setRightExtended, setRoundedShape, setSegmentCount, setUserData, setVisibilityMap
 
Methods inherited from class edu.sdsc.mbt.viewers.GLViewerImpl.GeometryEntity
getQuality, setQuality
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RIBBON

public static int RIBBON

CYLINDER

public static int CYLINDER

shininessTemp

public static final float[] shininessTemp
Constructor Detail

HelixGeometry

public HelixGeometry()
Constructs a HelixGeometry objects with default values for the number of facets, segments, and cross section style.

Method Detail

drawJoglGeometry

public void drawJoglGeometry(javax.media.opengl.GL gl,
                             javax.media.opengl.glu.GLU glu,
                             com.sun.opengl.util.GLUT glut)
Description copied from class: GeometryEntity
Return the BranchGroup object representing the geometrical shape contained by this GeometryEntity object. To be actually overridden in each subclass.

Overrides:
drawJoglGeometry in class GeometryEntity

setNormals

public void setNormals(Vector3f[] normals)
Sets the normals along the spine.


setSsShape

public void setSsShape(int ssshape)
Sets the general appearance of the helix shape, i.e. cylinder of ribbon.


getSsShape

public int getSsShape(int ssshape)
Returns the general appearance of the helix shape, i.e. cylinder of ribbon.


setTangents

public void setTangents(Vector3f[] tangents)
Sets the tangents along the spine.