Logo Search packages:      
Sourcecode: jmol version File versions  Download package

Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Package Functions | Package Attributes | Private Member Functions | Private Attributes

org::jmol::export::_IdtfExporter Class Reference

Inheritance diagram for org::jmol::export::_IdtfExporter:
Inheritance graph
Collaboration diagram for org::jmol::export::_IdtfExporter:
Collaboration graph

List of all members.

Public Attributes

short lineWidthMad

Protected Member Functions

void fillTriangle (short colix, Point3f ptA, Point3f ptB, Point3f ptC, boolean twoSided)
Point3f getCameraPosition ()
List getColorList (int i00, short[] colixes, int nVertices, BitSet bsSelected, Hashtable htColixes)
int getCoordinateMap (Point3f[] vertices, int[] coordMap)
String getJmolPerspective ()
Point3f getModelCenter ()
int[] getNormalMap (Vector3f[] normals, int nNormals, List vNormals)
Matrix3f getRotationMatrix (Point3f pt1, Point3f pt2, float radius)
Matrix3f getRotationMatrix (Point3f pt1, Point3f ptZ, float radius, Point3f ptX, Point3f ptY)
void output (String data)
void output (Tuple3f pt)
void outputCircle (Point3f pt1, Point3f pt2, float radius, short colix, boolean doFill)
void outputComment (String comment)
void outputCone (Point3f ptBase, Point3f ptTip, float radius, short colix)
boolean outputCylinder (Point3f ptCenter, Point3f pt1, Point3f pt2, short colix, byte endcaps, float radius, Point3f ptX, Point3f ptY)
void outputEllipsoid (Point3f center, Point3f[] points, short colix)
void outputFace (int[] face, int[] map, int faceVertexMax)
void outputFooter ()
void outputHeader ()
void outputIndices (int[][] indices, int[] map, int nPolygons, BitSet bsFaces, int faceVertexMax)
void outputJmolPerspective ()
void outputSphere (Point3f center, float radius, short colix)
void outputSurface (Point3f[] vertices, Vector3f[] normals, short[] colixes, int[][] indices, short[] polygonColixes, int nVertices, int nPolygons, int nFaces, BitSet bsFaces, int faceVertexMax, short colix, List colorList, Hashtable htColixes, Point3f offset)
void outputTextPixel (Point3f pt, int argb)
void outputTriangle (Point3f pt1, Point3f pt2, Point3f pt3, short colix)
void outputVertex (Point3f pt, Point3f offset)
void outputVertices (Point3f[] vertices, int nVertices, Point3f offset)
String rgbFractionalFromColix (short colix, char sep)

Static Protected Member Functions

static MeshSurface getConeMesh (Point3f centerBase, Matrix3f matRotateScale, short colix)
static String getExportDate ()
static String opacityFractionalFromArgb (int argb)
static String opacityFractionalFromColix (short colix)
static String rgbFractionalFromArgb (int argb, char sep)
static String round (double number)
static String round (Tuple3f pt)
static void setTempVertex (Point3f pt, Point3f offset, Point3f ptTemp)
static String translucencyFractionalFromColix (short colix)

Protected Attributes

float aperatureAngle
short backgroundColix
BufferedWriter bw
float cameraDistance
Point3f cameraPosition
final Point3f center = new Point3f()
String commandLineOptions
String commentChar
int depthZ
String fileName
Point3f fixedRotationCenter
Graphics3D g3d
boolean isToFile
JmolRendererInterface jmolRenderer
Point3f lightSource = Graphics3D.getLightSource()
int nBytes
StringBuffer output
Point3f referenceCenter
float scalePixelsPerAngstrom
int screenHeight
int screenWidth
int slabZ
final AxisAngle4f tempA = new AxisAngle4f()
final Point3f tempP1 = new Point3f()
final Point3f tempP2 = new Point3f()
final Point3f tempP3 = new Point3f()
final Vector3f tempV1 = new Vector3f()
final Vector3f tempV2 = new Vector3f()
final Vector3f tempV3 = new Vector3f()
Viewer viewer
AxisAngle4f viewpoint = new AxisAngle4f()

Static Protected Attributes

