org.jmol.export
public final class Export3D extends Object implements JmolRendererInterface
Field Summary | |
---|---|
short | colix |
JmolExportInterface | exporter |
Graphics3D | g3d |
int | height |
Hermite3D | hermite3d |
Point3f | ptA |
Point3i | ptAi |
Point3f | ptB |
Point3i | ptBi |
Point3f | ptC |
Point3f | ptD |
int | slab |
int | width |
Constructor Summary | |
---|---|
Export3D() |
Method Summary | |
---|---|
int | calcSurfaceShade(Point3i pointA, Point3i pointB, Point3i pointC) |
boolean | checkTranslucent(boolean isAlphaTranslucent) |
void | drawCircleCentered(short colix, int diameter, int x, int y, int z, boolean doFill)
draws a simple circle (draw circle)
|
void | drawCylinderTriangle(int xA, int yA, int zA, int xB, int yB, int zB, int xC, int yC, int zC, int diameter) |
void | drawDashedLine(int run, int rise, Point3i pointA, Point3i pointB) |
void | drawDottedLine(Point3i pointA, Point3i pointB) |
void | drawfillTriangle(int xA, int yA, int zA, int xB, int yB, int zB, int xC, int yC, int zC) |
void | drawHermite(int tension, Point3i s0, Point3i s1, Point3i s2, Point3i s3) |
void | drawHermite(boolean fill, boolean border, int tension, Point3i s0, Point3i s1, Point3i s2, Point3i s3, Point3i s4, Point3i s5, Point3i s6, Point3i s7, int aspectRatio) |
void | drawHLine(int x, int y, int z, int w) |
void | drawImage(Image image, int x, int y, int z, int zSlab, short bgcolix, int width, int height) |
void | drawLine(int x1, int y1, int z1, int x2, int y2, int z2) |
void | drawLine(short colixA, short colixB, int xA, int yA, int zA, int xB, int yB, int zB) |
void | drawLine(Point3i pointA, Point3i pointB) |
void | drawPixel(int x, int y, int z) |
void | drawPoints(int count, int[] coordinates) |
void | drawQuadrilateral(short colix, Point3i pointA, Point3i pointB, Point3i pointC, Point3i screenD) |
void | drawRect(int x, int y, int z, int zSlab, int rWidth, int rHeight)
draws a rectangle
|
void | drawString(String str, Font3D font3d, int xBaseline, int yBaseline, int z, int zSlab)
draws the specified string in the current font.
no line wrapping -- axis, labels, measures
|
void | drawStringNoSlab(String str, Font3D font3d, int xBaseline, int yBaseline, int z)
draws the specified string in the current font.
no line wrapping -- echo, frank, hover, molecularOrbital, uccage
|
void | drawTriangle(Point3i pointA, short colixA, Point3i pointB, short colixB, Point3i pointC, short colixC, int check) |
void | drawTriangle(Point3i pointA, Point3i pointB, Point3i pointC, int check) |
void | drawVLine(int x, int y, int z, int h) |
void | fillCone(byte endcap, int diameter, Point3i pointBase, Point3i screenTip) |
void | fillCone(byte endcap, int diameter, Point3f pointBase, Point3f screenTip) |
void | fillCylinder(short colixA, short colixB, byte endcaps, int mad, int xA, int yA, int zA, int xB, int yB, int zB) |
void | fillCylinder(byte endcaps, int mad, int xA, int yA, int zA, int xB, int yB, int zB) |
void | fillCylinder(byte endcaps, int diameter, Point3i pointA, Point3i pointB) |
void | fillCylinderBits(byte endcaps, int diameter, Point3f pointA, Point3f pointB) |
void | fillHermite(int tension, int diameterBeg, int diameterMid, int diameterEnd, Point3i s0, Point3i s1, Point3i s2, Point3i s3) |
void | fillQuadrilateral(Point3f pointA, Point3f pointB, Point3f pointC, Point3f pointD) |
void | fillQuadrilateral(Point3i pointA, short colixA, short normixA, Point3i pointB, short colixB, short normixB, Point3i pointC, short colixC, short normixC, Point3i screenD, short colixD, short normixD) |
void | fillRect(int x, int y, int z, int zSlab, int widthFill, int heightFill)
fills background rectangle for label
|
void | fillScreenedCircleCentered(short colixFill, int diameter, int x, int y, int z)
draws a screened circle ... every other dot is turned on
|
void | fillSphereCentered(int diameter, int x, int y, int z)
fills a solid sphere
|
void | fillSphereCentered(int diameter, Point3i center)
fills a solid sphere
|
void | fillSphereCentered(int diameter, Point3f center)
fills a solid sphere
|
void | fillTriangle(Point3i pointA, int intensityA, Point3i pointB, int intensityB, Point3i pointC, int intensityC) |
void | fillTriangle(Point3i pointA, short colixA, short normixA, Point3i pointB, short colixB, short normixB, Point3i pointC, short colixC, short normixC) |
void | fillTriangle(short normix, int xpointA, int ypointA, int zpointA, int xpointB, int ypointB, int zpointB, int xpointC, int ypointC, int zpointC) |
void | fillTriangle(Point3f pointA, Point3f pointB, Point3f pointC) |
void | fillTriangle(Point3i pointA, Point3i pointB, Point3i pointC) |
void | fillTriangle(Point3i pointA, short colixA, short normixA, Point3i pointB, short colixB, short normixB, Point3i pointC, short colixC, short normixC, float factor) |
int | getColixArgb(short colix) |
int | getDepth()
gets g3d depth
|
JmolExportInterface | getExporter() |
Font3D | getFont3DCurrent() |
Font3D | getFont3DScaled(Font3D font, float scale) |
byte | getFontFid(String fontFace, float fontSize) |
byte | getFontFid(float fontSize) |
String | getHexColorFromIndex(short colix) |
short | getInverseNormix(short normix) |
short | getNormix(Vector3f vector) |
Vector3f | getNormixVector(short normix) |
int | getRenderHeight()
gets g3d height
|
int | getRenderWidth()
gets g3d width
|
int | getSlab()
gets g3d slab
|
Vector3f[] | getTransformedVertexVectors() |
boolean | haveTranslucentObjects() |
boolean | isAntialiased()
is full scene / oversampling antialiasing in effect
|
boolean | isClippedXY(int diameter, int x, int y) |
boolean | isClippedZ(int z) |
boolean | isDirectedTowardsCamera(short normix) |
boolean | isInDisplayRange(int x, int y) |
void | plotPixelClipped(int x, int y, int z) |
void | plotPixelClipped(Point3i screen) |
void | plotPixelClippedNoSlab(int argb, int x, int y, int z) |
void | renderBackground() |
void | renderEllipsoid(int x, int y, int z, int diameter, Matrix3f mToEllipsoidal, double[] coef, Matrix4f mDeriv, int selectedOctant, Point3i[] octantPoints) |
void | renderIsosurface(Point3f[] vertices, short colix, short[] colixes, Vector3f[] normals, int[][] indices, BitSet bsFaces, int nVertices, int faceVertexMax) |
boolean | setColix(short colix)
sets current color from colix color index |
void | setFont(byte fid) |
void | setg3dExporter(Graphics3D g3d, JmolExportInterface exporter) |
void | setRenderer(ShapeRenderer shapeRenderer) |
void | setSlab(int slabValue) |
Parameters: colix the color index diameter the pixel diameter x center x y center y z center z doFill (not implemented in exporters)
Parameters: x upper left x y upper left y z upper left z zSlab z for slab check (for set labelsFront) rWidth pixel count rHeight pixel count
Parameters: str the String font3d the Font3D xBaseline baseline x yBaseline baseline y z baseline z zSlab z for slab calculation
Parameters: str the String font3d the Font3D xBaseline baseline x yBaseline baseline y z baseline z
Parameters: x upper left x y upper left y z upper left z zSlab z value for slabbing widthFill pixel count heightFill pixel count
Parameters: colixFill the color index diameter the pixel diameter x center x y center y z center z
Parameters: diameter pixel count x center x y center y z center z
Parameters: diameter pixel count center javax.vecmath.Point3i defining the center
Parameters: diameter pixel count center a javax.vecmath.Point3f ... floats are casted to ints
Returns: depth
Returns: height pixel count
Returns: width pixel count;
Returns: slab
Returns: the answer
Parameters: colix the color index
Returns: true or false if this is the right pass