org.simtk.moleculargraphics.cartoon
Class ProteinRibbonSegment

java.lang.Object
  extended by org.simtk.moleculargraphics.cartoon.ActorCartoonClass
      extended by org.simtk.moleculargraphics.cartoon.ProteinRibbonSegment
All Implemented Interfaces:
ActorCartoon, BaseCartoon, ResidueHighlightListener
Direct Known Subclasses:
BetaStrandRibbon, ProteinCoil, ProteinHelix

public class ProteinRibbonSegment
extends ActorCartoonClass

Author:
Christopher Bruns Base Class for protein Alpha Helix, Beta Strand, and Coil

Field Summary
protected  double lengthResolution
           
 
Fields inherited from class org.simtk.moleculargraphics.cartoon.ActorCartoonClass
actor, highlightActor, highlightMapper, highlightToonColors, invisibleColorScheme, isPopulated, mapper
 
Constructor Summary
ProteinRibbonSegment()
           
 
Method Summary
protected static Vector3D chainDirection(Residue residue)
           
protected  void createExtrudedRibbon(vtk.vtkPolyData polyLine, double thickness, double ribbonFilterWidth, double ribbonFilterWidthFactor)
           
protected  vtk.vtkPolyData createPolyLine(java.util.List<Vector3D> positions, java.util.List<Vector3D> normals, java.util.List<Chemical> objects)
           
protected  void finishVtkPipeline(vtk.vtkPolyData polyData)
           
protected static Vector3D hBondNormal(Residue residue, int endFlag)
           
 
Methods inherited from class org.simtk.moleculargraphics.cartoon.ActorCartoonClass
colorToon, colorToon, getActor, getChemicalFromScalar, getColorIndex, getHighlightActor, getMapper, highlightResidue, highlightResidueByAtomScalars, highlightResidueByResidueScalars, isPopulated, unhighlightResidue, unhighlightResidueByAtomScalars, unhighlightResidueByResidueScalars, unhighlightResidues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lengthResolution

protected double lengthResolution
Constructor Detail

ProteinRibbonSegment

public ProteinRibbonSegment()
Method Detail

hBondNormal

protected static Vector3D hBondNormal(Residue residue,
                                      int endFlag)
Parameters:
residue -
endFlag - -1 for first residue, +1 for final residue, zero for others
Returns:
a unit vector perpendicular to the chain direction and the direction of main-chain hydrogen bonding.

chainDirection

protected static Vector3D chainDirection(Residue residue)

createPolyLine

protected vtk.vtkPolyData createPolyLine(java.util.List<Vector3D> positions,
                                         java.util.List<Vector3D> normals,
                                         java.util.List<Chemical> objects)

createExtrudedRibbon

protected void createExtrudedRibbon(vtk.vtkPolyData polyLine,
                                    double thickness,
                                    double ribbonFilterWidth,
                                    double ribbonFilterWidthFactor)

finishVtkPipeline

protected void finishVtkPipeline(vtk.vtkPolyData polyData)