public abstract class Exporter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected float |
aperatureAngle |
protected java.lang.String |
appletName |
protected short |
backgroundColix |
protected java.io.BufferedWriter |
bw |
protected float |
cameraDistance |
protected P3 |
cameraPosition |
protected P3 |
center |
protected java.lang.String |
commandLineOptions |
protected static float |
degreesPerRadian |
protected int |
depthZ |
(package private) int |
exportType |
protected java.lang.String |
fileName |
protected P3 |
fixedRotationCenter |
protected GData |
g3d |
protected boolean |
isToFile |
protected JmolRendererInterface |
jmolRenderer |
short |
lineWidthMad |
protected int |
nBytes |
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 |
protected AxisAngle4f |
tempA |
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 |
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,
P3 ptA,
P3 ptB,
float radius) |
(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,
boolean isCartesian) |
(package private) java.lang.String |
finalizeOutput() |
protected java.lang.String |
getTriad(Tuple3f t) |
(package private) boolean |
initializeOutput(Viewer viewer,
double privateKey,
GData g3d,
java.lang.Object output) |
protected void |
output(java.lang.String data) |
protected abstract void |
output(Tuple3f pt) |
protected void |
outputFooter() |
protected abstract void |
outputHeader() |
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,
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 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 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
protected boolean isToFile
protected GData g3d
protected short backgroundColix
protected int screenWidth
protected int screenHeight
protected int slabZ
protected int depthZ
protected P3 fixedRotationCenter
protected P3 referenceCenter
protected P3 cameraPosition
protected float cameraDistance
protected float aperatureAngle
protected float scalePixelsPerAngstrom
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 final AxisAngle4f tempA
protected java.lang.String appletName
protected int nBytes
public short lineWidthMad
void setRenderer(JmolRendererInterface jmolRenderer)
boolean initializeOutput(Viewer viewer, double privateKey, GData g3d, java.lang.Object output)
protected abstract void outputHeader()
protected void output(java.lang.String data)
protected abstract void output(Tuple3f pt)
protected void outputFooter()
java.lang.String finalizeOutput()
protected java.lang.String getTriad(Tuple3f t)
protected static java.lang.String round(double number)
protected static java.lang.String round(Tuple3f pt)
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, 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 indexoffset
- abstract void drawPixel(short colix, int x, int y, int z, int scale)
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, P3 ptA, P3 ptB, float radius)
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, boolean isCartesian)
void plotImage(int x, int y, int z, java.awt.Image image, short bgcolix, int width, int height)
x
- y
- z
- image
- bgcolix
- width
- height
- void plotText(int x, int y, int z, short colix, java.lang.String text, JmolFont font3d)
x
- y
- z
- colix
- text
- font3d
-