org.jmol.export
Class _MayaExporter

java.lang.Object
  extended by org.jmol.export._Exporter
      extended by org.jmol.export._MayaExporter

public class _MayaExporter
extends _Exporter


Field Summary
private  java.lang.String id
           
private  java.lang.String name
           
private  int nBalls
           
private  int nCyl
           
 
Fields inherited from class org.jmol.export._Exporter
bw, canDoTriangles, center, commandLineOptions, degreesPerRadian, depthZ, fileName, g3d, isCartesianExport, isToFile, jmolRenderer, output, pt, screenHeight, screenWidth, slabZ, tempA, tempP1, tempP2, tempP3, tempV1, tempV2, tempV3, use2dBondOrderCalculation, viewer
 
Constructor Summary
_MayaExporter()
           
 
Method Summary
private  void addAttr()
           
private  void addConnect()
           
 void drawCircleCentered(short colix, int diameter, int x, int y, int z, boolean doFill)
           
 void drawPixel(short colix, int x, int y, int z)
           
 void drawString(short colix, java.lang.String str, Font3D font3d, int xBaseline, int yBaseline, int z, int zSlab)
           
 void drawTextPixel(int argb, int x, int y, int z)
           
 void endShapeBuffer()
           
 void fillCone(short colix, byte endcap, int diameter, javax.vecmath.Point3f screenBase, javax.vecmath.Point3f screenTip)
           
 void fillCylinder(javax.vecmath.Point3f atom1, javax.vecmath.Point3f atom2, short colix1, short colix2, byte endcaps, int madBond, int bondOrder)
           
 void fillCylinder(short colix, byte endcaps, int diameter, javax.vecmath.Point3f screenA, javax.vecmath.Point3f screenB)
           
 void fillScreenedCircleCentered(short colixFill, int diameter, int x, int y, int z)
           
 void fillSphereCentered(short colix, int diameter, javax.vecmath.Point3f pt)
           
 void fillTriangle(short colix, javax.vecmath.Point3f ptA, javax.vecmath.Point3f ptB, javax.vecmath.Point3f ptC)
           
 void getFooter()
           
 void getHeader()
           
 void plotImage(int x, int y, int z, java.awt.Image image, short bgcolix, int width, int height)
           
 void plotText(int x, int y, int z, short colix, java.lang.String text, Font3D font3d)
           
 void renderAtom(Atom atom, short colix)
           
 void renderCylinder(javax.vecmath.Point3f pt1, javax.vecmath.Point3f pt2, short colix, byte endcaps, int madBond)
           
(package private)  void renderEllipsoid(javax.vecmath.Point3f center, javax.vecmath.Point3f[] points, short colix, int x, int y, int z, int diameter, javax.vecmath.Matrix3f toEllipsoidal, double[] coef, javax.vecmath.Matrix4f deriv, javax.vecmath.Point3i[] octantPoints)
           
 void renderIsosurface(javax.vecmath.Point3f[] vertices, short colix, short[] colixes, javax.vecmath.Vector3f[] normals, int[][] indices, java.util.BitSet bsFaces, int nVertices, int faceVertexMax, short[] polygonColixes, int nPolygons)
           
 void renderText(Text t)
           
private  void setAttr(java.lang.String attr, float val)
           
private  void setAttr(java.lang.String attr, int val)
           
private  void setAttr(java.lang.String attr, javax.vecmath.Tuple3f pt)
           
 void startShapeBuffer(int iShape)
           
 
Methods inherited from class org.jmol.export._Exporter
adjustViewpointPosition, finalizeOutput, getAxisAngle, getColorList, getExportDate, getFieldOfView, getRotation, getViewpointPosition, initializeOutput, opacityFractionalFromColix, rgbFractionalFromArgb, rgbFractionalFromColix, rgbFromColix, round, setRenderer, translucencyFractionalFromColix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nBalls

private int nBalls

nCyl

private int nCyl

name

private java.lang.String name

id

private java.lang.String id
Constructor Detail

_MayaExporter

public _MayaExporter()
Method Detail

getHeader

public void getHeader()
Specified by:
getHeader in class _Exporter

getFooter

public void getFooter()
Specified by:
getFooter in class _Exporter

renderAtom

public void renderAtom(Atom atom,
                       short colix)
