org.jmol.export
public class _TachyonExporter extends __RayTracerExporter
Modifier and Type | Field and Description |
---|---|
(package private) String |
lighting |
(package private) String |
phong |
private String |
textureCode |
(package private) UseTable |
textures |
(package private) boolean |
wasPerspectiveDepth |
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 |
---|
_TachyonExporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
fillConicalCylinder(Point3f screenA,
Point3f screenB,
int madBond,
short colix,
byte endcaps) |
private void |
getLightingInfo() |
(package private) boolean |
initializeOutput(Viewer viewer,
double privateKey,
Graphics3D g3d,
Object output) |
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 |
outputFooter() |
protected void |
outputHeader() |
private void |
outputRing(int x,
int y,
int z,
Vector3f tempV1,
float radius,
short colix,
boolean doFill) |
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) |
private void |
outputTexture(int argb,
boolean useTexDef) |
private void |
outputTexture(short colix,
boolean useTexDef) |
private void |
outputTexture2(String rgb,
String opacity,
boolean useTexDef) |
private void |
outputTextureCode() |
protected void |
outputTriangle(Point3f ptA,
Point3f ptB,
Point3f ptC,
short colix) |
private String |
triad(float x,
float y,
float z) |
private String |
triad(Tuple3f pt) |
drawAtom, drawCircle, drawCylinder, drawEllipse, drawPixel, drawTextPixel, fillConeScreen, fillCylinderScreen, fillCylinderScreenMad, fillEllipsoid, fillSphere, fillTriangle, getScreenNormal, outputVertex
drawFilledCircle, drawSurface, finalizeOutput, getColorList, getConeMesh, getExportDate, getJmolPerspective, getRotationMatrix, getRotationMatrix, opacityFractionalFromArgb, opacityFractionalFromColix, output, outputComment, outputJmolPerspective, outputVertices, plotImage, plotText, rgbFractionalFromArgb, rgbFractionalFromColix, round, round, setRenderer, setTempVertex, translucencyFractionalFromColix
boolean wasPerspectiveDepth
String lighting
String phong
UseTable textures
private String textureCode
boolean initializeOutput(Viewer viewer, double privateKey, Graphics3D g3d, Object output)
initializeOutput
in class ___Exporter
private void getLightingInfo()
protected void outputHeader()
outputHeader
in class __RayTracerExporter
protected void outputFooter()
outputFooter
in class ___Exporter
protected void output(Tuple3f pt)
output
in class ___Exporter
private String triad(float x, float y, float z)
private void outputTextureCode()
private void outputTexture(short colix, boolean useTexDef)
private void outputTexture(int argb, boolean useTexDef)
protected void outputCircle(int x, int y, int z, float radius, short colix, boolean doFill)
outputCircle
in class __RayTracerExporter
private void outputRing(int x, int y, int z, Vector3f tempV1, float radius, short colix, boolean doFill)
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 fillConicalCylinder(Point3f screenA, Point3f screenB, int madBond, short colix, byte endcaps)
fillConicalCylinder
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