org.jmol.export
Class _VrmlExporter
java.lang.Object
org.jmol.export.___Exporter
org.jmol.export.__CartesianExporter
org.jmol.export._VrmlExporter
- Direct Known Subclasses:
- _X3dExporter
public class _VrmlExporter
- extends __CartesianExporter
Fields inherited from class org.jmol.export.___Exporter |
aperatureAngle, backgroundColix, bw, cameraDistance, cameraPosition, center, commandLineOptions, commentChar, degreesPerRadian, depthZ, exportType, fileName, fixedRotationCenter, g3d, isToFile, jmolRenderer, lightSource, lineWidthMad, nBytes, output, privateKey, referenceCenter, scalePixelsPerAngstrom, screenHeight, screenWidth, slabZ, tempA, tempP1, tempP2, tempP3, tempV1, tempV2, tempV3, viewer |
Method Summary |
protected void |
output(javax.vecmath.Tuple3f pt)
|
protected void |
outputAppearance(short colix,
boolean isText)
|
protected void |
outputCircle(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
float radius,
short colix,
boolean doFill)
|
protected void |
outputColorIndices(int[][] indices,
int nPolygons,
java.util.BitSet bsPolygons,
int faceVertexMax,
java.util.Map<java.lang.Short,java.lang.Integer> htColixes,
short[] colixes,
short[] polygonColixes)
|
protected void |
outputColors(java.util.List<java.lang.Short> colorList)
|
protected void |
outputCone(javax.vecmath.Point3f ptBase,
javax.vecmath.Point3f ptTip,
float radius,
short colix)
|
protected boolean |
outputCylinder(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
short colix,
byte endcaps,
float radius,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY)
|
private void |
outputCylinderChild(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
short colix,
byte endcaps,
float radius)
|
protected void |
outputEllipsoid(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f[] points,
short colix)
|
protected void |
outputFace(int[] face,
int[] map,
int faceVertexMax)
|
protected void |
outputFooter()
|
protected void |
outputHeader()
|
protected void |
outputNormals(java.util.List<java.lang.String> vNormals)
|
protected void |
outputQuaternionFrame(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY,
javax.vecmath.Point3f ptZ,
float yScale,
java.lang.String pre,
java.lang.String post)
|
protected void |
outputSphere(javax.vecmath.Point3f ptCenter,
float radius,
short colix)
|
protected void |
outputSphereChild(javax.vecmath.Point3f ptCenter,
float radius,
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)
|
protected void |
outputTextPixel(javax.vecmath.Point3f pt,
int argb)
|
private void |
outputTransRot(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
int x,
int y,
int z)
|
protected void |
outputTransRot(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
int x,
int y,
int z,
java.lang.String pre,
java.lang.String post)
|
protected void |
outputTriangle(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
javax.vecmath.Point3f pt3,
short colix)
|
(package private) void |
plotText(int x,
int y,
int z,
short colix,
java.lang.String text,
Font3D font3d)
|
Methods inherited from class org.jmol.export.__CartesianExporter |
drawAtom, drawCircle, drawCylinder, drawEllipse, drawPixel, drawTextPixel, fillConeScreen, fillCylinderScreen, fillCylinderScreenMad, fillEllipsoid, fillSphere, fillTriangle, getCameraPosition, getCoordinateMap, getModelCenter, getNormalMap, outputIndices, plotImage, setSphereMatrix |
Methods inherited from class org.jmol.export.___Exporter |
drawFilledCircle, drawSurface, finalizeOutput, getColorList, getConeMesh, getExportDate, getJmolPerspective, getRotationMatrix, getRotationMatrix, initializeOutput, opacityFractionalFromArgb, opacityFractionalFromColix, output, outputComment, outputJmolPerspective, outputVertex, outputVertices, rgbFractionalFromArgb, rgbFractionalFromColix, round, round, setRenderer, setTempVertex, translucencyFractionalFromColix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useTable
protected UseTable useTable
tempQ1
private javax.vecmath.Point3f tempQ1
tempQ2
private javax.vecmath.Point3f tempQ2
htSpheresRendered
private java.util.Map<java.lang.String,java.lang.Boolean> htSpheresRendered
_VrmlExporter
public _VrmlExporter()
output
protected void output(javax.vecmath.Tuple3f pt)
- Specified by:
output
in class ___Exporter
outputHeader
protected void outputHeader()
- Specified by:
outputHeader
in class ___Exporter
outputFooter
protected void outputFooter()
- Overrides:
outputFooter
in class ___Exporter
outputAppearance
protected void outputAppearance(short colix,
boolean isText)
outputCircle
protected void outputCircle(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
float radius,
short colix,
boolean doFill)
- Specified by:
outputCircle
in class __CartesianExporter
outputCone
protected void outputCone(javax.vecmath.Point3f ptBase,
javax.vecmath.Point3f ptTip,
float radius,
short colix)
- Specified by:
outputCone
in class __CartesianExporter
outputCylinder
protected boolean outputCylinder(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
short colix,
byte endcaps,
float radius,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY)
- Specified by:
outputCylinder
in class __CartesianExporter
outputCylinderChild
private void outputCylinderChild(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
short colix,
byte endcaps,
float radius)
outputEllipsoid
protected void outputEllipsoid(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f[] points,
short colix)
- Specified by:
outputEllipsoid
in class __CartesianExporter
outputQuaternionFrame
protected void outputQuaternionFrame(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY,
javax.vecmath.Point3f ptZ,
float yScale,
java.lang.String pre,
java.lang.String post)
outputSurface
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)
- Overrides:
outputSurface
in class ___Exporter
- 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 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 colorList
outputFace
protected void outputFace(int[] face,
int[] map,
int faceVertexMax)
- Specified by:
outputFace
in class __CartesianExporter
outputNormals
protected void outputNormals(java.util.List<java.lang.String> vNormals)
outputColors
protected void outputColors(java.util.List<java.lang.Short> colorList)
outputColorIndices
protected void outputColorIndices(int[][] indices,
int nPolygons,
java.util.BitSet bsPolygons,
int faceVertexMax,
java.util.Map<java.lang.Short,java.lang.Integer> htColixes,
short[] colixes,
short[] polygonColixes)
outputSphere
protected void outputSphere(javax.vecmath.Point3f ptCenter,
float radius,
short colix)
- Specified by:
outputSphere
in class __CartesianExporter
outputSphereChild
protected void outputSphereChild(javax.vecmath.Point3f ptCenter,
float radius,
short colix)
outputTextPixel
protected void outputTextPixel(javax.vecmath.Point3f pt,
int argb)
- Specified by:
outputTextPixel
in class __CartesianExporter
outputTransRot
private void outputTransRot(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
int x,
int y,
int z)
outputTransRot
protected void outputTransRot(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
int x,
int y,
int z,
java.lang.String pre,
java.lang.String post)
outputTriangle
protected void outputTriangle(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
javax.vecmath.Point3f pt3,
short colix)
- Specified by:
outputTriangle
in class __CartesianExporter
plotText
void plotText(int x,
int y,
int z,
short colix,
java.lang.String text,
Font3D font3d)
- Overrides:
plotText
in class __CartesianExporter