org.jmol.shape
Class MeshRenderer

java.lang.Object
  extended by org.jmol.shape.ShapeRenderer
      extended by org.jmol.shape.MeshRenderer
Direct Known Subclasses:
BioShapeRenderer, DrawRenderer, IsosurfaceRenderer

public abstract class MeshRenderer
extends ShapeRenderer


Field Summary
protected  boolean antialias
           
protected  BitSet bsPolygons
           
protected  int diameter
           
protected  boolean frontOnly
           
protected  float imageFontScaling
           
protected  boolean isTranslucent
           
protected  Point3f latticeOffset
           
protected  Mesh mesh
           
protected  short[] normixes
           
protected  Point3f pt1f
           
protected  Point3i pt1i
           
protected  Point3f pt2f
           
protected  Point3i pt2i
           
protected  Point3i pt3i
           
protected  float scalePixelsPerMicron
           
protected  Point3i[] screens
           
protected  Point4f thePlane
           
protected  Vector3f[] transformedVectors
           
protected  int vertexCount
           
protected  Point3f[] vertices
           
protected  float width
           
 
Fields inherited from class org.jmol.shape.ShapeRenderer
colix, exportType, g3d, mad, madBeg, madEnd, madMid, modelSet, myVisibilityFlag, shape, shapeID, viewer
 
Constructor Summary
MeshRenderer()
           
 
Method Summary
protected  int checkNormals(short nA, short nB, short nC)
           
protected  void drawLine(int iA, int iB, boolean fill, Point3f vA, Point3f vB, Point3i sA, Point3i sB)
           
protected  void exportSurface()
           
protected  boolean isPolygonDisplayable(int i)
           
protected  void render()
           
 boolean render1(Mesh mesh)
           
protected  void render2(boolean generateSet)
           
protected  void renderPoints()
           
protected  void renderTriangles(boolean fill, boolean iShowTriangles, boolean generateSet)
           
private  boolean setVariables()
           
 
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

imageFontScaling

protected float imageFontScaling

scalePixelsPerMicron

protected float scalePixelsPerMicron

vertices

protected Point3f[] vertices

normixes

protected short[] normixes

screens

protected Point3i[] screens

transformedVectors

protected Vector3f[] transformedVectors

vertexCount

protected int vertexCount

frontOnly

protected boolean frontOnly

antialias

protected boolean antialias

mesh

protected Mesh mesh

diameter

protected int diameter

width

protected float width

isTranslucent

protected boolean isTranslucent

thePlane

protected Point4f thePlane

latticeOffset

protected Point3f latticeOffset

pt1f

protected final Point3f pt1f

pt2f

protected final Point3f pt2f

pt1i

protected final Point3i pt1i

pt2i

protected final Point3i pt2i

pt3i

protected final Point3i pt3i

bsPolygons

protected BitSet bsPolygons
Constructor Detail

MeshRenderer

public MeshRenderer()
Method Detail

render

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

render1

public boolean render1(Mesh mesh)

setVariables

private boolean setVariables()

isPolygonDisplayable

protected boolean isPolygonDisplayable(int i)

render2

protected void render2(boolean generateSet)

renderPoints

protected void renderPoints()

renderTriangles

protected void renderTriangles(boolean fill,
                               boolean iShowTriangles,
                               boolean generateSet)

checkNormals

protected int checkNormals(short nA,
                           short nB,
                           short nC)

drawLine

protected void drawLine(int iA,
                        int iB,
                        boolean fill,
                        Point3f vA,
                        Point3f vB,
                        Point3i sA,
                        Point3i sB)

exportSurface

protected void exportSurface()