org.jmol.shape
Class SticksRenderer

java.lang.Object
  extended by org.jmol.shape.ShapeRenderer
      extended by org.jmol.shape.SticksRenderer

public class SticksRenderer
extends ShapeRenderer


Field Summary
private  Atom atomA
           
private  Atom atomB
           
private  Bond bond
           
private  int bondOrder
           
private  boolean bondsBackbone
           
private  short colixA
           
private  short colixB
           
private  int dx
           
private  int dxStep
           
private  int dy
           
private  int dyStep
           
private  byte endcaps
           
private  boolean hbondsBackbone
           
private  boolean hbondsSolid
           
private  boolean isAntialiased
           
private  boolean lineBond
           
private  int mag2d
           
private  byte modeMultipleBond
           
private  float multipleBondRadiusFactor
           
private  float multipleBondSpacing
           
private  Point3f p1
           
private  Point3f p2
           
private  boolean renderWireframe
           
private  Point3i s1
           
private  Point3i s2
           
private  boolean showMultipleBonds
           
private  boolean slabbing
           
private  boolean slabByAtom
           
private  boolean ssbondsBackbone
           
private  int width
           
private  Vector3f x
           
private  int xA
           
private  int xAxis1
           
private  int xAxis2
           
private  int xB
           
private  Vector3f y
           
private  int yA
           
private  int yAxis1
           
private  int yAxis2
           
private  int yB
           
private  Vector3f z
           
private  int zA
           
private  int zB
           
 
Fields inherited from class org.jmol.shape.ShapeRenderer
colix, exportType, g3d, mad, madBeg, madEnd, madMid, modelSet, myVisibilityFlag, shape, shapeID, viewer
 
Constructor Summary
SticksRenderer()
           
 
Method Summary
private  void drawBond(int dottedMask)
           
private  void drawDashed(int xA, int yA, int zA, int xB, int yB, int zB)
           
private  void fillCylinder(short colixA, short colixB, byte endcaps, int diameter, int xA, int yA, int zA, int xB, int yB, int zB)
           
private  int getAromaticDottedBondMask()
           
protected  void render()
           
private  void renderBond()
           
private  void renderHbondDashed()
           
private  void resetAxisCoordinates()
           
private  void stepAxisCoordinates()
           
 
Methods inherited from class org.jmol.shape.ShapeRenderer
initRenderer, render, setViewerG3dShapeID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

showMultipleBonds

private boolean showMultipleBonds

multipleBondSpacing

private float multipleBondSpacing

multipleBondRadiusFactor

private float multipleBondRadiusFactor

modeMultipleBond

private byte modeMultipleBond

endcaps

private byte endcaps

ssbondsBackbone

private boolean ssbondsBackbone

hbondsBackbone

private boolean hbondsBackbone

bondsBackbone

private boolean bondsBackbone

hbondsSolid

private boolean hbondsSolid

atomA

private Atom atomA

atomB

private Atom atomB

bond

private Bond bond

xA

private int xA

yA

private int yA

zA

private int zA

xB

private int xB

yB

private int yB

zB

private int zB

dx

private int dx

dy

private int dy

mag2d

private int mag2d

colixA

private short colixA

colixB

private short colixB

width

private int width

lineBond

private boolean lineBond

bondOrder

private int bondOrder

renderWireframe

private boolean renderWireframe

isAntialiased

private boolean isAntialiased

slabbing

private boolean slabbing

slabByAtom

private boolean slabByAtom

x

private Vector3f x

y

private Vector3f y

z

private Vector3f z

p1

private Point3f p1

p2

private Point3f p2

s1

private Point3i s1

s2

private Point3i s2

xAxis1

private int xAxis1

yAxis1

private int yAxis1

xAxis2

private int xAxis2

yAxis2

private int yAxis2

dxStep

private int dxStep

dyStep

private int dyStep
Constructor Detail

SticksRenderer

public SticksRenderer()
Method Detail

render

protected void render()
Specified by:
render in class ShapeRenderer

renderBond

private void renderBond()

drawBond

private void drawBond(int dottedMask)

resetAxisCoordinates

private void resetAxisCoordinates()

stepAxisCoordinates

private void stepAxisCoordinates()

getAromaticDottedBondMask

private int getAromaticDottedBondMask()

drawDashed

private void drawDashed(int xA,
                        int yA,
                        int zA,
                        int xB,
                        int yB,
                        int zB)

renderHbondDashed

private void renderHbondDashed()

fillCylinder

private void fillCylinder(short colixA,
                          short colixB,
                          byte endcaps,
                          int diameter,
                          int xA,
                          int yA,
                          int zA,
                          int xB,
                          int yB,
                          int zB)