org.jmol.export
public class _PovrayExporter extends __RayTracerExporter
Modifier and Type | Field and Description |
---|---|
private boolean |
haveMacros |
isSlabEnabled, minScreenDimension
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 |
---|
_PovrayExporter() |
Modifier and Type | Method and Description |
---|---|
private String |
color4(short colix) |
(package private) String |
finalizeOutput() |
private String |
getAuxiliaryFileData() |
protected void |
output(Tuple3f pt) |
protected void |
outputCircle(int x,
int y,
int z,
float radius,
short colix,
boolean doFill) |
protected void |
outputCone(Point3f screenBase,
Point3f screenTip,
float radius,
short colix,
boolean isBarb) |
protected void |
outputCylinder(Point3f screenA,
Point3f screenB,
float radius,
short colix,
boolean withCaps) |
protected void |
outputCylinderConical(Point3f screenA,
Point3f screenB,
float radius1,
float radius2,
short colix) |
protected void |
outputEllipsoid(Point3f center,
float radius,
double[] coef,
short colix) |
protected void |
outputHeader() |
protected void |
outputSphere(float x,
float y,
float z,
float radius,
short colix) |
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(int x,
int y,
int z,
int argb) |
protected void |
outputTriangle(Point3f ptA,
Point3f ptB,
Point3f ptC,
short colix) |
private String |
triad(int[] i) |
private String |
triad(Tuple3f pt) |
private void |
writeMacros() |
private void |
writeMacros2() |
private void |
writeMacrosAtom() |
private void |
writeMacrosBond() |
private void |
writeMacrosFinish() |
drawAtom, drawCircle, drawCylinder, drawEllipse, drawPixel, drawTextPixel, fillConeScreen, fillConicalCylinder, fillCylinderScreen, fillCylinderScreenMad, fillEllipsoid, fillSphere, fillTriangle, getScreenNormal, outputVertex
drawFilledCircle, drawSurface, getColorList, getConeMesh, getExportDate, getJmolPerspective, getRotationMatrix, getRotationMatrix, initializeOutput, opacityFractionalFromArgb, opacityFractionalFromColix, output, outputComment, outputFooter, outputJmolPerspective, outputVertices, plotImage, plotText, rgbFractionalFromArgb, rgbFractionalFromColix, round, round, setRenderer, setTempVertex, translucencyFractionalFromColix
String finalizeOutput()
finalizeOutput
in class ___Exporter
protected void outputHeader()
outputHeader
in class __RayTracerExporter
private void writeMacros()
private void writeMacrosFinish()
private void writeMacrosAtom()
private void writeMacrosBond()
private void writeMacros2()
private String triad(int[] i)
private String color4(short colix)
private String getAuxiliaryFileData()
protected void output(Tuple3f pt)
output
in class ___Exporter
protected void outputCircle(int x, int y, int z, float radius, short colix, boolean doFill)
outputCircle
in class __RayTracerExporter
protected void outputCone(Point3f screenBase, Point3f screenTip, float radius, short colix, boolean isBarb)
outputCone
in class __RayTracerExporter
protected void outputCylinder(Point3f screenA, Point3f screenB, float radius, short colix, boolean withCaps)
outputCylinder
in class __RayTracerExporter
protected void outputCylinderConical(Point3f screenA, Point3f screenB, float radius1, float radius2, short colix)
outputCylinderConical
in class __RayTracerExporter
protected void outputEllipsoid(Point3f center, float radius, double[] coef, short colix)
outputEllipsoid
in class __RayTracerExporter
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 colorListprotected void outputSphere(float x, float y, float z, float radius, short colix)
outputSphere
in class __RayTracerExporter
protected void outputTextPixel(int x, int y, int z, int argb)
outputTextPixel
in class __RayTracerExporter
protected void outputTriangle(Point3f ptA, Point3f ptB, Point3f ptC, short colix)
outputTriangle
in class __RayTracerExporter