Interface JmolRendererInterface
- All Superinterfaces:
JmolGraphicsInterface
- All Known Implementing Classes:
Export3D, Graphics3D
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRenderer(int tok) booleancheckTranslucent(boolean isAlphaTranslucent) voidvoidvoiddrawDashedLineBits(int run, int rise, P3 screenA, P3 screenB) booleandrawEllipse(P3 ptAtom, P3 ptX, P3 ptY, boolean fillArc, boolean wireframeOnly) voiddrawFilledCircle(short colixRing, short colixFill, int diameter, int x, int y, int z) draws a ring and filled circle (halos, draw CIRCLE, draw handles)voiddrawHermite4(int tension, P3 s0, P3 s1, P3 s2, P3 s3) voiddrawHermite7(boolean fill, boolean border, int tension, P3 s0, P3 s1, P3 s2, P3 s3, P3 s4, P3 s5, P3 s6, P3 s7, int aspectRatio, short colixBack) voidvoiddrawLine(short colixA, short colixB, int x1, int y1, int z1, int x2, int y2, int z2) voiddrawLineAB(P3 pointA, P3 pointB) voiddrawLineBits(short colixA, short colixB, P3 pointA, P3 pointB) voiddrawLineXYZ(int x1, int y1, int z1, int x2, int y2, int z2) voiddrawPixel(int x, int y, int z) voiddrawPoints(int count, int[] coordinates, int scale) voiddrawRect(int x, int y, int z, int zSlab, int rWidth, int rHeight) draws a rectanglevoiddrawString(String str, Font font3d, int xBaseline, int yBaseline, int z, int zSlab, short bgColix) draws the specified string in the current font.voiddrawStringNoSlab(String str, Font font3d, int xBaseline, int yBaseline, int z, short bgColix) draws the specified string in the current font.voiddrawSurface(MeshSurface meshSurface, short colix) voiddrawTriangle3C(P3i screenA, short colixA, P3i screenB, short colixB, P3i screenC, short colixC, int check) voidfillConeScreen3f(byte endcap, int screenDiameter, P3 screenBase, P3 screenTip, boolean isBarb) voidfillCylinder(byte endcaps, int diameter, P3i screenA, P3i screenB) voidfillCylinderBits(byte endcaps, int diameter, P3 screenA, P3 screenB) voidfillCylinderBits2(short colixA, short colixB, byte endcaps, int diameter, P3 screenA, P3 screenB) voidfillCylinderScreen3I(byte endcaps, int diameter, P3 s0f, P3 s1f, P3 pt0f, P3 pt1f, float radius) voidfillCylinderXYZ(short colixA, short colixB, byte endcaps, int diameter, int xA, int yA, int zA, int xB, int yB, int zB) voidfillEllipsoid(P3 center, P3[] points, int x, int y, int z, int diameter, M3 mToEllipsoidal, double[] coef, M4 mDeriv, int selectedOctant, P3[] octantPoints) voidfillHermite(int tension, int diameterBeg, int diameterMid, int diameterEnd, P3 s0, P3 s1, P3 s2, P3 s3) voidfillQuadrilateral(P3 screenA, P3 screenB, P3 screenC, P3 screenD, boolean isSolid) voidfillSphereBits(int diameter, P3 center) fills a solid spherevoidfillSphereI(int diameter, P3i center) fills a solid spherevoidfillSphereXYZ(int diameter, int x, int y, int z) fills a solid spherevoidfillTextRect(int x, int y, int z, int zSlab, int widthFill, int heightFill) fills background rectangle for labelvoidfillTriangle3CN(P3i screenA, short colixA, short normixA, P3i screenB, short colixB, short normixB, P3i screenC, short colixC, short normixC) voidfillTriangle3CNBits(P3 pA, short colixA, short nA, P3 pB, short colixB, short nB, P3 pC, short colixC, short nC, boolean twoSided) voidfillTriangle3f(P3 screenA, P3 screenB, P3 screenC, boolean setNoisy) voidvoidfillTriangleTwoSided(short normix, P3 a, P3 b, P3 c) intbooleanbooleaninitializeOutput(Viewer vwr, double privateKey, Map<String, Object> params) booleanisWebGL()voidplotImagePixel(int argb, int x, int y, int z, byte shade, int bgargb, int width, int height, int[] zbuf, Object pixel, int transpLog) voidvoidvoidrenderCrossHairs(int[] minMax, int screenWidth, int screenHeight, P3 navigationOffset, float navigationDepthPercent) booleansetC(short colix) sets current color from colix color indexvoidvolumeRender(boolean TF) voidvolumeRender4(int diam, int x, int y, int z) Methods inherited from interface JmolGraphicsInterface
drawLinePixels, isAntialiased, isClippedXY, isInDisplayRange, renderAllStrings, setSlab, setSlabAndZShade
-
Method Details
-
addRenderer
void addRenderer(int tok) -
checkTranslucent
boolean checkTranslucent(boolean isAlphaTranslucent) -
drawAtom
-
drawBond
-
drawDashedLineBits
-
drawEllipse
-
drawFilledCircle
void drawFilledCircle(short colixRing, short colixFill, int diameter, int x, int y, int z) draws a ring and filled circle (halos, draw CIRCLE, draw handles)- Parameters:
colixRing-colixFill-diameter-x- center xy- center yz- center z
-
drawHermite4
-
drawHermite7
-
drawImage
-
drawLine
void drawLine(short colixA, short colixB, int x1, int y1, int z1, int x2, int y2, int z2) -
drawLineAB
-
drawLineXYZ
void drawLineXYZ(int x1, int y1, int z1, int x2, int y2, int z2) -
drawPixel
void drawPixel(int x, int y, int z) -
drawPoints
void drawPoints(int count, int[] coordinates, int scale) -
drawRect
void drawRect(int x, int y, int z, int zSlab, int rWidth, int rHeight) draws a rectangle- Parameters:
x- upper left xy- upper left yz- upper left zzSlab- z for slab check (for set labelsFront)rWidth- pixel countrHeight- pixel count
-
drawString
void drawString(String str, Font font3d, int xBaseline, int yBaseline, int z, int zSlab, short bgColix) draws the specified string in the current font. no line wrapping -- axis, labels, measures- Parameters:
str- the Stringfont3d- the Font3DxBaseline- baseline xyBaseline- baseline yz- baseline zzSlab- z for slab calculationbgColix- TODO
-
drawStringNoSlab
draws the specified string in the current font. no line wrapping -- echo, frank, hover, molecularOrbital, uccage- Parameters:
str- the Stringfont3d- the Font3DxBaseline- baseline xyBaseline- baseline yz- baseline zbgColix- TODO
-
drawSurface
-
drawTriangle3C
-
fillConeScreen3f
-
fillCylinder
-
fillCylinderBits
-
fillCylinderScreen3I
-
fillCylinderBits2
-
fillCylinderXYZ
void fillCylinderXYZ(short colixA, short colixB, byte endcaps, int diameter, int xA, int yA, int zA, int xB, int yB, int zB) -
fillEllipsoid
-
fillHermite
-
fillQuadrilateral
-
fillTextRect
void fillTextRect(int x, int y, int z, int zSlab, int widthFill, int heightFill) fills background rectangle for label- Parameters:
x- upper left xy- upper left yz- upper left zzSlab- z value for slabbingwidthFill- pixel countheightFill- pixel count
-
fillSphereBits
fills a solid sphere- Parameters:
diameter- pixel countcenter- a javax.vecmath.Point3f ... floats are casted to ints
-
fillSphereI
fills a solid sphere- Parameters:
diameter- pixel countcenter- javax.vecmath.Point3i defining the center
-
fillSphereXYZ
void fillSphereXYZ(int diameter, int x, int y, int z) fills a solid sphere- Parameters:
diameter- pixel countx- center xy- center yz- center z
-
fillTriangle3CN
-
fillTriangle3f
-
fillTriangle3i
-
fillTriangleTwoSided
-
finalizeOutput
String finalizeOutput() -
getExportName
String getExportName() -
isWebGL
boolean isWebGL() -
getExportType
int getExportType() -
haveTranslucentObjects
boolean haveTranslucentObjects() -
initializeExporter
-
initializeOutput
-
plotImagePixel
void plotImagePixel(int argb, int x, int y, int z, byte shade, int bgargb, int width, int height, int[] zbuf, Object pixel, int transpLog) -
plotPixelClippedP3i
-
renderBackground
-
renderCrossHairs
void renderCrossHairs(int[] minMax, int screenWidth, int screenHeight, P3 navigationOffset, float navigationDepthPercent) -
setC
boolean setC(short colix) sets current color from colix color index- Parameters:
colix- the color index- Returns:
- true or false if this is the right pass
-
volumeRender
void volumeRender(boolean TF) -
volumeRender4
void volumeRender4(int diam, int x, int y, int z) -
fillTriangle3CNBits
-
drawLineBits
-