org.jmol.shapebio
Class BioShapeRenderer
abstract
class
BioShapeRenderer
extends MeshRenderer
Method Summary |
void | calc1Screen(Point3f center, Vector3f vector, short mad, float offset_1000, Point3i screen) |
protected void | calcScreenControlPoints() |
protected void | calcScreenControlPoints(Point3f[] points) |
protected Point3i[] | calcScreens(float offsetFraction)
calculate screen points based on control points and wing positions
(cartoon, strand, meshRibbon, and ribbon)
|
boolean | checkDiameter(int d) |
boolean | createMeshCylinder(int i, int madBeg, int madMid, int madEnd, int aspectRatio) |
void | freeTempArrays() |
protected short | getLeadColix(int i) |
boolean | initializePolymer(BioShape bioShape) |
protected boolean | isHelix(int i) |
protected void | render() |
protected abstract void | renderBioShape(BioShape bioShape) |
protected void | renderCone(int i, Point3f pointBegin, Point3f pointEnd, Point3f screenPtBegin, Point3f screenPtEnd) |
protected void | renderHermiteArrowHead(int i) |
protected void | renderHermiteConic(int i, boolean thisTypeOnly) |
protected void | renderHermiteCylinder(Point3i[] screens, int i) |
protected void | renderHermiteRibbon(boolean doFill, int i, boolean thisTypeOnly) |
boolean | setMads(int i, boolean thisTypeOnly) |
void | setNeighbors(int i) |
void | setStructureTypes() |
private static final int ABSOLUTE_MIN_MESH_SIZE
private final AxisAngle4f aa
private int aspectRatio
protected BitSet bsVisible
protected short[] colixes
private Point3f[] controlHermites
protected Point3f[] controlPoints
protected Point3i[] controlPointScreens
private int diameterBeg
private int diameterEnd
private int diameterMid
private boolean doCap0
private boolean doCap1
private boolean haveControlPointScreens
private int hermiteLevel
private boolean invalidateMesh
private boolean invalidateSheets
private int iNext
private int iNext2
private int iNext3
private int iPrev
protected boolean isCarbohydrate
private boolean isHighRes
protected boolean isNucleic
private boolean isTraceAlpha
protected int[] leadAtomIndices
protected short[] mads
private final Matrix3f mat
private boolean[] meshReady
protected int monomerCount
private static final int MIN_MESH_RENDER_SIZE
private Vector3f norm
private final Point3f pointT
private final Point3f pt
private final Point3f pt1
private final Point3f ptNext
private final Point3f ptPrev
private Point3f[] radiusHermites
private boolean ribbonBorder
protected Point3i[] ribbonBottomScreens
protected Point3i[] ribbonTopScreens
private final Point3i screenArrowBot
private final Point3i screenArrowBotPrev
private final Point3i screenArrowTop
private final Point3i screenArrowTopPrev
private float sheetSmoothing
protected byte[] structureTypes
private final Vector3f wing
private final Vector3f wing0
private final Vector3f wing1
private Vector3f[] wingHermites
private final Vector3f wingT
protected Vector3f[] wingVectors
private final Vector3f Z
private void calc1Screen(Point3f center, Vector3f vector, short mad, float offset_1000, Point3i screen)
protected void calcScreenControlPoints()
protected void calcScreenControlPoints(Point3f[] points)
protected Point3i[] calcScreens(float offsetFraction)
calculate screen points based on control points and wing positions
(cartoon, strand, meshRibbon, and ribbon)
Parameters: offsetFraction
Returns: Point3i array THAT MUST BE LATER FREED
private boolean checkDiameter(int d)
private boolean createMeshCylinder(int i, int madBeg, int madMid, int madEnd, int aspectRatio)
private void freeTempArrays()
protected short getLeadColix(int i)
private boolean initializePolymer(
BioShape bioShape)
protected boolean isHelix(int i)
protected void render()
protected abstract void renderBioShape(
BioShape bioShape)
protected void renderCone(int i, Point3f pointBegin, Point3f pointEnd, Point3f screenPtBegin, Point3f screenPtEnd)
protected void renderHermiteArrowHead(int i)
protected void renderHermiteConic(int i, boolean thisTypeOnly)
protected void renderHermiteCylinder(Point3i[] screens, int i)
protected void renderHermiteRibbon(boolean doFill, int i, boolean thisTypeOnly)
private boolean setMads(int i, boolean thisTypeOnly)
private void setNeighbors(int i)
private void setStructureTypes()