org.jmol.export
Class Export3D

java.lang.Object
  extended by org.jmol.export.Export3D
All Implemented Interfaces:
JmolRendererInterface

public final class Export3D
extends java.lang.Object
implements JmolRendererInterface

Provides high-level graphics primitives for 3D graphics export.

Author:
hansonr, hansonr@stolaf.edu

Field Summary
private  short colix
           
private  _Exporter exporter
           
private  Graphics3D g3d
           
private  int height
           
private  Hermite3D hermite3d
           
private  javax.vecmath.Point3f ptA
           
private  javax.vecmath.Point3i ptAi
           
private  javax.vecmath.Point3f ptB
           
private  javax.vecmath.Point3i ptBi
           
private  javax.vecmath.Point3f ptC
           
private  javax.vecmath.Point3f ptD
           
private  int slab
           
private  int width
           
 
Constructor Summary
Export3D()
           
 
Method Summary
 int calcSurfaceShade(javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB, javax.vecmath.Point3i pointC)
           
 boolean canDoTriangles()
           
 boolean checkTranslucent(boolean isAlphaTranslucent)
           
 int clipCode(int x, int y, int z)
           
 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, javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB)
           
 void drawDottedLine(javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB)
           
 void drawfillTriangle(int xA, int yA, int zA, int xB, int yB, int zB, int xC, int yC, int zC)
           
 void drawHermite(boolean fill, boolean border, int tension, javax.vecmath.Point3i s0, javax.vecmath.Point3i s1, javax.vecmath.Point3i s2, javax.vecmath.Point3i s3, javax.vecmath.Point3i s4, javax.vecmath.Point3i s5, javax.vecmath.Point3i s6, javax.vecmath.Point3i s7, int aspectRatio)
           
 void drawHermite(int tension, javax.vecmath.Point3i s0, javax.vecmath.Point3i s1, javax.vecmath.Point3i s2, javax.vecmath.Point3i s3)
           
