org.jmol.export
Class __CartesianExporter
java.lang.Object
org.jmol.export.___Exporter
org.jmol.export.__CartesianExporter
- Direct Known Subclasses:
- _IdtfExporter, _MayaExporter, _VrmlExporter
public abstract class __CartesianExporter
- extends ___Exporter
Field Summary |
protected javax.vecmath.AxisAngle4f |
viewpoint
|
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, referenceCenter, scalePixelsPerAngstrom, screenHeight, screenWidth, slabZ, tempA, tempP1, tempP2, tempP3, tempV1, tempV2, tempV3, viewer |
Method Summary |
(package private) void |
drawAtom(Atom atom)
|
(package private) void |
drawCircle(int x,
int y,
int z,
int diameter,
short colix,
boolean doFill)
|
(package private) void |
drawCylinder(javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
short colix1,
short colix2,
byte endcaps,
int mad,
int bondOrder)
|
(package private) boolean |
drawEllipse(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY,
short colix,
boolean doFill)
|
(package private) void |
drawPixel(short colix,
int x,
int y,
int z,
int scale)
|
(package private) void |
drawTextPixel(int argb,
int x,
int y,
int z)
|
(package private) void |
fillConeScreen(short colix,
byte endcap,
int screenDiameter,
javax.vecmath.Point3f screenBase,
javax.vecmath.Point3f screenTip)
|
(package private) void |
fillCylinderScreen(short colix,
byte endcaps,
int screenDiameter,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB)
|
(package private) void |
fillCylinderScreenMad(short colix,
byte endcaps,
int mad,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB)
|
(package private) 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) void |
fillSphere(short colix,
int diameter,
javax.vecmath.Point3f pt)
|
protected void |
fillTriangle(short colix,
javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
javax.vecmath.Point3f ptC,
boolean twoSided)
|
protected javax.vecmath.Point3f |
getCameraPosition()
|
protected int |
getCoordinateMap(javax.vecmath.Point3f[] vertices,
int[] coordMap)
|
protected javax.vecmath.Point3f |
getModelCenter()
|
protected int[] |
getNormalMap(javax.vecmath.Vector3f[] normals,
int nNormals,
java.util.List vNormals)
|
protected abstract void |
outputCircle(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
float radius,
short colix,
boolean doFill)
|
protected abstract void |
outputCone(javax.vecmath.Point3f ptBase,
javax.vecmath.Point3f ptTip,
float radius,
short colix)
|
protected abstract boolean |
outputCylinder(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
short colix1,
byte endcaps,
float radius,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY)
|
protected abstract void |
outputEllipsoid(javax.vecmath.Point3f center,
javax.vecmath.Point3f[] points,
short colix)
|
protected abstract void |
outputFace(int[] is,
int[] coordMap,
int faceVertexMax)
|
protected void |
outputIndices(int[][] indices,
int[] map,
int nPolygons,
java.util.BitSet bsFaces,
int faceVertexMax)
|
protected abstract void |
outputSphere(javax.vecmath.Point3f ptAtom2,
float f,
short colix)
|
protected abstract void |
outputTextPixel(javax.vecmath.Point3f pt,
int argb)
|
protected abstract void |
outputTriangle(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
javax.vecmath.Point3f pt3,
short colix)
|
(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)
|
private void |
setTempPoints(javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
boolean isCartesian)
|
Methods inherited from class org.jmol.export.___Exporter |
drawFilledCircle, drawSurface, finalizeOutput, getColorList, getConeMesh, getExportDate, getJmolPerspective, getRotationMatrix, getRotationMatrix, initializeOutput, opacityFractionalFromArgb, opacityFractionalFromColix, output, output, outputComment, outputFooter, outputHeader, outputJmolPerspective, outputSurface, 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 |
viewpoint
protected javax.vecmath.AxisAngle4f viewpoint
__CartesianExporter
public __CartesianExporter()
getModelCenter
protected javax.vecmath.Point3f getModelCenter()
getCameraPosition
protected javax.vecmath.Point3f getCameraPosition()
setTempPoints
private void setTempPoints(javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
boolean isCartesian)
getCoordinateMap
protected int getCoordinateMap(javax.vecmath.Point3f[] vertices,
int[] coordMap)
getNormalMap
protected int[] getNormalMap(javax.vecmath.Vector3f[] normals,
int nNormals,
java.util.List vNormals)
outputIndices
protected void outputIndices(int[][] indices,
int[] map,
int nPolygons,
java.util.BitSet bsFaces,
int faceVertexMax)
outputFace
protected abstract void outputFace(int[] is,
int[] coordMap,
int faceVertexMax)
outputCircle
protected abstract void outputCircle(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
float radius,
short colix,
boolean doFill)
outputCone
protected abstract void outputCone(javax.vecmath.Point3f ptBase,
javax.vecmath.Point3f ptTip,
float radius,
short colix)
outputCylinder
protected abstract boolean outputCylinder(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
short colix1,
byte endcaps,
float radius,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY)
outputEllipsoid
protected abstract void outputEllipsoid(javax.vecmath.Point3f center,
javax.vecmath.Point3f[] points,
short colix)
outputSphere
protected abstract void outputSphere(javax.vecmath.Point3f ptAtom2,
float f,
short colix)
outputTextPixel
protected abstract void outputTextPixel(javax.vecmath.Point3f pt,
int argb)
outputTriangle
protected abstract void outputTriangle(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
javax.vecmath.Point3f pt3,
short colix)
drawAtom
void drawAtom(Atom atom)
- Specified by:
drawAtom
in class ___Exporter
drawCircle
void drawCircle(int x,
int y,
int z,
int diameter,
short colix,
boolean doFill)
- Specified by:
drawCircle
in class ___Exporter
drawEllipse
boolean drawEllipse(javax.vecmath.Point3f ptCenter,
javax.vecmath.Point3f ptX,
javax.vecmath.Point3f ptY,
short colix,
boolean doFill)
- Specified by:
drawEllipse
in class ___Exporter
drawPixel
void drawPixel(short colix,
int x,
int y,
int z,
int scale)
- Specified by:
drawPixel
in class ___Exporter
drawTextPixel
void drawTextPixel(int argb,
int x,
int y,
int z)
- Specified by:
drawTextPixel
in class ___Exporter
fillConeScreen
void fillConeScreen(short colix,
byte endcap,
int screenDiameter,
javax.vecmath.Point3f screenBase,
javax.vecmath.Point3f screenTip)
- Specified by:
fillConeScreen
in class ___Exporter
drawCylinder
void drawCylinder(javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
short colix1,
short colix2,
byte endcaps,
int mad,
int bondOrder)
- Specified by:
drawCylinder
in class ___Exporter
fillCylinderScreenMad
void fillCylinderScreenMad(short colix,
byte endcaps,
int mad,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB)
- Specified by:
fillCylinderScreenMad
in class ___Exporter
fillCylinderScreen
void fillCylinderScreen(short colix,
byte endcaps,
int screenDiameter,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB)
- Specified by:
fillCylinderScreen
in class ___Exporter
fillEllipsoid
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)
- Specified by:
fillEllipsoid
in class ___Exporter
fillSphere
void fillSphere(short colix,
int diameter,
javax.vecmath.Point3f pt)
- Specified by:
fillSphere
in class ___Exporter
fillTriangle
protected void fillTriangle(short colix,
javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
javax.vecmath.Point3f ptC,
boolean twoSided)
- Specified by:
fillTriangle
in class ___Exporter
plotImage
void plotImage(int x,
int y,
int z,
java.awt.Image image,
short bgcolix,
int width,
int height)
- Overrides:
plotImage
in class ___Exporter
plotText
void plotText(int x,
int y,
int z,
short colix,
java.lang.String text,
Font3D font3d)
- Overrides:
plotText
in class ___Exporter