edu.sdsc.mbt.viewers.GLViewerImpl
Class StrandGeometry

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

public class StrandGeometry
extends SsGeometry

StrandGeometry is an SsGeometry container which, primarily, manages the geometry associated with a strand. It is a ribon-like shape that passes through "smoothed" CA atoms, and contains interpolated points. As with all GeometryEntity objects, it can have other GeometryEntity children.

Author:
Apostol Gramada

Field Summary
static float[] shininessTemp
           
 
Fields inherited from class edu.sdsc.mbt.viewers.GLViewerImpl.SsGeometry
colorCache, colorReference
 
Constructor Summary
StrandGeometry()
          Constructs a StrandGeometry 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[] arrowScale, Vector3f[] coordinates, FrenetTrihedron[] triheds, java.awt.Color[] colorMap, boolean[] visMap, boolean[] resMap, int pointCount)
          Returns the scene graph component associated with the Strand defined by the underlying data
 void drawJoglGeometry(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, com.sun.opengl.util.GLUT glut)
          Returns a Java3D object representing a strand and eventually any other GeometryEntity that this object contains as a child.
 void setDrawArrow(boolean drawArrow)
          Sets the tangents along the spine.
 void setNormals(Vector3f[] normals)
          Sets the normals along the spine.
 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

shininessTemp

public static final float[] shininessTemp
Constructor Detail

StrandGeometry

public StrandGeometry()
Constructs a StrandGeometry 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)
Returns a Java3D object representing a strand and eventually any other GeometryEntity that this object contains as a child.

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[] arrowScale,
                       Vector3f[] coordinates,
                       FrenetTrihedron[] triheds,
                       java.awt.Color[] colorMap,
                       boolean[] visMap,
                       boolean[] resMap,
                       int pointCount)
Returns the scene graph component associated with the Strand defined by the underlying data


setNormals

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


setTangents

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


setDrawArrow

public void setDrawArrow(boolean drawArrow)
Sets the tangents along the spine.