final static float degreesPerRadian = (float) (180 / Math.PI)

Package Functions

 [instance initializer]
void drawAtom (Atom atom)
void drawCircle (int x, int y, int z, int diameter, short colix, boolean doFill)
void drawCylinder (Point3f ptA, Point3f ptB, short colix1, short colix2, byte endcaps, int mad, int bondOrder)
boolean drawEllipse (Point3f ptCenter, Point3f ptX, Point3f ptY, short colix, boolean doFill)
void drawFilledCircle (short colixRing, short colixFill, int diameter, int x, int y, int z)
void drawPixel (short colix, int x, int y, int z, int scale)
void drawSurface (int nVertices, int nPolygons, int faceVertexMax, Point3f[] vertices, Vector3f[] normals, short[] colixes, int[][] indices, short[] polygonColixes, BitSet bsFaces, short colix, Point3f offset)
void drawTextPixel (int argb, int x, int y, int z)
void fillConeScreen (short colix, byte endcap, int screenDiameter, Point3f screenBase, Point3f screenTip)
void fillCylinderScreen (short colix, byte endcaps, int screenDiameter, Point3f screenA, Point3f screenB)
void fillCylinderScreenMad (short colix, byte endcaps, int mad, Point3f screenA, Point3f screenB)
void fillEllipsoid (Point3f center, Point3f[] points, short colix, int x, int y, int z, int diameter, Matrix3f toEllipsoidal, double[] coef, Matrix4f deriv, Point3i[] octantPoints)
void fillSphere (short colix, int diameter, Point3f pt)
String finalizeOutput ()
boolean initializeOutput (Viewer viewer, Graphics3D g3d, Object output)
void plotImage (int x, int y, int z, Image image, short bgcolix, int width, int height)
void plotText (int x, int y, int z, short colix, String text, Font3D font3d)
void setRenderer (JmolRendererInterface jmolRenderer)

Package Attributes

int exportType

Private Member Functions

void addColix (short colix, boolean haveColors)
void addMeshData (String key, int nFaces, int nCoord, int nNormals, int nColors, StringBuffer sbFaceCoordIndices, StringBuffer sbFaceNormalIndices, StringBuffer sbColorIndices, StringBuffer sbCoords, StringBuffer sbNormals, StringBuffer sbColors)
void addShader (String key, short colix)
void checkPoint (Tuple3f pt)
String getAuxiliaryFileData ()
String getCircleResource ()
String getConeResource ()
String getCylinderResource (boolean inSide)
String getMeshData (String type, int[][] indices, Tuple3f[] vertexes, Tuple3f[] normals)
void getMeshHeader (String type, int nFaces, int vertexCount, int normalCount, int colorCount, StringBuffer sb)
String getParentItem (String name, Matrix4f m)
String getSphereResource ()
String getTriangleResource (String key, Point3f pt1, Point3f pt2, Point3f pt3)
void output (Tuple3f pt, StringBuffer sb, boolean checkpt)
void outputCircle (Point3f ptCenter, Point3f ptPerp, short colix, float radius)
boolean outputEllipse (Point3f ptCenter, Point3f ptZ, Point3f ptX, Point3f ptY, short colix)
void outputEllipsoid (Point3f center, float rx, float ry, float rz, AxisAngle4f a, short colix)
void outputNodes ()

Private Attributes

Matrix4f cylinderMatrix = new Matrix4f()
boolean haveCircle
boolean haveCone
boolean haveCylinder
boolean haveCylinderIn
boolean haveSphere
Hashtable htDefs = new Hashtable()
Hashtable htNodes = new Hashtable()
int iObj
final Matrix4f m = new Matrix4f()
final StringBuffer models = new StringBuffer()
final StringBuffer modifiers = new StringBuffer()
Point3f ptMax = new Point3f(-1e10f,-1e10f,-1e10f)
Point3f ptMin = new Point3f(1e10f,1e10f,1e10f)
final StringBuffer resources = new StringBuffer()
StringBuffer sbTemp
Matrix4f sphereMatrix = new Matrix4f()
int[][] triangleFace = new int[1][]

Detailed Description

Definition at line 51 of file _IdtfExporter.java.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index