private  void drawHLine(int x, int y, int z, int w)
           
 void drawImage(java.awt.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(javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB)
           
 void drawLine(short colixA, short colixB, int xA, int yA, int zA, int xB, int yB, int zB)
           
 void drawPixel(int x, int y, int z)
           
 void drawPoints(int count, int[] coordinates)
           
 void drawQuadrilateral(short colix, javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB, javax.vecmath.Point3i pointC, javax.vecmath.Point3i screenD)
           
 void drawRect(int x, int y, int z, int zSlab, int rWidth, int rHeight)
          draws a rectangle
 void drawString(java.lang.String str, Font3D font3d, int xBaseline, int yBaseline, int z, int zSlab)
          draws the specified string in the current font.
 void drawStringNoSlab(java.lang.String str, Font3D font3d, int xBaseline, int yBaseline, int z)
          draws the specified string in the current font.
 void drawTriangle(javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB, javax.vecmath.Point3i pointC, int check)
           
 void drawTriangle(javax.vecmath.Point3i pointA, short colixA, javax.vecmath.Point3i pointB, short colixB, javax.vecmath.Point3i pointC, short colixC, int check)
           
private  void drawVLine(int x, int y, int z, int h)
           
 void endShapeBuffer()
           
 void fillCone(byte endcap, int diameter, javax.vecmath.Point3f pointBase, javax.vecmath.Point3f screenTip)
           
 void fillCone(byte endcap, int diameter, javax.vecmath.Point3i pointBase, javax.vecmath.Point3i screenTip)
           
 void fillCylinder(byte endcaps, int mad, int xA, int yA, int zA, int xB, int yB, int zB)
           
 void fillCylinder(byte endcaps, int diameter, javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB)
           
 void fillCylinder(short colixA, short colixB, byte endcaps, int mad, int xA, int yA, int zA, int xB, int yB, int zB)
           
 void fillCylinderBits(byte endcaps, int diameter, javax.vecmath.Point3f pointA, javax.vecmath.Point3f pointB)
           
 void fillHermite(int tension, int diameterBeg, int diameterMid, int diameterEnd, javax.vecmath.Point3i s0, javax.vecmath.Point3i s1, javax.vecmath.Point3i s2, javax.vecmath.Point3i s3)
           
 void fillQuadrilateral(javax.vecmath.Point3f pointA, javax.vecmath.Point3f pointB, javax.vecmath.Point3f pointC, javax.vecmath.Point3f pointD)
           
 void fillQuadrilateral(javax.vecmath.Point3i pointA, short colixA, short normixA, javax.vecmath.Point3i pointB, short colixB, short normixB, javax.vecmath.Point3i pointC, short colixC, short normixC, javax.vecmath.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 ...
 void fillSphereCentered(int diameter, int x, int y, int z)
          fills a solid sphere
 void fillSphereCentered(int diameter, javax.vecmath.Point3f center)
          fills a solid sphere
 void fillSphereCentered(int diameter, javax.vecmath.Point3i center)
          fills a solid sphere
 void fillTriangle(javax.vecmath.Point3f pointA, javax.vecmath.Point3f pointB, javax.vecmath.Point3f pointC)
           
 void fillTriangle(javax.vecmath.Point3i pointA, int intensityA, javax.vecmath.Point3i pointB, int intensityB, javax.vecmath.Point3i pointC, int intensityC)
           
 void fillTriangle(javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB, javax.vecmath.Point3i pointC)
           
 void fillTriangle(javax.vecmath.Point3i pointA, short colixA, short normixA, javax.vecmath.Point3i pointB, short colixB, short normixB, javax.vecmath.Point3i pointC, short colixC, short normixC)
           
 void fillTriangle(javax.vecmath.Point3i pointA, short colixA, short normixA, javax.vecmath.Point3i pointB, short colixB, short normixB, javax.vecmath.Point3i pointC, short colixC, short normixC, float factor)
           
 void fillTriangle(short normix, int xpointA, int ypointA, int zpointA, int xpointB, int ypointB, int zpointB, int xpointC, int ypointC, int zpointC)
           
 java.lang.String finalizeOutput()
           
 short[] getBgColixes(short[] bgcolixes)
           
 int getColixArgb(short colix)
           
 int getDepth()
          gets g3d depth
 _Exporter getExporter()
           
 Font3D getFont3DCurrent()
           
 Font3D getFont3DScaled(Font3D font, float scale)
           
 byte getFontFid(float fontSize)
           
 byte getFontFid(java.lang.String fontFace, float fontSize)
           
 java.lang.String getHexColorFromIndex(short colix)
           
 short getInverseNormix(short normix)
           
 short getNormix(javax.vecmath.Vector3f vector)
           
 javax.vecmath.Vector3f getNormixVector(short normix)
           
 int getRenderHeight()
          gets g3d height
 int getRenderWidth()
          gets g3d width
 int getSlab()
          gets g3d slab
 javax.vecmath.Vector3f[] getTransformedVertexVectors()
           
 boolean haveTranslucentObjects()
           
 boolean initializeExporter(java.lang.String type, Viewer viewer, Graphics3D g3d, java.lang.Object output)
           
 boolean isAntialiased()
          is full scene / oversampling antialiasing in effect
 boolean isCartesianExport()
           
protected  boolean isClipped(int x, int y)
           
 boolean isClipped(int x, int y, int z)
           
 boolean isClippedXY(int diameter, int x, int y)
           
 boolean isClippedZ(int z)
           
 boolean isDirectedTowardsCamera(short normix)
           
 boolean isInDisplayRange(int x, int y)
           
(package private)  void plotPixelClipped(int x, int y, int z)
           
 void plotPixelClipped(javax.vecmath.Point3i screen)
           
 void plotPixelClippedNoSlab(int argb, int x, int y, int z)
           
 void renderBackground()
           
 void renderEllipsoid(javax.vecmath.Point3f center, javax.vecmath.Point3f[] points, int x, int y, int z, int diameter, javax.vecmath.Matrix3f mToEllipsoidal, double[] coef, javax.vecmath.Matrix4f mDeriv, int selectedOctant, 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)
           
 boolean setColix(short colix)
          sets current color from colix color index
 void setFont(byte fid)
           
 void setSlab(int slabValue)
           
 void startShapeBuffer(int iShape)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exporter

private _Exporter exporter

g3d

private Graphics3D g3d

colix

private short colix

hermite3d

private Hermite3D hermite3d

width

private int width

height

private int height

slab

private int slab

ptA

private javax.vecmath.Point3f ptA

ptB

private javax.vecmath.Point3f ptB

ptC

private javax.vecmath.Point3f ptC

ptD

private javax.vecmath.Point3f ptD

ptAi

private javax.vecmath.Point3i ptAi

ptBi

private javax.vecmath.Point3i ptBi
Constructor Detail

Export3D

public Export3D()
Method Detail

getExporter

public _Exporter getExporter()

initializeExporter

public boolean initializeExporter(java.lang.String type,
                                  Viewer viewer,
                                  Graphics3D g3d,
                                  java.lang.Object output)
Specified by:
initializeExporter in interface JmolRendererInterface

finalizeOutput

public java.lang.String finalizeOutput()
Specified by:
finalizeOutput in interface JmolRendererInterface

canDoTriangles

public boolean canDoTriangles()
Specified by:
canDoTriangles in interface JmolRendererInterface

isCartesianExport

public boolean isCartesianExport()
Specified by:
isCartesianExport in interface JmolRendererInterface

setSlab

public void setSlab(int slabValue)
Specified by:
setSlab in interface JmolRendererInterface

renderBackground

public void renderBackground()
Specified by:
renderBackground in interface JmolRendererInterface

fillScreenedCircleCentered

public void fillScreenedCircleCentered(short colixFill,
                                       int diameter,
                                       int x,
                                       int y,
                                       int z)
draws a screened circle ... every other dot is turned on

Specified by:
fillScreenedCircleCentered in interface JmolRendererInterface
Parameters:
colixFill - the color index
diameter - the pixel diameter
x - center x
y - center y
z - center z

drawCircleCentered

public void drawCircleCentered(short colix,
                               int diameter,
                               int x,
                               int y,
                               int z,
                               boolean doFill)
draws a simple circle (draw circle)

Specified by:
drawCircleCentered in interface JmolRendererInterface
Parameters:
colix - the color index
diameter - the pixel diameter
x - center x
y - center y
z - center z
doFill - (not implemented in exporters)

fillSphereCentered

public void fillSphereCentered(int diameter,
                               int x,
                               int y,
                               int z)
fills a solid sphere

Specified by:
fillSphereCentered in interface JmolRendererInterface
Parameters:
diameter - pixel count
x - center x
y - center y
z - center z

fillSphereCentered

public void fillSphereCentered(int diameter,
                               javax.vecmath.Point3i center)
fills a solid sphere

Specified by:
fillSphereCentered in interface JmolRendererInterface
Parameters:
diameter - pixel count
center - javax.vecmath.Point3i defining the center

fillSphereCentered

public void fillSphereCentered(int diameter,
                               javax.vecmath.Point3f center)
fills a solid sphere

Specified by:
fillSphereCentered in interface JmolRendererInterface
Parameters:
diameter - pixel count
center - a javax.vecmath.Point3f ... floats are casted to ints

drawRect

public void drawRect(int x,
                     int y,
                     int z,
                     int zSlab,
                     int rWidth,
                     int rHeight)
draws a rectangle

Specified by:
drawRect in interface JmolRendererInterface
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

drawHLine

private void drawHLine(int x,
                       int y,
                       int z,
                       int w)

drawVLine

private void drawVLine(int x,
                       int y,
                       int z,
                       int h)

fillRect

public void fillRect(int x,
                     int y,
                     int z,
                     int zSlab,
                     int widthFill,
                     int heightFill)
fills background rectangle for label

Specified by:
fillRect in interface JmolRendererInterface
Parameters:
x - upper left x
y - upper left y
z - upper left z
zSlab - z value for slabbing
widthFill - pixel count
heightFill - pixel count

drawString

public void drawString(java.lang.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

Specified by:
drawString in interface JmolRendererInterface
Parameters:
str - the String
font3d - the Font3D
xBaseline - baseline x
yBaseline - baseline y
z - baseline z
zSlab - z for slab calculation

drawStringNoSlab

public void drawStringNoSlab(java.lang.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

Specified by:
drawStringNoSlab in interface JmolRendererInterface
Parameters:
str - the String
font3d - the Font3D
xBaseline - baseline x
yBaseline - baseline y
z - baseline z

drawImage

public void drawImage(java.awt.Image image,
                      int x,
                      int y,
                      int z,
                      int zSlab,
                      short bgcolix,
                      int width,
                      int height)
Specified by:
drawImage in interface JmolRendererInterface

drawPixel

public void drawPixel(int x,
                      int y,
                      int z)
Specified by:
drawPixel in interface JmolRendererInterface

plotPixelClipped

void plotPixelClipped(int x,
                      int y,
                      int z)

plotPixelClippedNoSlab

public void plotPixelClippedNoSlab(int argb,
                                   int x,
                                   int y,
                                   int z)
Specified by:
plotPixelClippedNoSlab in interface JmolRendererInterface

plotPixelClipped

public void plotPixelClipped(javax.vecmath.Point3i screen)
Specified by:
plotPixelClipped in interface JmolRendererInterface

drawPoints

public void drawPoints(int count,
                       int[] coordinates)
Specified by:
drawPoints in interface JmolRendererInterface

drawDashedLine

public void drawDashedLine(int run,
                           int rise,
                           javax.vecmath.Point3i pointA,
                           javax.vecmath.Point3i pointB)
Specified by:
drawDashedLine in interface JmolRendererInterface

drawDottedLine

public void drawDottedLine(javax.vecmath.Point3i pointA,
                           javax.vecmath.Point3i pointB)
Specified by:
drawDottedLine in interface JmolRendererInterface

drawLine

public void drawLine(int x1,
                     int y1,
                     int z1,
                     int x2,
                     int y2,
                     int z2)
Specified by:
drawLine in interface JmolRendererInterface

drawLine

public void drawLine(short colixA,
                     short colixB,
                     int xA,
                     int yA,
                     int zA,
                     int xB,
                     int yB,
                     int zB)
Specified by:
drawLine in interface JmolRendererInterface

drawLine

public void drawLine(javax.vecmath.Point3i pointA,
                     javax.vecmath.Point3i pointB)
Specified by:
drawLine in interface JmolRendererInterface

fillCylinder

public void fillCylinder(short colixA,
                         short colixB,
                         byte endcaps,
                         int mad,
                         int xA,
                         int yA,
                         int zA,
                         int xB,
                         int yB,
                         int zB)
Specified by:
fillCylinder in interface JmolRendererInterface

fillCylinder

public void fillCylinder(byte endcaps,
                         int mad,
                         int xA,
                         int yA,
                         int zA,
                         int xB,
                         int yB,
                         int zB)
Specified by:
fillCylinder in interface JmolRendererInterface

fillCylinder

public void fillCylinder(byte endcaps,
                         int diameter,
                         javax.vecmath.Point3i pointA,
                         javax.vecmath.Point3i pointB)
Specified by:
fillCylinder in interface JmolRendererInterface

fillCylinderBits

public void fillCylinderBits(byte endcaps,
                             int diameter,
                             javax.vecmath.Point3f pointA,
                             javax.vecmath.Point3f pointB)
Specified by:
fillCylinderBits in interface JmolRendererInterface

fillCone

public void fillCone(byte endcap,
                     int diameter,
                     javax.vecmath.Point3i pointBase,
                     javax.vecmath.Point3i screenTip)
Specified by:
fillCone in interface JmolRendererInterface

fillCone

public void fillCone(byte endcap,
                     int diameter,
                     javax.vecmath.Point3f pointBase,
                     javax.vecmath.Point3f screenTip)
Specified by:
fillCone in interface JmolRendererInterface

drawHermite

public void drawHermite(int tension,
                        javax.vecmath.Point3i s0,
                        javax.vecmath.Point3i s1,
                        javax.vecmath.Point3i s2,
                        javax.vecmath.Point3i s3)
Specified by:
drawHermite in interface JmolRendererInterface

drawHermite

public void drawHermite(boolean fill,
                        boolean border,
                        int tension,
                        javax.vecmath.Point3i s0,
                        javax.vecmath.Point3i s1,
                        javax.vecmath.Point3i s2,
                        javax.vecmath.Point3i s3,
                        javax.vecmath.Point3i s4,
                        javax.vecmath.Point3i s5,
                        javax.vecmath.Point3i s6,
                        javax.vecmath.Point3i s7,
                        int aspectRatio)
Specified by:
drawHermite in interface JmolRendererInterface

fillHermite

public void fillHermite(int tension,
                        int diameterBeg,
                        int diameterMid,
                        int diameterEnd,
                        javax.vecmath.Point3i s0,
                        javax.vecmath.Point3i s1,
                        javax.vecmath.Point3i s2,
                        javax.vecmath.Point3i s3)
Specified by:
fillHermite in interface JmolRendererInterface

drawTriangle

public void drawTriangle(javax.vecmath.Point3i pointA,
                         short colixA,
                         javax.vecmath.Point3i pointB,
                         short colixB,
                         javax.vecmath.Point3i pointC,
                         short colixC,
                         int check)
Specified by:
drawTriangle in interface JmolRendererInterface

drawTriangle

public void drawTriangle(javax.vecmath.Point3i pointA,
                         javax.vecmath.Point3i pointB,
                         javax.vecmath.Point3i pointC,
                         int check)
Specified by:
drawTriangle in interface JmolRendererInterface

drawCylinderTriangle

public void drawCylinderTriangle(int xA,
                                 int yA,
                                 int zA,
                                 int xB,
                                 int yB,
                                 int zB,
                                 int xC,
                                 int yC,
                                 int zC,
                                 int diameter)
Specified by:
drawCylinderTriangle in interface JmolRendererInterface

drawfillTriangle

public void drawfillTriangle(int xA,
                             int yA,
                             int zA,
                             int xB,
                             int yB,
                             int zB,
                             int xC,
                             int yC,
                             int zC)
Specified by:
drawfillTriangle in interface JmolRendererInterface

fillTriangle

public void fillTriangle(javax.vecmath.Point3i pointA,
                         int intensityA,
                         javax.vecmath.Point3i pointB,
                         int intensityB,
                         javax.vecmath.Point3i pointC,
                         int intensityC)
Specified by:
fillTriangle in interface JmolRendererInterface

fillTriangle

public void fillTriangle(javax.vecmath.Point3i pointA,
                         short colixA,
                         short normixA,
                         javax.vecmath.Point3i pointB,
                         short colixB,
                         short normixB,
                         javax.vecmath.Point3i pointC,
                         short colixC,
                         short normixC)
Specified by:
fillTriangle in interface JmolRendererInterface

fillTriangle

public void fillTriangle(short normix,
                         int xpointA,
                         int ypointA,
                         int zpointA,
                         int xpointB,
                         int ypointB,
                         int zpointB,
                         int xpointC,
                         int ypointC,
                         int zpointC)
Specified by:
fillTriangle in interface JmolRendererInterface

fillTriangle

public void fillTriangle(javax.vecmath.Point3f pointA,
                         javax.vecmath.Point3f pointB,
                         javax.vecmath.Point3f pointC)
Specified by:
fillTriangle in interface JmolRendererInterface

fillTriangle

public void fillTriangle(javax.vecmath.Point3i pointA,
                         javax.vecmath.Point3i pointB,
                         javax.vecmath.Point3i pointC)
Specified by:
fillTriangle in interface JmolRendererInterface

fillTriangle

public void fillTriangle(javax.vecmath.Point3i pointA,
                         short colixA,
                         short normixA,
                         javax.vecmath.Point3i pointB,
                         short colixB,
                         short normixB,
                         javax.vecmath.Point3i pointC,
                         short colixC,
                         short normixC,
                         float factor)
Specified by:
fillTriangle in interface JmolRendererInterface

drawQuadrilateral

public void drawQuadrilateral(short colix,
                              javax.vecmath.Point3i pointA,
                              javax.vecmath.Point3i pointB,
                              javax.vecmath.Point3i pointC,
                              javax.vecmath.Point3i screenD)
Specified by:
drawQuadrilateral in interface JmolRendererInterface

fillQuadrilateral

public void fillQuadrilateral(javax.vecmath.Point3f pointA,
                              javax.vecmath.Point3f pointB,
                              javax.vecmath.Point3f pointC,
                              javax.vecmath.Point3f pointD)
Specified by:
fillQuadrilateral in interface JmolRendererInterface

fillQuadrilateral

public void fillQuadrilateral(javax.vecmath.Point3i pointA,
                              short colixA,
                              short normixA,
                              javax.vecmath.Point3i pointB,
                              short colixB,
                              short normixB,
                              javax.vecmath.Point3i pointC,
                              short colixC,
                              short normixC,
                              javax.vecmath.Point3i screenD,
                              short colixD,
                              short normixD)
Specified by:
fillQuadrilateral in interface JmolRendererInterface

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 interface JmolRendererInterface

getBgColixes

public short[] getBgColixes(short[] bgcolixes)
Specified by:
getBgColixes in interface JmolRendererInterface

startShapeBuffer

public void startShapeBuffer(int iShape)
Specified by:
startShapeBuffer in interface JmolRendererInterface

endShapeBuffer

public void endShapeBuffer()
Specified by:
endShapeBuffer in interface JmolRendererInterface

renderEllipsoid

public void renderEllipsoid(javax.vecmath.Point3f center,
                            javax.vecmath.Point3f[] points,
                            int x,
                            int y,
                            int z,
                            int diameter,
                            javax.vecmath.Matrix3f mToEllipsoidal,
                            double[] coef,
                            javax.vecmath.Matrix4f mDeriv,
                            int selectedOctant,
                            javax.vecmath.Point3i[] octantPoints)
Specified by:
renderEllipsoid in interface JmolRendererInterface

isAntialiased

public boolean isAntialiased()
is full scene / oversampling antialiasing in effect

Specified by:
isAntialiased in interface JmolRendererInterface
Returns:
the answer

checkTranslucent

public boolean checkTranslucent(boolean isAlphaTranslucent)
Specified by:
checkTranslucent in interface JmolRendererInterface

haveTranslucentObjects

public boolean haveTranslucentObjects()
Specified by:
haveTranslucentObjects in interface JmolRendererInterface

getRenderWidth

public int getRenderWidth()
gets g3d width

Specified by:
getRenderWidth in interface JmolRendererInterface
Returns:
width pixel count;

getRenderHeight

public int getRenderHeight()
gets g3d height

Specified by:
getRenderHeight in interface JmolRendererInterface
Returns:
height pixel count

getSlab

public int getSlab()
gets g3d slab

Specified by:
getSlab in interface JmolRendererInterface
Returns:
slab

getDepth

public int getDepth()
gets g3d depth

Specified by:
getDepth in interface JmolRendererInterface
Returns:
depth

setColix

public boolean setColix(short colix)
sets current color from colix color index

Specified by:
setColix in interface JmolRendererInterface
Parameters:
colix - the color index
Returns:
true or false if this is the right pass

setFont

public void setFont(byte fid)
Specified by:
setFont in interface JmolRendererInterface

getFont3DCurrent

public Font3D getFont3DCurrent()
Specified by:
getFont3DCurrent in interface JmolRendererInterface

isInDisplayRange

public boolean isInDisplayRange(int x,
                                int y)
Specified by:
isInDisplayRange in interface JmolRendererInterface

isClippedZ

public boolean isClippedZ(int z)
Specified by:
isClippedZ in interface JmolRendererInterface

clipCode

public int clipCode(int x,
                    int y,
                    int z)

isClippedXY

public boolean isClippedXY(int diameter,
                           int x,
                           int y)
Specified by:
isClippedXY in interface JmolRendererInterface

isClipped

public boolean isClipped(int x,
                         int y,
                         int z)

isClipped

protected boolean isClipped(int x,
                            int y)

getColixArgb

public int getColixArgb(short colix)
Specified by:
getColixArgb in interface JmolRendererInterface

getHexColorFromIndex

public java.lang.String getHexColorFromIndex(short colix)
Specified by:
getHexColorFromIndex in interface JmolRendererInterface

calcSurfaceShade

public int calcSurfaceShade(javax.vecmath.Point3i pointA,
                            javax.vecmath.Point3i pointB,
                            javax.vecmath.Point3i pointC)
Specified by:
calcSurfaceShade in interface JmolRendererInterface

getFontFid

public byte getFontFid(java.lang.String fontFace,
                       float fontSize)
Specified by:
getFontFid in interface JmolRendererInterface

isDirectedTowardsCamera

public boolean isDirectedTowardsCamera(short normix)
Specified by:
isDirectedTowardsCamera in interface JmolRendererInterface

getNormix

public short getNormix(javax.vecmath.Vector3f vector)
Specified by:
getNormix in interface JmolRendererInterface

getInverseNormix

public short getInverseNormix(short normix)
Specified by:
getInverseNormix in interface JmolRendererInterface

getTransformedVertexVectors

public javax.vecmath.Vector3f[] getTransformedVertexVectors()
Specified by:
getTransformedVertexVectors in interface JmolRendererInterface

getNormixVector

public javax.vecmath.Vector3f getNormixVector(short normix)
Specified by:
getNormixVector in interface JmolRendererInterface

getFont3DScaled

public Font3D getFont3DScaled(Font3D font,
                              float scale)
Specified by:
getFont3DScaled in interface JmolRendererInterface

getFontFid

public byte getFontFid(float fontSize)
Specified by:
getFontFid in interface JmolRendererInterface