Package org.jmol.export
Class ___Exporter
java.lang.Object
org.jmol.export.___Exporter
- Direct Known Subclasses:
__CartesianExporter,_PovrayExporter,_TachyonExporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected shortprotected floatprotected P3protected final P3protected Stringprotected Stringprotected static final doubleprotected intprotected JmolRendererInterfaceprotected floatprotected Stringprotected P3protected GDataprotected V3shortprotected OCprotected doubleprotected P3protected floatprotected intprotected intprotected intprotected booleanprotected final P3protected final P3protected final P3protected final V3protected final V3protected TransformManagerprotected Viewer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidfillTriangle(short colix, T3 ptA0, T3 ptB0, T3 ptC0, boolean twoSided) protected Stringprotected Stringprotected intfixScreenZ(int z) protected intgetColorList(int i00, short[] colixes, int nVertices, BS bsSelected, Map<Short, Integer> htColixes) input an array of colixes; returns a Vector for the color list and a HashTable for correlating the colix with a specific color indexprotected static MeshSurfacegetConeMesh(P3 centerBase, M3 matRotateScale, short colix) protected Stringprotected Stringprotected M3getRotationMatrix(P3 pt1, P3 pt2, float radius) protected M3getRotationMatrix(P3 pt1, P3 ptZ, float radius, P3 ptX, P3 ptY) protected Stringprotected Stringprotected booleanprotected static StringopacityFractionalFromArgb(int argb) protected static StringopacityFractionalFromColix(short colix) protected voidprotected abstract voidprotected voidoutputComment(String comment) protected voidprotected abstract voidprotected voidprotected voidoutputSurface(T3[] vertices, T3[] normals, short[] colixes, int[][] indices, short[] polygonColixes, int nVertices, int nPolygons, int nTriangles, BS bsPolygons, int faceVertexMax, short colix, Lst<Short> colorList, Map<Short, Integer> htColixes, P3 offset) protected voidoutputVertex(T3 pt, T3 offset) protected voidoutputVertices(T3[] vertices, int nVertices, T3 offset) protected StringrgbFractionalFromArgb(int argb) protected StringrgbFractionalFromColix(short colix) protected static Stringround(double number) protected static Stringprotected static voidsetTempVertex(T3 pt, T3 offset, T3 ptTemp) protected static StringtranslucencyFractionalFromColix(short colix)
-
Field Details
-
solidOnly
protected boolean solidOnly -
vwr
-
tm
-
privateKey
protected double privateKey -
export3D
-
out
-
fileName
-
commandLineOptions
-
gdata
-
backgroundColix
protected short backgroundColix -
screenWidth
protected int screenWidth -
screenHeight
protected int screenHeight -
slabZ
protected int slabZ -
depthZ
protected int depthZ -
lightSource
-
fixedRotationCenter
-
referenceCenter
-
cameraPosition
-
cameraDistance
protected float cameraDistance -
apertureAngle
protected float apertureAngle -
scalePixelsPerAngstrom
protected float scalePixelsPerAngstrom -
exportScale
protected float exportScale -
degreesPerRadian
protected static final double degreesPerRadian- See Also:
-
tempP1
-
tempP2
-
tempP3
-
center
-
tempV1
-
tempV2
-
commentChar
-
lineWidthMad
public short lineWidthMad
-
-
Constructor Details
-
___Exporter
public ___Exporter()
-
-
Method Details
-
initOutput
-
outputHeader
protected abstract void outputHeader() -
output
-
getByteCount
protected int getByteCount() -
outputComment
-
setTempVertex
-
outputVertices
-
outputVertex
-
output
-
outputJmolPerspective
protected void outputJmolPerspective() -
getJmolPerspective
-
finalizeOutput
-
finalizeOutput2
-
getExportDate
-
rgbFractionalFromColix
-
getTriadC
-
getTriad
-
rgbFractionalFromArgb
-
translucencyFractionalFromColix
-
opacityFractionalFromColix
-
opacityFractionalFromArgb
-
round
-
round
-
getColorList
protected Lst<Short> getColorList(int i00, short[] colixes, int nVertices, BS bsSelected, Map<Short, Integer> htColixes) input an array of colixes; returns a Vector for the color list and a HashTable for correlating the colix with a specific color index- Parameters:
i00-colixes-nVertices-bsSelected-htColixes-- Returns:
- Vector and HashTable
-
getConeMesh
-
getRotationMatrix
-
getRotationMatrix
-
outputSurface
protected void outputSurface(T3[] vertices, T3[] normals, short[] colixes, int[][] indices, short[] polygonColixes, int nVertices, int nPolygons, int nTriangles, BS bsPolygons, int faceVertexMax, short colix, Lst<Short> colorList, Map<Short, Integer> htColixes, P3 offset) - Parameters:
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 polygonnTriangles- 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 colorListoffset-
-
fillTriangle
-
fixScreenZ
protected int fixScreenZ(int z)
-