org.jmol.export
Class _PovrayExporter
java.lang.Object
org.jmol.export._Exporter
org.jmol.export._PovrayExporter
public class _PovrayExporter
- extends _Exporter
Fields inherited from class org.jmol.export._Exporter |
bw, canDoTriangles, center, commandLineOptions, degreesPerRadian, depthZ, fileName, g3d, isCartesianExport, isToFile, jmolRenderer, output, pt, screenHeight, screenWidth, slabZ, tempA, tempP1, tempP2, tempP3, tempV1, tempV2, tempV3, use2dBondOrderCalculation, viewer |
Method Summary |
private java.lang.String |
color4(short colix)
|
void |
drawCircleCentered(short colix,
int diameter,
int x,
int y,
int z,
boolean doFill)
|
void |
drawPixel(short colix,
int x,
int y,
int z)
|
void |
drawString(short colix,
java.lang.String str,
Font3D font3d,
int xBaseline,
int yBaseline,
int z,
int zSlab)
|
void |
drawTextPixel(int argb,
int x,
int y,
int z)
|
void |
endShapeBuffer()
|
void |
fillCone(short colix,
byte endcap,
int diameter,
javax.vecmath.Point3f screenBase,
javax.vecmath.Point3f screenTip)
|
void |
fillCylinder(javax.vecmath.Point3f atom1,
javax.vecmath.Point3f atom2,
short colix1,
short colix2,
byte endcaps,
int madBond,
int bondOrder)
|
void |
fillCylinder(short colix,
byte endcaps,
int diameter,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB)
|
void |
fillScreenedCircleCentered(short colix,
int diameter,
int x,
int y,
int z)
|
private void |
fillSphereCentered(float diameter,
float x,
float y,
float z,
short colix)
|
void |
fillSphereCentered(short colix,
int diameter,
javax.vecmath.Point3f pt)
|
void |
fillTriangle(short colix,
javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
javax.vecmath.Point3f ptC)
|
java.lang.String |
finalizeOutput()
|
private java.lang.String |
getAuxiliaryFileData()
|
void |
getFooter()
|
void |
getHeader()
|
private javax.vecmath.Point3f |
getNormal(javax.vecmath.Point3f pt,
javax.vecmath.Vector3f normal)
|
private void |
output(java.lang.String data)
|
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)
|
void |
renderAtom(Atom atom,
short colix)
|
void |
renderCylinder(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
short colix,
byte endcaps,
int madBond)
|
void |
renderEllipsoid(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 |
renderIsosurface(javax.vecmath.Point3f[] vertices,
short colix,
short[] colixes,
javax.vecmath.Vector3f[] normals,
int[][] indices,
java.util.BitSet bsFaces,
int nVertices,
int faceVertexMax,
short[] polygonColixes,
int nPolygons)
|
private void |
renderJoint(javax.vecmath.Point3f pt,
short colix,
byte endcaps,
int madBond)
|
void |
renderText(Text t)
|
void |
startShapeBuffer(int iShape)
|
private java.lang.String |
triad(int[] i)
|
private java.lang.String |
triad(javax.vecmath.Tuple3f pt)
|
private void |
writeMacros()
|
private void |
writeMacrosAtom()
|
private void |
writeMacrosBond()
|
private void |
writeMacrosFinish()
|
private void |
writeMacrosTextPixel()
|
private void |
writeMacrosTriangle()
|
Methods inherited from class org.jmol.export._Exporter |
adjustViewpointPosition, getAxisAngle, getColorList, getExportDate, getFieldOfView, getRotation, getViewpointPosition, initializeOutput, opacityFractionalFromColix, rgbFractionalFromArgb, rgbFractionalFromColix, rgbFromColix, round, setRenderer, translucencyFractionalFromColix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nBytes
private int nBytes
isSlabEnabled
private boolean isSlabEnabled
nText
int nText
nImage
int nImage
_PovrayExporter
public _PovrayExporter()
output
private void output(java.lang.String data)
finalizeOutput
public java.lang.String finalizeOutput()
- Overrides:
finalizeOutput
in class _Exporter
getHeader
public void getHeader()
- Specified by:
getHeader
in class _Exporter
getFooter
public void getFooter()
- Specified by:
getFooter
in class _Exporter
writeMacros
private void writeMacros()
writeMacrosFinish
private void writeMacrosFinish()
writeMacrosAtom
private void writeMacrosAtom()
writeMacrosBond
private void writeMacrosBond()
writeMacrosTriangle
private void writeMacrosTriangle()
writeMacrosTextPixel
private void writeMacrosTextPixel()
triad
private java.lang.String triad(javax.vecmath.Tuple3f pt)
triad
private java.lang.String triad(int[] i)
color4
private java.lang.String color4(short colix)
getAuxiliaryFileData
private java.lang.String getAuxiliaryFileData()
renderAtom
public void renderAtom(Atom atom,
short colix)
- Specified by:
renderAtom
in class _Exporter
fillCylinder
public void fillCylinder(javax.vecmath.Point3f atom1,
javax.vecmath.Point3f atom2,
short colix1,
short colix2,
byte endcaps,
int madBond,
int bondOrder)
- Specified by:
fillCylinder
in class _Exporter
renderCylinder
public void renderCylinder(javax.vecmath.Point3f pt1,
javax.vecmath.Point3f pt2,
short colix,
byte endcaps,
int madBond)
renderJoint
private void renderJoint(javax.vecmath.Point3f pt,
short colix,
byte endcaps,
int madBond)
renderIsosurface
public void renderIsosurface(javax.vecmath.Point3f[] vertices,
short colix,
short[] colixes,
javax.vecmath.Vector3f[] normals,
int[][] indices,
java.util.BitSet bsFaces,
int nVertices,
int faceVertexMax,
short[] polygonColixes,
int nPolygons)
- Specified by:
renderIsosurface
in class _Exporter
getNormal
private javax.vecmath.Point3f getNormal(javax.vecmath.Point3f pt,
javax.vecmath.Vector3f normal)
fillCylinder
public void fillCylinder(short colix,
byte endcaps,
int diameter,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB)
- Specified by:
fillCylinder
in class _Exporter
drawCircleCentered
public void drawCircleCentered(short colix,
int diameter,
int x,
int y,
int z,
boolean doFill)
- Specified by:
drawCircleCentered
in class _Exporter
fillScreenedCircleCentered
public void fillScreenedCircleCentered(short colix,
int diameter,
int x,
int y,
int z)
- Specified by:
fillScreenedCircleCentered
in class _Exporter
drawPixel
public void drawPixel(short colix,
int x,
int y,
int z)
- Specified by:
drawPixel
in class _Exporter
drawTextPixel
public void drawTextPixel(int argb,
int x,
int y,
int z)
- Specified by:
drawTextPixel
in class _Exporter
fillTriangle
public void fillTriangle(short colix,
javax.vecmath.Point3f ptA,
javax.vecmath.Point3f ptB,
javax.vecmath.Point3f ptC)
- Specified by:
fillTriangle
in class _Exporter
fillCone
public void fillCone(short colix,
byte endcap,
int diameter,
javax.vecmath.Point3f screenBase,
javax.vecmath.Point3f screenTip)
- Specified by:
fillCone
in class _Exporter
fillSphereCentered
public void fillSphereCentered(short colix,
int diameter,
javax.vecmath.Point3f pt)
- Specified by:
fillSphereCentered
in class _Exporter
fillSphereCentered
private void fillSphereCentered(float diameter,
float x,
float y,
float z,
short colix)
plotText
public void plotText(int x,
int y,
int z,
short colix,
java.lang.String text,
Font3D font3d)
- Specified by:
plotText
in class _Exporter
plotImage
public void plotImage(int x,
int y,
int z,
java.awt.Image image,
short bgcolix,
int width,
int height)
- Specified by:
plotImage
in class _Exporter
renderEllipsoid
public void renderEllipsoid(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:
renderEllipsoid
in class _Exporter
renderText
public void renderText(Text t)
- Specified by:
renderText
in class _Exporter
drawString
public void drawString(short colix,
java.lang.String str,
Font3D font3d,
int xBaseline,
int yBaseline,
int z,
int zSlab)
- Specified by:
drawString
in class _Exporter
endShapeBuffer
public void endShapeBuffer()
- Specified by:
endShapeBuffer
in class _Exporter
startShapeBuffer
public void startShapeBuffer(int iShape)
- Specified by:
startShapeBuffer
in class _Exporter