org.jmol.shapebio
Class RocketsRenderer

java.lang.Object
  extended by org.jmol.shape.ShapeRenderer
      extended by org.jmol.shape.MeshRenderer
          extended by org.jmol.shapebio.BioShapeRenderer
              extended by org.jmol.shapebio.RocketsRenderer
Direct Known Subclasses:
CartoonRenderer

public class RocketsRenderer
extends BioShapeRenderer


Field Summary
private static byte[] arrowHeadFaces
           
private static byte[] boxFaces
           
protected  javax.vecmath.Point3f[] cordMidPoints
           
private  javax.vecmath.Point3f[] corners
           
private  int endIndexPending
           
private  javax.vecmath.Vector3f lengthVector
           
private static float MIN_CONE_HEIGHT
           
private  javax.vecmath.Point3f pointCorner
           
private  javax.vecmath.Point3f pointTipOffset
           
private  ProteinStructure proteinstructurePending
           
protected  boolean renderAsBarrels
           
private  javax.vecmath.Vector3f scaledHeightVector
           
private  javax.vecmath.Vector3f scaledWidthVector
           
private  javax.vecmath.Point3f screenA
           
private  javax.vecmath.Point3f screenB
           
private  javax.vecmath.Point3f screenC
           
private  javax.vecmath.Point3f[] screenCorners
           
private  int startIndexPending
           
protected  boolean tPending
           
 
Fields inherited from class org.jmol.shapebio.BioShapeRenderer
bsVisible, colixes, controlPoints, controlPointScreens, isCarbohydrate, isNucleic, leadAtomIndices, mads, monomerCount, monomers, ribbonBottomScreens, ribbonTopScreens, structureTypes, wingVectors
 
Fields inherited from class org.jmol.shape.MeshRenderer
antialias, bsFaces, diameter, frontOnly, imageFontScaling, isTranslucent, mesh, normixes, pt1f, pt1i, pt2f, pt2i, pt3i, scalePixelsPerMicron, screens, transformedVectors, vertexCount, vertices, width
 
Fields inherited from class org.jmol.shape.ShapeRenderer
colix, g3d, isGenerator, mad, madBeg, madEnd, madMid, modelSet, myVisibilityFlag, shape, shapeID, slabbing, viewer
 
Constructor Summary
RocketsRenderer()
           
 
Method Summary
(package private)  void buildArrowHeadBox(javax.vecmath.Point3f pointCorner, javax.vecmath.Vector3f scaledWidthVector, javax.vecmath.Vector3f scaledHeightVector, javax.vecmath.Point3f pointTip)
           
(package private)  void buildBox(javax.vecmath.Point3f pointCorner, javax.vecmath.Vector3f scaledWidthVector, javax.vecmath.Vector3f scaledHeightVector, javax.vecmath.Vector3f lengthVector)
           
protected  void calcRopeMidPoints(boolean isNewStyle)
           
(package private)  void drawArrowHeadBox(javax.vecmath.Point3f base, javax.vecmath.Point3f tip)
           
(package private)  void drawBox(javax.vecmath.Point3f pointA, javax.vecmath.Point3f pointB)
           
protected  boolean isSheet(int i)
           
protected  void render1()
           
protected  void renderBioShape(BioShape bioShape)
           
protected  void renderPending()
           
private  void renderPendingRocketSegment(int i, javax.vecmath.Point3f pointStart, javax.vecmath.Point3f pointBeforeEnd, javax.vecmath.Point3f pointEnd, boolean tEnd)
           
private  void renderPendingSheet(javax.vecmath.Point3f pointStart, javax.vecmath.Point3f pointBeforeEnd, javax.vecmath.Point3f pointEnd, boolean tEnd)
           
protected  void renderSpecialSegment(Monomer monomer, short thisColix, short thisMad)
           
 
Methods inherited from class org.jmol.shapebio.BioShapeRenderer
calcScreenControlPoints, calcScreenControlPoints, calcScreens, getLeadColix, isHelix, render, renderCone, renderHermiteArrowHead, renderHermiteConic, renderHermiteCylinder, renderHermiteRibbon
 
Methods inherited from class org.jmol.shape.MeshRenderer
drawLine, isPolygonDisplayable, render1, render2, renderExport, renderPoints, renderTriangles, transform
 
Methods inherited from class org.jmol.shape.ShapeRenderer
getMad, initRenderer, render, renderLine, setGenerator, setViewerG3dShapeID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_CONE_HEIGHT

private static final float MIN_CONE_HEIGHT
See Also:
Constant Field Values

renderAsBarrels

protected boolean renderAsBarrels

cordMidPoints

protected javax.vecmath.Point3f[] cordMidPoints

tPending

protected boolean tPending

proteinstructurePending

private ProteinStructure proteinstructurePending

startIndexPending

private int startIndexPending

endIndexPending

private int endIndexPending

screenA

private javax.vecmath.Point3f screenA

screenB

private javax.vecmath.Point3f screenB

screenC

private javax.vecmath.Point3f screenC

boxFaces

private static final byte[] boxFaces

corners

private final javax.vecmath.Point3f[] corners

screenCorners

private final javax.vecmath.Point3f[] screenCorners

pointTipOffset

private final javax.vecmath.Point3f pointTipOffset

scaledWidthVector

private final javax.vecmath.Vector3f scaledWidthVector

scaledHeightVector

private final javax.vecmath.Vector3f scaledHeightVector

arrowHeadFaces

private static final byte[] arrowHeadFaces

lengthVector

private final javax.vecmath.Vector3f lengthVector

pointCorner

private final javax.vecmath.Point3f pointCorner
Constructor Detail

RocketsRenderer

public RocketsRenderer()
Method Detail

renderBioShape

protected void renderBioShape(BioShape bioShape)
Specified by:
renderBioShape in class BioShapeRenderer

isSheet

protected boolean isSheet(int i)

calcRopeMidPoints

protected void calcRopeMidPoints(boolean isNewStyle)

render1

protected void render1()

renderSpecialSegment

protected void renderSpecialSegment(Monomer monomer,
                                    short thisColix,
                                    short thisMad)

renderPending

protected void renderPending()

renderPendingRocketSegment

private void renderPendingRocketSegment(int i,
                                        javax.vecmath.Point3f pointStart,
                                        javax.vecmath.Point3f pointBeforeEnd,
                                        javax.vecmath.Point3f pointEnd,
                                        boolean tEnd)

renderPendingSheet

private void renderPendingSheet(javax.vecmath.Point3f pointStart,
                                javax.vecmath.Point3f pointBeforeEnd,
                                javax.vecmath.Point3f pointEnd,
                                boolean tEnd)

buildBox

void buildBox(javax.vecmath.Point3f pointCorner,
              javax.vecmath.Vector3f scaledWidthVector,
              javax.vecmath.Vector3f scaledHeightVector,
              javax.vecmath.Vector3f lengthVector)

buildArrowHeadBox

void buildArrowHeadBox(javax.vecmath.Point3f pointCorner,
                       javax.vecmath.Vector3f scaledWidthVector,
                       javax.vecmath.Vector3f scaledHeightVector,
                       javax.vecmath.Point3f pointTip)

drawBox

void drawBox(javax.vecmath.Point3f pointA,
             javax.vecmath.Point3f pointB)

drawArrowHeadBox

void drawArrowHeadBox(javax.vecmath.Point3f base,
                      javax.vecmath.Point3f tip)