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 javax.vecmath.Point3f |
cameraPosition |
protected javax.vecmath.Point3f |
center |
protected java.lang.String |
commandLineOptions |
protected java.lang.String |
commentChar |
protected static float |
degreesPerRadian |
protected int |
depthZ |
(package private) int |
exportType |
protected java.lang.String |
fileName |
protected javax.vecmath.Point3f |
fixedRotationCenter |
protected Graphics3D |
g3d |
protected boolean |
isToFile |
protected JmolRendererInterface |
jmolRenderer |
protected javax.vecmath.Point3f |
lightSource |
short |
lineWidthMad |
protected int |
nBytes |
private int |
nImage |
private int |
nText |
private java.io.FileOutputStream |
os |
protected java.lang.StringBuffer |
output |
protected double |
privateKey |
protected javax.vecmath.Point3f |
referenceCenter |
protected float |
scalePixelsPerAngstrom |
protected int |
screenHeight |
protected int |
screenWidth |
protected int |
slabZ |
protected javax.vecmath.AxisAngle4f |
tempA |
protected javax.vecmath.Point3f |
tempP1 |
protected javax.vecmath.Point3f |
tempP2 |
protected javax.vecmath.Point3f |
tempP3 |
protected javax.vecmath.Vector3f |
tempV1 |
protected javax.vecmath.Vector3f |
tempV2 |
protected javax.vecmath.Vector3f |
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(javax.vecmath.Point3f atom1,
javax.vecmath.Point3f atom2,
short colix1,
short colix2,
byte endcaps,
int madBond,
int bondOrder) |
(package private) abstract boolean |
drawEllipse(javax.vecmath.Point3f ptAtom,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f 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,
javax.vecmath.Point3f screenBase,
javax.vecmath.Point3f screenTip,
boolean isBarb) |
(package private) abstract void |
fillCylinderScreen(short colix,
byte endcaps,
int screenDiameter,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB) |
(package private) abstract void |
fillCylinderScreenMad(short colix,
byte endcaps,
int diameter,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB) |
(package private) abstract void |
fillEllipsoid(javax.vecmath.Point3f center,
javax.vecmath.Point3f[] points,
short colix,
int x,
int y,
int z,
int diameter,
javax.vecmath.Matrix3f toEllipsoidal,
double[] coef,
javax.vecmath.Matrix4f deriv,
javax.vecmath.Point3i[] octantPoints) |
(package private) abstract void |
fillSphere(short colix,
int diameter,
javax.vecmath.Point3f pt) |
protected abstract void |
fillTriangle(short colix,
javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
javax.vecmath.Point3f ptC,
boolean twoSided) |
(package private) java.lang.String |
finalizeOutput() |
protected java.util.List<java.lang.Short> |
getColorList(int i00,
short[] colixes,
int nVertices,
java.util.BitSet 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(javax.vecmath.Point3f centerBase,
javax.vecmath.Matrix3f matRotateScale,
short colix) |
protected static java.lang.String |
getExportDate() |
protected java.lang.String |
getJmolPerspective() |
protected javax.vecmath.Matrix3f |
getRotationMatrix(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
float radius) |
protected javax.vecmath.Matrix3f |
getRotationMatrix(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f ptZ,
float radius,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY) |
(package private) boolean |
initializeOutput(Viewer viewer,
double privateKey,
Graphics3D 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(javax.vecmath.Tuple3f pt) |
protected void |
outputComment(java.lang.String comment) |
protected void |
outputFooter() |
protected abstract void |
outputHeader() |
protected void |
outputJmolPerspective() |
protected void |
outputSurface(javax.vecmath.Point3f[] vertices,
javax.vecmath.Vector3f[] normals,
short[] colixes,
int[][] indices,
short[] polygonColixes,
int nVertices,
int nPolygons,
int nFaces,
java.util.BitSet bsPolygons,
int faceVertexMax,
short colix,
java.util.List<java.lang.Short> colorList,
java.util.Map<java.lang.Short,java.lang.Integer> htColixes,
javax.vecmath.Point3f offset) |
protected void |
outputVertex(javax.vecmath.Point3f pt,
javax.vecmath.Point3f offset) |
protected void |
outputVertices(javax.vecmath.Point3f[] vertices,
int nVertices,
javax.vecmath.Point3f 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,
Font3D font3d) |
protected static java.lang.String |
rgbFractionalFromArgb(int argb,
char sep) |
protected java.lang.String |
rgbFractionalFromColix(short colix,
char sep) |
protected static java.lang.String |
round(double number) |
protected static java.lang.String |
round(javax.vecmath.Tuple3f pt) |
(package private) void |
setRenderer(JmolRendererInterface jmolRenderer) |
protected static void |
setTempVertex(javax.vecmath.Point3f pt,
javax.vecmath.Point3f offset,
javax.vecmath.Point3f ptTemp) |
protected static java.lang.String |
translucencyFractionalFromColix(short colix) |
protected Viewer viewer
protected double privateKey
protected JmolRendererInterface jmolRenderer
protected java.lang.StringBuffer 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 Graphics3D g3d
protected short backgroundColix
protected int screenWidth
protected int screenHeight
protected int slabZ
protected int depthZ
protected javax.vecmath.Point3f lightSource
protected javax.vecmath.Point3f fixedRotationCenter
protected javax.vecmath.Point3f referenceCenter
protected javax.vecmath.Point3f cameraPosition
protected float cameraDistance
protected float aperatureAngle
protected float scalePixelsPerAngstrom
int exportType
protected static final float degreesPerRadian
protected final javax.vecmath.Point3f tempP1
protected final javax.vecmath.Point3f tempP2
protected final javax.vecmath.Point3f tempP3
protected final javax.vecmath.Point3f center
protected final javax.vecmath.Vector3f tempV1
protected final javax.vecmath.Vector3f tempV2
protected final javax.vecmath.Vector3f tempV3
protected final javax.vecmath.AxisAngle4f tempA
protected int nBytes
protected java.lang.String commentChar
private int nText
private int nImage
public short lineWidthMad
void setRenderer(JmolRendererInterface jmolRenderer)
boolean initializeOutput(Viewer viewer, double privateKey, Graphics3D g3d, java.lang.Object output)
protected abstract void outputHeader()
protected void output(java.lang.String data)
protected void outputComment(java.lang.String comment)
protected static void setTempVertex(javax.vecmath.Point3f pt, javax.vecmath.Point3f offset, javax.vecmath.Point3f ptTemp)
protected void outputVertices(javax.vecmath.Point3f[] vertices, int nVertices, javax.vecmath.Point3f offset)
protected void outputVertex(javax.vecmath.Point3f pt, javax.vecmath.Point3f offset)
protected abstract void output(javax.vecmath.Tuple3f pt)
protected void outputJmolPerspective()
protected java.lang.String getJmolPerspective()
protected void outputFooter()
java.lang.String finalizeOutput()
protected static java.lang.String getExportDate()
protected java.lang.String rgbFractionalFromColix(short colix, char sep)
protected static java.lang.String rgbFractionalFromArgb(int argb, char sep)
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(javax.vecmath.Tuple3f pt)
protected java.util.List<java.lang.Short> getColorList(int i00, short[] colixes, int nVertices, java.util.BitSet bsSelected, java.util.Map<java.lang.Short,java.lang.Integer> htColixes)
i00
- colixes
- nVertices
- bsSelected
- htColixes
- protected static MeshSurface getConeMesh(javax.vecmath.Point3f centerBase, javax.vecmath.Matrix3f matRotateScale, short colix)
protected javax.vecmath.Matrix3f getRotationMatrix(javax.vecmath.Point3f pt1, javax.vecmath.Point3f pt2, float radius)
protected javax.vecmath.Matrix3f getRotationMatrix(javax.vecmath.Point3f pt1, javax.vecmath.Point3f ptZ, float radius, javax.vecmath.Point3f ptX, javax.vecmath.Point3f ptY)
abstract void drawAtom(Atom atom)
abstract void drawCircle(int x, int y, int z, int diameter, short colix, boolean doFill)
abstract boolean drawEllipse(javax.vecmath.Point3f ptAtom, javax.vecmath.Point3f ptX, javax.vecmath.Point3f ptY, short colix, boolean doFill)
void drawSurface(MeshSurface meshSurface, short colix)
protected void outputSurface(javax.vecmath.Point3f[] vertices, javax.vecmath.Vector3f[] normals, short[] colixes, int[][] indices, short[] polygonColixes, int nVertices, int nPolygons, int nFaces, java.util.BitSet bsPolygons, int faceVertexMax, short colix, java.util.List<java.lang.Short> colorList, java.util.Map<java.lang.Short,java.lang.Integer> htColixes, javax.vecmath.Point3f 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, javax.vecmath.Point3f screenBase, javax.vecmath.Point3f screenTip, boolean isBarb)
abstract void drawCylinder(javax.vecmath.Point3f atom1, javax.vecmath.Point3f atom2, short colix1, short colix2, byte endcaps, int madBond, int bondOrder)
abstract void fillCylinderScreenMad(short colix, byte endcaps, int diameter, javax.vecmath.Point3f screenA, javax.vecmath.Point3f screenB)
abstract void fillCylinderScreen(short colix, byte endcaps, int screenDiameter, javax.vecmath.Point3f screenA, javax.vecmath.Point3f screenB)
abstract void fillEllipsoid(javax.vecmath.Point3f center, javax.vecmath.Point3f[] points, short colix, int x, int y, int z, int diameter, javax.vecmath.Matrix3f toEllipsoidal, double[] coef, javax.vecmath.Matrix4f deriv, javax.vecmath.Point3i[] octantPoints)
void drawFilledCircle(short colixRing, short colixFill, int diameter, int x, int y, int z)
abstract void fillSphere(short colix, int diameter, javax.vecmath.Point3f pt)
protected abstract void fillTriangle(short colix, javax.vecmath.Point3f ptA, javax.vecmath.Point3f ptB, javax.vecmath.Point3f 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, Font3D font3d)