org.jmol.export
public class _IdtfExporter extends __CartesianExporter
Modifier and Type | Field and Description |
---|---|
private Matrix4f |
cylinderMatrix |
private boolean |
haveCircle |
private boolean |
haveCone |
private boolean |
haveCylinder |
private boolean |
haveCylinderIn |
private boolean |
haveSphere |
private Map<String,Boolean> |
htDefs |
private Map<String,List<String>> |
htNodes |
private int |
iObj |
private Matrix4f |
m |
private StringBuffer |
models |
private StringBuffer |
modifiers |
private Point3f |
ptMax |
private Point3f |
ptMin |
private StringBuffer |
resources |
private StringBuffer |
sbTemp |
private int[][] |
triangleFace |
sphereMatrix, viewpoint
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 and Description |
---|
_IdtfExporter() |
Modifier and Type | Method and Description |
---|---|
private void |
addColix(short colix,
boolean haveColors) |
private void |
addMeshData(String key,
int nFaces,
int nCoord,
int nNormals,
int nColors,
StringBuffer sbFaceCoordIndices,
StringBuffer sbFaceNormalIndices,
StringBuffer sbColorIndices,
StringBuffer sbCoords,
StringBuffer sbNormals,
StringBuffer sbColors) |
private void |
addShader(String key,
short colix) |
private void |
checkPoint(Tuple3f pt) |
(package private) String |
finalizeOutput() |
private String |
getAuxiliaryFileData() |
private String |
getCircleResource() |
private String |
getConeResource() |
private String |
getCylinderResource(boolean inSide) |
private String |
getMeshData(String type,
int[][] indices,
Tuple3f[] vertexes,
Tuple3f[] normals) |
private void |
getMeshHeader(String type,
int nFaces,
int vertexCount,
int normalCount,
int colorCount,
StringBuffer sb) |
private String |
getParentItem(String name,
Matrix4f m) |
private String |
getSphereResource() |
private String |
getTriangleResource(String key,
Point3f pt1,
Point3f pt2,
Point3f pt3) |
protected void |
output(Tuple3f pt) |
private void |
output(Tuple3f pt,
StringBuffer sb,
boolean checkpt) |
protected void |
outputCircle(Point3f pt1,
Point3f pt2,
float radius,
short colix,
boolean doFill) |
private void |
outputCircle(Point3f ptCenter,
Point3f ptPerp,
short colix,
float radius) |
protected void |
outputCone(Point3f ptBase,
Point3f ptTip,
float radius,
short colix) |
protected boolean |
outputCylinder(Point3f ptCenter,
Point3f pt1,
Point3f pt2,
short colix,
byte endcaps,
float radius,
Point3f ptX,
Point3f ptY,
boolean checkRadius) |
private boolean |
outputEllipse(Point3f ptCenter,
Point3f ptZ,
Point3f ptX,
Point3f ptY,
short colix) |
private void |
outputEllipsoid(Point3f center,
Matrix4f sphereMatrix,
short colix) |
protected void |
outputEllipsoid(Point3f center,
Point3f[] points,
short colix) |
protected void |
outputFace(int[] face,
int[] map,
int faceVertexMax) |
protected void |
outputFooter() |
protected void |
outputHeader() |
private void |
outputNodes() |
protected void |
outputSphere(Point3f center,
float radius,
short colix,
boolean checkRadius) |
protected void |
outputSurface(Point3f[] vertices,
Vector3f[] normals,
short[] colixes,
int[][] indices,
short[] polygonColixes,
int nVertices,
int nPolygons,
int nFaces,
BitSet bsPolygons,
int faceVertexMax,
short colix,
List<Short> colorList,
Map<Short,Integer> htColixes,
Point3f offset) |
protected void |
outputTextPixel(Point3f pt,
int argb) |
protected void |
outputTriangle(Point3f pt1,
Point3f pt2,
Point3f pt3,
short colix) |
drawAtom, drawCircle, drawCylinder, drawEllipse, drawPixel, drawTextPixel, fillConeScreen, fillCylinderScreen, fillCylinderScreenMad, fillEllipsoid, fillSphere, fillTriangle, getCameraPosition, getCoordinateMap, getModelCenter, getNormalMap, outputIndices, plotImage, plotText, setSphereMatrix
drawFilledCircle, drawSurface, getColorList, getConeMesh, getExportDate, getJmolPerspective, getRotationMatrix, getRotationMatrix, initializeOutput, opacityFractionalFromArgb, opacityFractionalFromColix, output, outputComment, outputJmolPerspective, outputVertex, outputVertices, rgbFractionalFromArgb, rgbFractionalFromColix, round, round, setRenderer, setTempVertex, translucencyFractionalFromColix
private boolean haveSphere
private boolean haveCylinder
private boolean haveCylinderIn
private boolean haveCone
private boolean haveCircle
private Point3f ptMin
private Point3f ptMax
private int iObj
private final Matrix4f m
private final StringBuffer models
private final StringBuffer resources
private final StringBuffer modifiers
private Matrix4f cylinderMatrix
private StringBuffer sbTemp
private int[][] triangleFace
protected void output(Tuple3f pt)
output
in class ___Exporter
private void output(Tuple3f pt, StringBuffer sb, boolean checkpt)
private void checkPoint(Tuple3f pt)
protected void outputHeader()
outputHeader
in class ___Exporter
String finalizeOutput()
finalizeOutput
in class ___Exporter
private String getAuxiliaryFileData()
private void addColix(short colix, boolean haveColors)
private void addShader(String key, short colix)
protected void outputFooter()
outputFooter
in class ___Exporter
private void outputNodes()
protected void outputEllipsoid(Point3f center, Point3f[] points, short colix)
outputEllipsoid
in class __CartesianExporter
private String getSphereResource()
private String getMeshData(String type, int[][] indices, Tuple3f[] vertexes, Tuple3f[] normals)
private void getMeshHeader(String type, int nFaces, int vertexCount, int normalCount, int colorCount, StringBuffer sb)
protected boolean outputCylinder(Point3f ptCenter, Point3f pt1, Point3f pt2, short colix, byte endcaps, float radius, Point3f ptX, Point3f ptY, boolean checkRadius)
outputCylinder
in class __CartesianExporter
protected void outputCircle(Point3f pt1, Point3f pt2, float radius, short colix, boolean doFill)
outputCircle
in class __CartesianExporter
private boolean outputEllipse(Point3f ptCenter, Point3f ptZ, Point3f ptX, Point3f ptY, short colix)
private String getCylinderResource(boolean inSide)
protected void outputFace(int[] face, int[] map, int faceVertexMax)
outputFace
in class __CartesianExporter
protected void outputSurface(Point3f[] vertices, Vector3f[] normals, short[] colixes, int[][] indices, short[] polygonColixes, int nVertices, int nPolygons, int nFaces, BitSet bsPolygons, int faceVertexMax, short colix, List<Short> colorList, Map<Short,Integer> htColixes, Point3f offset)
outputSurface
in class ___Exporter
vertices
- generally unique vertices [0:nVertices)normals
- one per vertexcolixes
- one per vertex, or nullindices
- 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 = 4polygonColixes
- face-based colixesnVertices
- vertices[nVertices-1] is last vertexnPolygons
- indices[nPolygons - 1] is last polygonnFaces
- number of triangular faces requiredbsPolygons
- number of polygons (triangles or quads)faceVertexMax
- (3) triangles only, indices[][i] may have more elements
(4) triangles and quads; indices[][i].length determinescolix
- overall (solid) color indexcolorList
- list of unique color IDshtColixes
- map of color IDs to colorListprivate void addMeshData(String key, int nFaces, int nCoord, int nNormals, int nColors, StringBuffer sbFaceCoordIndices, StringBuffer sbFaceNormalIndices, StringBuffer sbColorIndices, StringBuffer sbCoords, StringBuffer sbNormals, StringBuffer sbColors)
protected void outputCone(Point3f ptBase, Point3f ptTip, float radius, short colix)
outputCone
in class __CartesianExporter
private String getConeResource()
private String getCircleResource()
protected void outputSphere(Point3f center, float radius, short colix, boolean checkRadius)
outputSphere
in class __CartesianExporter
protected void outputTextPixel(Point3f pt, int argb)
outputTextPixel
in class __CartesianExporter
protected void outputTriangle(Point3f pt1, Point3f pt2, Point3f pt3, short colix)
outputTriangle
in class __CartesianExporter