public class JSExporter extends CartesianExporter
| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.Object |
applet |
private java.util.Map<java.lang.String,java.lang.Object[]> |
htObjects |
private java.util.Map<java.lang.String,java.lang.Boolean> |
htSpheresRendered |
private java.lang.String[] |
ret |
private UseTable |
useTable |
viewpointaperatureAngle, appletName, backgroundColix, bw, cameraDistance, cameraPosition, center, commandLineOptions, degreesPerRadian, depthZ, exportType, fileName, fixedRotationCenter, g3d, isToFile, jmolRenderer, lineWidthMad, nBytes, output, privateKey, referenceCenter, scalePixelsPerAngstrom, screenHeight, screenWidth, slabZ, tempA, tempP1, tempP2, tempP3, tempV1, tempV2, tempV3, viewer| Constructor and Description |
|---|
JSExporter() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Integer |
getColor(short colix) |
private int[] |
getColors(short[] colixes) |
private void |
jsCylinder(java.lang.Object applet,
java.lang.String id,
boolean isNew,
P3 pt1,
P3 pt2,
java.lang.Object[] o) |
private void |
jsSphere(java.lang.Object applet,
java.lang.String id,
boolean isNew,
P3 pt,
java.lang.Object[] o) |
protected void |
jsSurface(java.lang.Object applet,
P3[] vertices,
V3[] normals,
int[][] indices,
int nVertices,
int nPolygons,
int nFaces,
BS bsPolygons,
int faceVertexMax,
int color,
int[] vertexColors,
int[] polygonColors) |
(package private) void |
jsTriangle(java.lang.Object applet,
int color,
P3 pt1,
P3 pt2,
P3 pt3) |
protected void |
output(Tuple3f pt) |
protected void |
outputCircle(P3 pt1,
P3 pt2,
float radius,
short colix,
boolean doFill) |
protected void |
outputCone(P3 ptBase,
P3 ptTip,
float radius,
short colix) |
protected boolean |
outputCylinder(P3 ptCenter,
P3 pt1,
P3 pt2,
short colix,
byte endcaps,
float radius,
P3 ptX,
P3 ptY,
boolean checkRadius) |
protected void |
outputEllipsoid(P3 center,
P3[] points,
short colix) |
protected void |
outputFooter() |
protected void |
outputHeader() |
protected void |
outputSphere(P3 ptCenter,
float radius,
short colix,
boolean checkRadius) |
protected void |
outputSurface(P3[] vertices,
V3[] normals,
short[] vertexColixes,
int[][] indices,
short[] polygonColixes,
int nVertices,
int nPolygons,
int nFaces,
BS bsPolygons,
int faceVertexMax,
short colix,
P3 offset) |
protected void |
outputTriangle(P3 pt1,
P3 pt2,
P3 pt3,
short colix) |
(package private) void |
plotText(int x,
int y,
int z,
short colix,
java.lang.String text,
JmolFont font3d) |
drawAtom, drawCircle, drawCylinder, drawEllipse, drawPixel, fillConeScreen, fillCylinderScreen, fillCylinderScreenMad, fillEllipsoid, fillSphere, fillTriangle, getCameraPosition, getCoordinateMap, getModelCenter, getNormalMap, outputFace, outputIndicesdrawFilledCircle, drawSurface, finalizeOutput, getTriad, initializeOutput, output, outputVertex, outputVertices, plotImage, round, round, setRenderer, setTempVertexprivate UseTable useTable
private java.util.Map<java.lang.String,java.lang.Boolean> htSpheresRendered
private java.util.Map<java.lang.String,java.lang.Object[]> htObjects
java.lang.Object applet
private java.lang.String[] ret
protected void outputHeader()
outputHeader in class Exporterprotected void outputFooter()
outputFooter in class Exporterprivate void jsSphere(java.lang.Object applet,
java.lang.String id,
boolean isNew,
P3 pt,
java.lang.Object[] o)
private void jsCylinder(java.lang.Object applet,
java.lang.String id,
boolean isNew,
P3 pt1,
P3 pt2,
java.lang.Object[] o)
void jsTriangle(java.lang.Object applet,
int color,
P3 pt1,
P3 pt2,
P3 pt3)
applet - color - pt1 - pt2 - pt3 - protected void outputSphere(P3 ptCenter, float radius, short colix, boolean checkRadius)
outputSphere in class CartesianExporterprotected boolean outputCylinder(P3 ptCenter, P3 pt1, P3 pt2, short colix, byte endcaps, float radius, P3 ptX, P3 ptY, boolean checkRadius)
outputCylinder in class CartesianExporterprotected void outputCircle(P3 pt1, P3 pt2, float radius, short colix, boolean doFill)
outputCircle in class CartesianExporterprotected void outputEllipsoid(P3 center, P3[] points, short colix)
outputEllipsoid in class CartesianExporterprotected void outputCone(P3 ptBase, P3 ptTip, float radius, short colix)
outputCone in class CartesianExporterprivate java.lang.Integer getColor(short colix)
protected void outputSurface(P3[] vertices, V3[] normals, short[] vertexColixes, int[][] indices, short[] polygonColixes, int nVertices, int nPolygons, int nFaces, BS bsPolygons, int faceVertexMax, short colix, P3 offset)
outputSurface in class Exportervertices - generally unique vertices [0:nVertices)normals - one per vertexvertexColixes - 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 indexprotected void jsSurface(java.lang.Object applet,
P3[] vertices,
V3[] normals,
int[][] indices,
int nVertices,
int nPolygons,
int nFaces,
BS bsPolygons,
int faceVertexMax,
int color,
int[] vertexColors,
int[] polygonColors)
applet - vertices - normals - indices - nVertices - nPolygons - nFaces - bsPolygons - faceVertexMax - color - vertexColors - polygonColors - private int[] getColors(short[] colixes)
protected void outputTriangle(P3 pt1, P3 pt2, P3 pt3, short colix)
outputTriangle in class CartesianExporter