Package org.jmol.export
Class ___Exporter
java.lang.Object
org.jmol.export.___Exporter
- Direct Known Subclasses:
__CartesianExporter
,_PovrayExporter
,_TachyonExporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected short
protected float
protected P3
protected final P3
protected String
protected String
protected static final double
protected int
protected JmolRendererInterface
protected float
protected String
protected P3
protected GData
protected V3
short
protected OC
protected double
protected P3
protected float
protected int
protected int
protected int
protected boolean
protected final P3
protected final P3
protected final P3
protected final V3
protected final V3
protected TransformManager
protected Viewer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
fillTriangle
(short colix, T3 ptA0, T3 ptB0, T3 ptC0, boolean twoSided) protected String
protected String
protected int
fixScreenZ
(int z) protected int
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 indexprotected static MeshSurface
getConeMesh
(P3 centerBase, M3 matRotateScale, short colix) protected String
protected String
protected M3
getRotationMatrix
(P3 pt1, P3 pt2, float radius) protected M3
getRotationMatrix
(P3 pt1, P3 ptZ, float radius, P3 ptX, P3 ptY) protected String
protected String
protected boolean
protected static String
opacityFractionalFromArgb
(int argb) protected static String
opacityFractionalFromColix
(short colix) protected void
protected abstract void
protected void
outputComment
(String comment) protected void
protected abstract void
protected void
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) protected void
outputVertex
(T3 pt, T3 offset) protected void
outputVertices
(T3[] vertices, int nVertices, T3 offset) protected String
rgbFractionalFromArgb
(int argb) protected String
rgbFractionalFromColix
(short colix) protected static String
round
(double number) protected static String
protected static void
setTempVertex
(T3 pt, T3 offset, T3 ptTemp) protected static String
translucencyFractionalFromColix
(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)
-