public class _PovrayExporter extends __RayTracerExporter
| Modifier and Type | Field and Description |
|---|---|
private boolean |
haveMacros |
isSlabEnabled, minScreenDimensionaperatureAngle, backgroundColix, bw, cameraDistance, cameraPosition, center, commandLineOptions, commentChar, degreesPerRadian, depthZ, exportScale, exportType, fileName, fixedRotationCenter, g3d, isCartesian, isToFile, jmolRenderer, lightSource, lineWidthMad, nBytes, output, privateKey, referenceCenter, scalePixelsPerAngstrom, screenHeight, screenWidth, slabZ, tempP1, tempP2, tempP3, tempV1, tempV2, tempV3, viewer| Constructor and Description |
|---|
_PovrayExporter() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
color4(short colix) |
(package private) java.lang.String |
finalizeOutput() |
private java.lang.String |
getAuxiliaryFileData() |
private java.lang.String |
getTriad(int[] i) |
protected java.lang.String |
getTriad(Tuple3f pt) |
protected void |
output(Tuple3f pt) |
protected void |
outputCircle(int x,
int y,
int z,
float radius,
short colix,
boolean doFill) |
protected void |
outputCone(P3 screenBase,
P3 screenTip,
float radius,
short colix,
boolean isBarb) |
protected void |
outputCylinder(P3 screenA,
P3 screenB,
float radius,
short colix,
boolean withCaps) |
protected void |
outputCylinderConical(P3 screenA,
P3 screenB,
float radius1,
float radius2,
short colix) |
protected void |
outputEllipsoid(P3 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(P3[] vertices,
V3[] normals,
short[] colixes,
int[][] indices,
short[] polygonColixes,
int nVertices,
int nPolygons,
int nFaces,
BS bsPolygons,
int faceVertexMax,
short colix,
JmolList<java.lang.Short> colorList,
java.util.Map<java.lang.Short,java.lang.Integer> htColixes,
P3 offset) |
protected void |
outputTextPixel(int x,
int y,
int z,
int argb) |
protected void |
outputTriangle(P3 ptA,
P3 ptB,
P3 ptC,
short colix) |
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, initVars, outputVertexdrawFilledCircle, drawSurface, finalizeOutput2, getColorList, getConeMesh, getExportDate, getJmolPerspective, getRotationMatrix, getRotationMatrix, initializeOutput, initOutput, opacityFractionalFromArgb, opacityFractionalFromColix, output, outputComment, outputFooter, outputJmolPerspective, outputVertices, plotImage, plotText, rgbFractionalFromArgb, rgbFractionalFromColix, round, round, setRenderer, setTempVertex, translucencyFractionalFromColixjava.lang.String finalizeOutput()
finalizeOutput in class ___Exporterprotected void outputHeader()
outputHeader in class ___Exporterprivate void writeMacros()
private void writeMacrosFinish()
private void writeMacrosAtom()
private void writeMacrosBond()
private void writeMacros2()
protected java.lang.String getTriad(Tuple3f pt)
getTriad in class ___Exporterprivate java.lang.String getTriad(int[] i)
private java.lang.String color4(short colix)
private java.lang.String getAuxiliaryFileData()
protected void output(Tuple3f pt)
output in class ___Exporterprotected void outputCircle(int x,
int y,
int z,
float radius,
short colix,
boolean doFill)
outputCircle in class __RayTracerExporterprotected void outputCone(P3 screenBase, P3 screenTip, float radius, short colix, boolean isBarb)
outputCone in class __RayTracerExporterprotected void outputCylinder(P3 screenA, P3 screenB, float radius, short colix, boolean withCaps)
outputCylinder in class __RayTracerExporterprotected void outputCylinderConical(P3 screenA, P3 screenB, float radius1, float radius2, short colix)
outputCylinderConical in class __RayTracerExporterprotected void outputEllipsoid(P3 center, float radius, double[] coef, short colix)
outputEllipsoid in class __RayTracerExporterprotected void outputSurface(P3[] vertices, V3[] normals, short[] colixes, int[][] indices, short[] polygonColixes, int nVertices, int nPolygons, int nFaces, BS bsPolygons, int faceVertexMax, short colix, JmolList<java.lang.Short> colorList, java.util.Map<java.lang.Short,java.lang.Integer> htColixes, P3 offset)
outputSurface in class ___Exportervertices - 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 __RayTracerExporterprotected void outputTextPixel(int x,
int y,
int z,
int argb)
outputTextPixel in class __RayTracerExporterprotected void outputTriangle(P3 ptA, P3 ptB, P3 ptC, short colix)
outputTriangle in class __RayTracerExporter