Specified by:
renderAtom in class _Exporter

fillCylinder

public void fillCylinder(javax.vecmath.Point3f atom1,
                         javax.vecmath.Point3f atom2,
                         short colix1,
                         short colix2,
                         byte endcaps,
                         int madBond,
                         int bondOrder)
Specified by:
fillCylinder in class _Exporter

renderCylinder

public void renderCylinder(javax.vecmath.Point3f pt1,
                           javax.vecmath.Point3f pt2,
                           short colix,
                           byte endcaps,
                           int madBond)

setAttr

private void setAttr(java.lang.String attr,
                     float val)

setAttr

private void setAttr(java.lang.String attr,
                     int val)

setAttr

private void setAttr(java.lang.String attr,
                     javax.vecmath.Tuple3f pt)

addAttr

private void addAttr()

addConnect

private void addConnect()

renderIsosurface

public void renderIsosurface(javax.vecmath.Point3f[] vertices,
                             short colix,
                             short[] colixes,
                             javax.vecmath.Vector3f[] normals,
                             int[][] indices,
                             java.util.BitSet bsFaces,
                             int nVertices,
                             int faceVertexMax,
                             short[] polygonColixes,
                             int nPolygons)
Specified by:
renderIsosurface in class _Exporter

renderText

public void renderText(Text t)
Specified by:
renderText in class _Exporter

drawString

public void drawString(short colix,
                       java.lang.String str,
                       Font3D font3d,
                       int xBaseline,
                       int yBaseline,
                       int z,
                       int zSlab)
Specified by:
drawString in class _Exporter

fillCylinder

public void fillCylinder(short colix,
                         byte endcaps,
                         int diameter,
                         javax.vecmath.Point3f screenA,
                         javax.vecmath.Point3f screenB)
Specified by:
fillCylinder in class _Exporter

drawCircleCentered

public void drawCircleCentered(short colix,
                               int diameter,
                               int x,
                               int y,
                               int z,
                               boolean doFill)
Specified by:
drawCircleCentered in class _Exporter

fillScreenedCircleCentered

public void fillScreenedCircleCentered(short colixFill,
                                       int diameter,
                                       int x,
                                       int y,
                                       int z)
Specified by:
fillScreenedCircleCentered in class _Exporter

drawPixel

public void drawPixel(short colix,
                      int x,
                      int y,
                      int z)
Specified by:
drawPixel in class _Exporter

drawTextPixel

public void drawTextPixel(int argb,
                          int x,
                          int y,
                          int z)
Specified by:
drawTextPixel in class _Exporter

fillTriangle

public void fillTriangle(short colix,
                         javax.vecmath.Point3f ptA,
                         javax.vecmath.Point3f ptB,
                         javax.vecmath.Point3f ptC)
Specified by:
fillTriangle in class _Exporter

fillCone

public void fillCone(short colix,
                     byte endcap,
                     int diameter,
                     javax.vecmath.Point3f screenBase,
                     javax.vecmath.Point3f screenTip)
Specified by:
fillCone in class _Exporter

fillSphereCentered

public void fillSphereCentered(short colix,
                               int diameter,
                               javax.vecmath.Point3f pt)
Specified by:
fillSphereCentered in class _Exporter

plotText

public void plotText(int x,
                     int y,
                     int z,
                     short colix,
                     java.lang.String text,
                     Font3D font3d)
Specified by:
plotText in class _Exporter

plotImage

public void plotImage(int x,
                      int y,
                      int z,
                      java.awt.Image image,
                      short bgcolix,
                      int width,
                      int height)
Specified by:
plotImage in class _Exporter

endShapeBuffer

public void endShapeBuffer()
Specified by:
endShapeBuffer in class _Exporter

startShapeBuffer

public void startShapeBuffer(int iShape)
Specified by:
startShapeBuffer in class _Exporter

renderEllipsoid

void renderEllipsoid(javax.vecmath.Point3f center,
                     javax.vecmath.Point3f[] points,
                     short colix,
                     int x,
                     int y,
                     int z,
                     int diameter,
                     javax.vecmath.Matrix3f toEllipsoidal,
                     double[] coef,
                     javax.vecmath.Matrix4f deriv,
                     javax.vecmath.Point3i[] octantPoints)
Specified by:
renderEllipsoid in class _Exporter