public abstract class ___Exporter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected float |
aperatureAngle |
protected short |
backgroundColix |
protected java.io.BufferedWriter |
bw |
protected float |
cameraDistance |
protected P3 |
cameraPosition |
protected P3 |
center |
protected java.lang.String |
commandLineOptions |
protected java.lang.String |
commentChar |
protected static float |
degreesPerRadian |
protected int |
depthZ |
protected float |
exportScale |
(package private) int |
exportType |
protected java.lang.String |
fileName |
protected P3 |
fixedRotationCenter |
protected GData |
g3d |
(package private) boolean |
isCartesian |
protected boolean |
isToFile |
protected JmolRendererInterface |
jmolRenderer |
protected V3 |
lightSource |
short |
lineWidthMad |
protected int |
nBytes |
private int |
nImage |
private int |
nText |
private java.io.FileOutputStream |
os |
protected SB |
output |
protected double |
privateKey |
protected P3 |
referenceCenter |
protected float |
scalePixelsPerAngstrom |
protected int |
screenHeight |
protected int |
screenWidth |
protected int |
slabZ |
private P3 |
tempC |
protected P3 |
tempP1 |
protected P3 |
tempP2 |
protected P3 |
tempP3 |
protected V3 |
tempV1 |
protected V3 |
tempV2 |
protected V3 |
tempV3 |
protected Viewer |
viewer |
Constructor and Description |
---|
___Exporter() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
drawAtom(Atom atom) |
(package private) abstract void |
drawCircle(int x,
int y,
int z,
int diameter,
short colix,
boolean doFill) |
(package private) abstract void |
drawCylinder(P3 atom1,
P3 atom2,
short colix1,
short colix2,
byte endcaps,
int madBond,
int bondOrder) |
(package private) abstract boolean |
drawEllipse(P3 ptAtom,
P3 ptX,
P3 ptY,
short colix,
boolean doFill) |
(package private) void |
drawFilledCircle(short colixRing,
short colixFill,
int diameter,
int x,
int y,
int z) |
(package private) abstract void |
drawPixel(short colix,
int x,
int y,
int z,
int scale) |
(package private) void |
drawSurface(MeshSurface meshSurface,
short colix) |
(package private) abstract void |
drawTextPixel(int argb,
int x,
int y,
int z) |
(package private) abstract void |
fillConeScreen(short colix,
byte endcap,
int screenDiameter,
P3 screenBase,
P3 screenTip,
boolean isBarb) |
(package private) abstract void |
fillCylinderScreen(short colix,
byte endcaps,
int screenDiameter,
P3 screenA,
P3 screenB) |
(package private) abstract void |
fillCylinderScreenMad(short colix,
byte endcaps,
int diameter,
P3 screenA,
P3 screenB) |
(package private) abstract void |
fillEllipsoid(P3 center,
P3[] points,
short colix,
int x,
int y,
int z,
int diameter,
Matrix3f toEllipsoidal,
double[] coef,
Matrix4f deriv,
P3i[] octantPoints) |
(package private) abstract void |
fillSphere(short colix,
int diameter,
P3 pt) |
protected abstract void |
fillTriangle(short colix,
P3 ptA,
P3 ptB,
P3 ptC,
boolean twoSided) |
(package private) java.lang.String |
finalizeOutput() |
protected java.lang.String |
finalizeOutput2() |
protected JmolList<java.lang.Short> |
getColorList(int i00,
short[] colixes,
int nVertices,
BS bsSelected,
java.util.Map<java.lang.Short,java.lang.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
|
protected static MeshSurface |
getConeMesh(P3 centerBase,
Matrix3f matRotateScale,
short colix) |
protected static java.lang.String |
getExportDate() |
protected java.lang.String |
getJmolPerspective() |
protected Matrix3f |
getRotationMatrix(P3 pt1,
P3 pt2,
float radius) |
protected Matrix3f |
getRotationMatrix(P3 pt1,
P3 ptZ,
float radius,
P3 ptX,
P3 ptY) |
protected java.lang.String |
getTriad(Tuple3f t) |
(package private) boolean |
initializeOutput(Viewer viewer,
double privateKey,
GData g3d,
java.lang.Object output) |
protected boolean |
initOutput(Viewer viewer,
double privateKey,
GData g3d,
java.lang.Object output) |
protected static java.lang.String |
opacityFractionalFromArgb(int argb) |
protected static java.lang.String |
opacityFractionalFromColix(short colix) |
protected void |
output(java.lang.String data) |
protected abstract void |
output(Tuple3f pt) |
protected void |
outputComment(java.lang.String comment) |
protected void |
outputFooter() |
protected abstract void |
outputHeader() |
protected void |
outputJmolPerspective() |
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 |
outputVertex(P3 pt,
P3 offset) |
protected void |
outputVertices(P3[] vertices,
int nVertices,
P3 offset) |
(package private) void |
plotImage(int x,
int y,
int z,
java.awt.Image image,
short bgcolix,
int width,
int height) |
(package private) void |
plotText(int x,
int y,
int z,
short colix,
java.lang.String text,
JmolFont font3d) |
protected java.lang.String |
rgbFractionalFromArgb(int argb) |
protected java.lang.String |
rgbFractionalFromColix(short colix) |
protected static java.lang.String |
round(double number) |
protected static java.lang.String |
round(Tuple3f pt) |
(package private) void |
setRenderer(JmolRendererInterface jmolRenderer) |
protected static void |
setTempVertex(P3 pt,
P3 offset,
P3 ptTemp) |
protected static java.lang.String |
translucencyFractionalFromColix(short colix) |
protected Viewer viewer
protected double privateKey
protected JmolRendererInterface jmolRenderer
protected SB output
protected java.io.BufferedWriter bw
private java.io.FileOutputStream os
protected java.lang.String fileName
protected java.lang.String commandLineOptions
boolean isCartesian
protected boolean isToFile
protected GData g3d
protected short backgroundColix
protected int screenWidth
protected int screenHeight
protected int slabZ
protected int depthZ
protected V3 lightSource
protected P3 fixedRotationCenter
protected P3 referenceCenter
protected P3 cameraPosition
protected float cameraDistance
protected float aperatureAngle
protected float scalePixelsPerAngstrom
protected float exportScale
int exportType
protected static final float degreesPerRadian
protected final P3 tempP1
protected final P3 tempP2
protected final P3 tempP3
protected final P3 center
protected final V3 tempV1
protected final V3 tempV2
protected final V3 tempV3
protected int nBytes
protected java.lang.String commentChar
private final P3 tempC
private int nText
private int nImage
public short lineWidthMad
void setRenderer(JmolRendererInterface jmolRenderer)
boolean initializeOutput(Viewer viewer, double privateKey, GData g3d, java.lang.Object output)
protected boolean initOutput(Viewer viewer, double privateKey, GData g3d, java.lang.Object output)
protected abstract void outputHeader()
protected void output(java.lang.String data)
protected void outputComment(java.lang.String comment)
protected abstract void output(Tuple3f pt)
protected void outputJmolPerspective()
protected java.lang.String getJmolPerspective()
protected void outputFooter()
java.lang.String finalizeOutput()
protected java.lang.String finalizeOutput2()
protected static java.lang.String getExportDate()
protected java.lang.String rgbFractionalFromColix(short colix)
protected java.lang.String getTriad(Tuple3f t)
protected java.lang.String rgbFractionalFromArgb(int argb)
protected static java.lang.String translucencyFractionalFromColix(short colix)
protected static java.lang.String opacityFractionalFromColix(short colix)
protected static java.lang.String opacityFractionalFromArgb(int argb)
protected static java.lang.String round(double number)
protected static java.lang.String round(Tuple3f pt)
protected JmolList<java.lang.Short> getColorList(int i00, short[] colixes, int nVertices, BS bsSelected, java.util.Map<java.lang.Short,java.lang.Integer> htColixes)
i00
- colixes
- nVertices
- bsSelected
- htColixes
- protected static MeshSurface getConeMesh(P3 centerBase, Matrix3f matRotateScale, short colix)
protected Matrix3f getRotationMatrix(P3 pt1, P3 ptZ, float radius, P3 ptX, P3 ptY)
abstract void drawAtom(Atom atom)
abstract void drawCircle(int x, int y, int z, int diameter, short colix, boolean doFill)
void drawSurface(MeshSurface meshSurface, 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)
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 colorListoffset
- abstract void drawPixel(short colix, int x, int y, int z, int scale)
abstract void drawTextPixel(int argb, int x, int y, int z)
abstract void fillConeScreen(short colix, byte endcap, int screenDiameter, P3 screenBase, P3 screenTip, boolean isBarb)
abstract void drawCylinder(P3 atom1, P3 atom2, short colix1, short colix2, byte endcaps, int madBond, int bondOrder)
abstract void fillCylinderScreenMad(short colix, byte endcaps, int diameter, P3 screenA, P3 screenB)
abstract void fillCylinderScreen(short colix, byte endcaps, int screenDiameter, P3 screenA, P3 screenB)
abstract void fillEllipsoid(P3 center, P3[] points, short colix, int x, int y, int z, int diameter, Matrix3f toEllipsoidal, double[] coef, Matrix4f deriv, P3i[] octantPoints)
void drawFilledCircle(short colixRing, short colixFill, int diameter, int x, int y, int z)
abstract void fillSphere(short colix, int diameter, P3 pt)
protected abstract void fillTriangle(short colix, P3 ptA, P3 ptB, P3 ptC, boolean twoSided)
void plotImage(int x, int y, int z, java.awt.Image image, short bgcolix, int width, int height)
void plotText(int x, int y, int z, short colix, java.lang.String text, JmolFont font3d)