org.jmol.shapespecial
Class EllipsoidsRenderer

java.lang.Object
  extended by org.jmol.shape.ShapeRenderer
      extended by org.jmol.shapespecial.EllipsoidsRenderer
Direct Known Subclasses:
EllipsoidsGenerator

public class EllipsoidsRenderer
extends ShapeRenderer


Field Summary
private  javax.vecmath.Vector3f[] axes
           
private static int[] axisPoints
           
private  double[] coef
           
private  int[] coords
           
private static float[] cossin
           
private  int diameter
           
private  int diameter0
           
private  int dotCount
           
private  boolean drawArcs
           
private  boolean drawAxes
           
private  boolean drawBall
           
private  boolean drawDots
           
private  boolean drawFill
           
private  int dx
           
private  Ellipsoids ellipsoids
           
private  float[] factoredLengths
           
private  int iCutout
           
private  javax.vecmath.Matrix3f mat
           
private  javax.vecmath.Matrix3f matEllipsoidToScreen
           
private  javax.vecmath.Matrix3f matScreenToCartesian
           
private  javax.vecmath.Matrix3f matScreenToEllipsoid
           
private  javax.vecmath.Matrix4f mDeriv
           
private  javax.vecmath.Matrix3f mTemp
           
private static int[] octants
           
private  float perspectiveFactor
           
private  javax.vecmath.Point3f[] points
           
private  javax.vecmath.Point3f pt1
           
private  javax.vecmath.Point3f pt2
           
private  javax.vecmath.Point3i s0
           
private  javax.vecmath.Point3i s1
           
private  javax.vecmath.Point3i s2
           
private  javax.vecmath.Point3i[] screens
           
private  int selectedOctant
           
private  javax.vecmath.Point3i[] selectedPoints
           
private static float toRadians
           
private static javax.vecmath.Point3f[] unitAxisPoints
           
private static javax.vecmath.Vector3f[] unitVectors
           
private  javax.vecmath.Vector3f v1
           
private  javax.vecmath.Vector3f v2
           
private  javax.vecmath.Vector3f v3
           
private  boolean wireframeOnly
           
 
Fields inherited from class org.jmol.shape.ShapeRenderer
colix, g3d, isGenerator, mad, madBeg, madEnd, madMid, modelSet, myVisibilityFlag, shape, shapeID, slabbing, viewer
 
Constructor Summary
EllipsoidsRenderer()
           
 
Method Summary
protected  void render()
           
private  void render1(Atom atom, java.lang.Object[] ellipsoid)
           
private  void renderArc(javax.vecmath.Point3f ptAtom, int ptA, int ptB)
           
private  void renderArcs(javax.vecmath.Point3f ptAtom)
           
private  void renderAxes()
           
private  void renderBall()
           
private  void renderDots(javax.vecmath.Point3f ptAtom)
           
private  void renderEllipsoid(Ellipsoids.Ellipsoid ellipsoid)
           
private  void setAxes(javax.vecmath.Point3f center, float f)
           
private  void setMatrices()
           
private  void setSelectedOctant()
           
 
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

ellipsoids

private Ellipsoids ellipsoids

drawDots

private boolean drawDots

drawArcs

private boolean drawArcs

drawAxes

private boolean drawAxes

drawFill

private boolean drawFill

drawBall

private boolean drawBall

wireframeOnly

private boolean wireframeOnly

dotCount

private int dotCount

coords

private int[] coords

axes

private javax.vecmath.Vector3f[] axes

factoredLengths

private final float[] factoredLengths

diameter

private int diameter

diameter0

private int diameter0

selectedOctant

private int selectedOctant

selectedPoints

private javax.vecmath.Point3i[] selectedPoints

iCutout

private int iCutout

mat

private javax.vecmath.Matrix3f mat

mTemp

private javax.vecmath.Matrix3f mTemp

mDeriv

private javax.vecmath.Matrix4f mDeriv

matScreenToCartesian

private javax.vecmath.Matrix3f matScreenToCartesian

matScreenToEllipsoid

private javax.vecmath.Matrix3f matScreenToEllipsoid

matEllipsoidToScreen

private javax.vecmath.Matrix3f matEllipsoidToScreen

coef

private double[] coef

v1

private final javax.vecmath.Vector3f v1

v2

private final javax.vecmath.Vector3f v2

v3

private final javax.vecmath.Vector3f v3

pt1

private final javax.vecmath.Point3f pt1

pt2

private final javax.vecmath.Point3f pt2

s0

private final javax.vecmath.Point3i s0

s1

private final javax.vecmath.Point3i s1

s2

private final javax.vecmath.Point3i s2

toRadians

private static final float toRadians
See Also:
Constant Field Values

cossin

private static final float[] cossin

screens

private final javax.vecmath.Point3i[] screens

points

private final javax.vecmath.Point3f[] points

axisPoints

private static int[] axisPoints

octants

private static int[] octants

dx

private int dx

perspectiveFactor

private float perspectiveFactor

unitVectors

private static final javax.vecmath.Vector3f[] unitVectors

unitAxisPoints

private static final javax.vecmath.Point3f[] unitAxisPoints
Constructor Detail

EllipsoidsRenderer

public EllipsoidsRenderer()
Method Detail

render

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

render1

private void render1(Atom atom,
                     java.lang.Object[] ellipsoid)

setMatrices

private void setMatrices()

setAxes

private void setAxes(javax.vecmath.Point3f center,
                     float f)

renderAxes

private void renderAxes()

renderDots

private void renderDots(javax.vecmath.Point3f ptAtom)

renderArcs

private void renderArcs(javax.vecmath.Point3f ptAtom)

renderArc

private void renderArc(javax.vecmath.Point3f ptAtom,
                       int ptA,
                       int ptB)

renderEllipsoid

private void renderEllipsoid(Ellipsoids.Ellipsoid ellipsoid)

renderBall

private void renderBall()

setSelectedOctant

private void setSelectedOctant()