org.jmol.export
Class _MayaExporter

java.lang.Object
  extended by org.jmol.export.___Exporter
      extended by org.jmol.export.__CartesianExporter
          extended by org.jmol.export._MayaExporter

public class _MayaExporter
extends __CartesianExporter


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.__CartesianExporter
sphereMatrix, viewpoint
 
Fields inherited from class org.jmol.export.___Exporter
aperatureAngle, backgroundColix, bw, cameraDistance, cameraPosition, center, commandLineOptions, commentChar, degreesPerRadian, depthZ, exportType, fileName, fixedRotationCenter, g3d, isToFile, jmolRenderer, lightSource, lineWidthMad, nBytes, output, privateKey, referenceCenter, scalePixelsPerAngstrom, screenHeight, screenWidth, slabZ, tempA, tempP1, tempP2, tempP3, tempV1, tempV2, tempV3, viewer
 
Constructor Summary
_MayaExporter()
           
 
Method Summary
private  void addAttr()
           
private  void addConnect()
           
(package private)  void drawTextPixel(int argb, int x, int y, int z)
           
protected  void output(javax.vecmath.Tuple3f pt)
           
protected  void outputCircle(javax.vecmath.Point3f pt1, javax.vecmath.Point3f pt2, float radius, short colix, boolean doFill)
           
protected  void outputCone(javax.vecmath.Point3f ptBase, javax.vecmath.Point3f ptTip, float radius, short colix)
           
protected  boolean outputCylinder(javax.vecmath.Point3f ptCenter, javax.vecmath.Point3f pt1, javax.vecmath.Point3f pt2, short colix, byte endcaps, float radius, javax.vecmath.Point3f ptX, javax.vecmath.Point3f ptY)
           
protected  void outputEllipsoid(javax.vecmath.Point3f center, javax.vecmath.Point3f[] points, short colix)
           
protected  void outputFace(int[] is, int[] coordMap, int faceVertexMax)
           
protected  void outputHeader()
           
protected  void outputSphere(javax.vecmath.Point3f pt, float radius, short colix)
           
protected  void outputSurface(javax.vecmath.Point3f[] vertices, javax.vecmath.Vector3f[] normals, short[] colixes, int[][] indices, short[] polygonColixes, int nVertices, int nPolygons, int nFaces, java.util.BitSet bsPolygons, int faceVertexMax, short colix, java.util.List<java.lang.Short> colorList, java.util.Map<java.lang.Short,java.lang.Integer> htColixes, javax.vecmath.Point3f offset)
           
protected  void outputTextPixel(javax.vecmath.Point3f pt, int argb)
           
protected  void outputTriangle(javax.vecmath.Point3f pt1, javax.vecmath.Point3f pt2, javax.vecmath.Point3f pt3, short colix)
           
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)
           
 
Methods inherited from class org.jmol.export.__CartesianExporter
drawAtom, drawCircle, drawCylinder, drawEllipse, drawPixel, fillConeScreen, fillCylinderScreen, fillCylinderScreenMad, fillEllipsoid, fillSphere, fillTriangle, getCameraPosition, getCoordinateMap, getModelCenter, getNormalMap, outputIndices, plotImage, plotText, setSphereMatrix
 
Methods inherited from class org.jmol.export.___Exporter
drawFilledCircle, drawSurface, finalizeOutput, getColorList, getConeMesh, getExportDate, getJmolPerspective, getRotationMatrix, getRotationMatrix, initializeOutput, opacityFractionalFromArgb, opacityFractionalFromColix, output, outputComment, outputFooter, outputJmolPerspective, outputVertex, outputVertices, rgbFractionalFromArgb, rgbFractionalFromColix, round, round, setRenderer, setTempVertex, 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

outputHeader

protected void outputHeader()
Specified by:
outputHeader in class ___Exporter

addAttr

private void addAttr()

addConnect

private void addConnect()

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)

outputCylinder

protected boolean outputCylinder(javax.vecmath.Point3f ptCenter,
                                 javax.vecmath.Point3f pt1,
                                 javax.vecmath.Point3f pt2,
                                 short colix,
                                 byte endcaps,
                                 float radius,
                                 javax.vecmath.Point3f ptX,
                                 javax.vecmath.Point3f ptY)
Specified by:
outputCylinder in class __CartesianExporter

outputSphere

protected void outputSphere(javax.vecmath.Point3f pt,
                            float radius,
                            short colix)
Specified by:
outputSphere in class __CartesianExporter

drawTextPixel

void drawTextPixel(int argb,
                   int x,
                   int y,
                   int z)
Overrides:
drawTextPixel in class __CartesianExporter

outputTextPixel

protected void outputTextPixel(javax.vecmath.Point3f pt,
                               int argb)
Specified by:
outputTextPixel in class __CartesianExporter

outputSurface

protected void outputSurface(javax.vecmath.Point3f[] vertices,
                             javax.vecmath.Vector3f[] normals,
                             short[] colixes,
                             int[][] indices,
                             short[] polygonColixes,
                             int nVertices,
                             int nPolygons,
                             int nFaces,
                             java.util.BitSet bsPolygons,
                             int faceVertexMax,
                             short colix,
                             java.util.List<java.lang.Short> colorList,
                             java.util.Map<java.lang.Short,java.lang.Integer> htColixes,
                             javax.vecmath.Point3f offset)
Overrides:
outputSurface in class ___Exporter
Parameters:
vertices - generally unique vertices [0:nVertices)
normals - one per vertex
colixes - one per vertex, or null
indices - one per triangular or quad polygon; may have additional elements beyond vertex indices if faceVertexMax = 3 triangular if faceVertexMax == 3; 3 or 4 if face VertexMax = 4
polygonColixes - face-based colixes
nVertices - vertices[nVertices-1] is last vertex
nPolygons - indices[nPolygons - 1] is last polygon
nFaces - number of triangular faces required
bsPolygons - number of polygons (triangles or quads)
faceVertexMax - (3) triangles only, indices[][i] may have more elements (4) triangles and quads; indices[][i].length determines
colix - overall (solid) color index
colorList - list of unique color IDs
htColixes - map of color IDs to colorList

outputTriangle

protected void outputTriangle(javax.vecmath.Point3f pt1,
                              javax.vecmath.Point3f pt2,
                              javax.vecmath.Point3f pt3,
                              short colix)
Specified by:
outputTriangle in class __CartesianExporter

outputCircle

protected void outputCircle(javax.vecmath.Point3f pt1,
                            javax.vecmath.Point3f pt2,
                            float radius,
                            short colix,
                            boolean doFill)
Specified by:
outputCircle in class __CartesianExporter

outputCone

protected void outputCone(javax.vecmath.Point3f ptBase,
                          javax.vecmath.Point3f ptTip,
                          float radius,
                          short colix)
Specified by:
outputCone in class __CartesianExporter

outputEllipsoid

protected void outputEllipsoid(javax.vecmath.Point3f center,
                               javax.vecmath.Point3f[] points,
                               short colix)
Specified by:
outputEllipsoid in class __CartesianExporter

outputFace

protected void outputFace(int[] is,
                          int[] coordMap,
                          int faceVertexMax)
Specified by:
outputFace in class __CartesianExporter

output

protected void output(javax.vecmath.Tuple3f pt)
Specified by:
output in class ___Exporter