edu.sdsc.mbt.viewers.GLViewerImpl
Class CoilGeometry

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

public class CoilGeometry
extends SsGeometry

CoilGeometry is a SsGeometry container that, primarily, manages the geometry of a random coil. The ribon passes through "smoothed" CA coordinates, unless it is a turn in which smoothing may be off. the position of CA atoms. Interpolation and smoothing is also applied. This is also used to render turns in which case no smoothing is applied. As with all GeometryEntity objects, it can have other Geometry children.

Author:
Apostol Gramada

Field Summary
static float[] shininessTemp
           
 
Fields inherited from class edu.sdsc.mbt.viewers.GLViewerImpl.SsGeometry
colorCache, colorReference
 
Constructor Summary
CoilGeometry()
          Constructs a CoilGeometry objects with default values for the number of facets, segments, and cross section style.
 
Method Summary
 void drawFigure(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut, CrossSectionStyle style, Vector3f[] coordinates, FrenetTrihedron[] triheds, java.awt.Color[] colorMap, boolean[] visMap, boolean[] residueMap, int pointCount)
           
 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.
 void setDiameter(float diam)
          Sets the coil diameter.
 void setFacetCount(int facets)
          Sets facets count.
 void setNormals(Vector3f[] normals)
          Sets the normals 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

shininessTemp

public static final float[] shininessTemp
Constructor Detail

CoilGeometry

public CoilGeometry()
Constructs a CoilGeometry 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

drawFigure

public void drawFigure(javax.media.opengl.GL gl,
                       javax.media.opengl.glu.GLU glu,
                       com.sun.opengl.util.GLUT glut,
                       CrossSectionStyle style,
                       Vector3f[] coordinates,
                       FrenetTrihedron[] triheds,
                       java.awt.Color[] colorMap,
                       boolean[] visMap,
                       boolean[] residueMap,
                       int pointCount)

setNormals

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


setDiameter

public void setDiameter(float diam)
Sets the coil diameter.


setFacetCount

public void setFacetCount(int facets)
Sets facets count.