Package org.jmol.export
Class Export3D
java.lang.Object
org.jmol.export.Export3D
- All Implemented Interfaces:
JmolGraphicsInterface,JmolRendererInterface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRenderer(int tok) booleancheckTranslucent(boolean isAlphaTranslucent) intclipCode(int x, int y, int z) voidvoidvoiddrawCircle(short colix, int diameter, int x, int y, int z, boolean doFill) draws a simple circle (draw circle)voiddrawDashedLineBits(int run, int rise, P3 pointA, P3 pointB) 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 screened circle ...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 xA, int yA, int zA, int xB, int yB, int zB) voiddrawLineAB(P3 pointA, P3 pointB) voiddrawLineBits(short colixA, short colixB, P3 pointA, P3 pointB) voiddrawLineBits(P3 screenA, P3 screenB, short colixA, short colixB) voiddrawLinePixels(P3i sA, P3i sB, int z, int zslab) 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 pointBase, P3 screenTip, boolean isBarb) voidfillCylinder(byte endcaps, int diameter, P3i pointA, P3i pointB) voidfillCylinderBits(byte endcaps, int diameter, P3 pointA, P3 pointB) voidfillCylinderBits2(short colixA, short colixB, byte endcaps, int mad, P3 screenA, P3 screenB) voidfillCylinderScreen3I(byte endcaps, int diameter, P3 pointA, P3 pointB, P3 pt0f, P3 pt1f, float radius) voidfillCylinderXYZ(short colixA, short colixB, byte endcaps, int mad, 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 pointA, P3 pointB, P3 pointC, P3 pointD, 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 pointA, short colixA, short normixA, P3i pointB, short colixB, short normixB, P3i pointC, 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 pointA, P3 pointB, P3 pointC, boolean setNoisy) voidvoidfillTriangleTwoSided(short normix, P3 a, P3 b, P3 c) intdoublebooleanbooleaninitializeOutput(Viewer vwr, double privateKey, Map<String, Object> params) booleanis full scene / oversampling antialiasing in effectprotected booleanisClipped(int x, int y) booleanisClipped(int x, int y, int z) booleanisClippedXY(int diameter, int x, int y) booleanisInDisplayRange(int x, int y) booleanisWebGL()voidplotImagePixel(int argb, int x, int y, int z, byte shade, int bgargb, int width, int height, int[] pbuf, Object p, int transpLog) voidplotPixelClippedP3i(P3i screen) voidvoidvoidrenderCrossHairs(int[] minMax, int screenWidth, int screenHeight, P3 navigationOffset, float navigationDepthPercent) booleansetC(short colix) sets current color from colix color indexvoidsetSlab(int slabValue) voidsetSlabAndZShade(int slabValue, int depthValue, int zSlab, int zDepth, int zPower) voidvolumeRender(boolean TF) voidvolumeRender4(int diam, int x, int y, int z)
-
Field Details
-
exporter
-
-
Constructor Details
-
Export3D
public Export3D()
-
-
Method Details
-
isWebGL
public boolean isWebGL()- Specified by:
isWebGLin interfaceJmolRendererInterface
-
initializeExporter
public Object initializeExporter(Viewer vwr, double privateKey, GData gdata, Map<String, Object> params) - Specified by:
initializeExporterin interfaceJmolRendererInterface
-
initializeOutput
- Specified by:
initializeOutputin interfaceJmolRendererInterface
-
getExportType
public int getExportType()- Specified by:
getExportTypein interfaceJmolRendererInterface
-
getExportName
- Specified by:
getExportNamein interfaceJmolRendererInterface
-
finalizeOutput
- Specified by:
finalizeOutputin interfaceJmolRendererInterface
-
setSlab
public void setSlab(int slabValue) - Specified by:
setSlabin interfaceJmolGraphicsInterface
-
setSlabAndZShade
public void setSlabAndZShade(int slabValue, int depthValue, int zSlab, int zDepth, int zPower) - Specified by:
setSlabAndZShadein interfaceJmolGraphicsInterface
-
renderBackground
- Specified by:
renderBackgroundin interfaceJmolRendererInterface
-
drawAtom
- Specified by:
drawAtomin interfaceJmolRendererInterface
-
drawRect
public void drawRect(int x, int y, int z, int zSlab, int rWidth, int rHeight) draws a rectangle- Specified by:
drawRectin interfaceJmolRendererInterface- Parameters:
x- upper left xy- upper left yz- upper left zzSlab- z for slab check (for set labelsFront)rWidth- pixel countrHeight- pixel count
-
drawFilledCircle
public void drawFilledCircle(short colixRing, short colixFill, int diameter, int x, int y, int z) draws a screened circle ... every other dot is turned on- Specified by:
drawFilledCirclein interfaceJmolRendererInterface- Parameters:
colixRing-colixFill-diameter-x- center xy- center yz- center z
-
drawCircle
public void drawCircle(short colix, int diameter, int x, int y, int z, boolean doFill) draws a simple circle (draw circle)- Parameters:
colix- the color indexdiameter- the pixel diameterx- center xy- center yz- center zdoFill- (not implemented in exporters)
-
fillSphereXYZ
public void fillSphereXYZ(int diameter, int x, int y, int z) fills a solid sphere- Specified by:
fillSphereXYZin interfaceJmolRendererInterface- Parameters:
diameter- pixel countx- center xy- center yz- center z
-
fillSphereI
fills a solid sphere- Specified by:
fillSphereIin interfaceJmolRendererInterface- Parameters:
diameter- pixel countcenter- javax.vecmath.Point3i defining the center
-
fillSphereBits
fills a solid sphere- Specified by:
fillSphereBitsin interfaceJmolRendererInterface- Parameters:
diameter- pixel countcenter- a javax.vecmath.Point3f ... floats are casted to ints
-
fillTextRect
public void fillTextRect(int x, int y, int z, int zSlab, int widthFill, int heightFill) fills background rectangle for label- Specified by:
fillTextRectin interfaceJmolRendererInterface- Parameters:
x- upper left xy- upper left yz- upper left zzSlab- z value for slabbingwidthFill- pixel countheightFill- pixel count
-
drawString
public 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- Specified by:
drawStringin interfaceJmolRendererInterface- Parameters:
str- the Stringfont3d- the Font3DxBaseline- baseline xyBaseline- baseline yz- baseline zzSlab- z for slab calculationbgcolix-
-
drawStringNoSlab
public void drawStringNoSlab(String str, Font font3d, int xBaseline, int yBaseline, int z, short bgcolix) draws the specified string in the current font. no line wrapping -- echo, frank, hover, molecularOrbital, uccage- Specified by:
drawStringNoSlabin interfaceJmolRendererInterface- Parameters:
str- the Stringfont3d- the Font3DxBaseline- baseline xyBaseline- baseline yz- baseline zbgcolix-
-
drawImage
public void drawImage(Object objImage, int x, int y, int z, int zSlab, short bgcolix, int width, int height) - Specified by:
drawImagein interfaceJmolRendererInterface
-
drawPixel
public void drawPixel(int x, int y, int z) - Specified by:
drawPixelin interfaceJmolRendererInterface
-
plotPixelClippedP3i
- Specified by:
plotPixelClippedP3iin interfaceJmolRendererInterface
-
drawPoints
public void drawPoints(int count, int[] coordinates, int scale) - Specified by:
drawPointsin interfaceJmolRendererInterface
-
drawDashedLineBits
- Specified by:
drawDashedLineBitsin interfaceJmolRendererInterface
-
drawLineXYZ
public void drawLineXYZ(int x1, int y1, int z1, int x2, int y2, int z2) - Specified by:
drawLineXYZin interfaceJmolRendererInterface
-
drawLine
public void drawLine(short colixA, short colixB, int xA, int yA, int zA, int xB, int yB, int zB) - Specified by:
drawLinein interfaceJmolRendererInterface
-
drawLineBits
- Specified by:
drawLineBitsin interfaceJmolRendererInterface
-
drawLineAB
- Specified by:
drawLineABin interfaceJmolRendererInterface
-
drawBond
public void drawBond(P3 atomA, P3 atomB, short colixA, short colixB, byte endcaps, short mad, int bondOrder) - Specified by:
drawBondin interfaceJmolRendererInterface
-
fillCylinderXYZ
public void fillCylinderXYZ(short colixA, short colixB, byte endcaps, int mad, int xA, int yA, int zA, int xB, int yB, int zB) - Specified by:
fillCylinderXYZin interfaceJmolRendererInterface
-
fillCylinderScreen3I
public void fillCylinderScreen3I(byte endcaps, int diameter, P3 pointA, P3 pointB, P3 pt0f, P3 pt1f, float radius) - Specified by:
fillCylinderScreen3Iin interfaceJmolRendererInterface
-
fillCylinder
- Specified by:
fillCylinderin interfaceJmolRendererInterface
-
fillCylinderBits
- Specified by:
fillCylinderBitsin interfaceJmolRendererInterface
-
fillConeScreen3f
public void fillConeScreen3f(byte endcap, int screenDiameter, P3 pointBase, P3 screenTip, boolean isBarb) - Specified by:
fillConeScreen3fin interfaceJmolRendererInterface
-
drawHermite4
- Specified by:
drawHermite4in interfaceJmolRendererInterface
-
fillHermite
public void fillHermite(int tension, int diameterBeg, int diameterMid, int diameterEnd, P3 s0, P3 s1, P3 s2, P3 s3) - Specified by:
fillHermitein interfaceJmolRendererInterface
-
drawTriangle3C
public void drawTriangle3C(P3i screenA, short colixA, P3i screenB, short colixB, P3i screenC, short colixC, int check) - Specified by:
drawTriangle3Cin interfaceJmolRendererInterface
-
drawLineBits
-
fillCylinderBits2
public void fillCylinderBits2(short colixA, short colixB, byte endcaps, int mad, P3 screenA, P3 screenB) - Specified by:
fillCylinderBits2in interfaceJmolRendererInterface
-
fillTriangle3CNBits
public void fillTriangle3CNBits(P3 pA, short colixA, short nA, P3 pB, short colixB, short nB, P3 pC, short colixC, short nC, boolean twoSided) - Specified by:
fillTriangle3CNBitsin interfaceJmolRendererInterface
-
fillTriangle3CN
public void fillTriangle3CN(P3i pointA, short colixA, short normixA, P3i pointB, short colixB, short normixB, P3i pointC, short colixC, short normixC) - Specified by:
fillTriangle3CNin interfaceJmolRendererInterface
-
fillTriangleTwoSided
- Specified by:
fillTriangleTwoSidedin interfaceJmolRendererInterface
-
fillTriangle3f
- Specified by:
fillTriangle3fin interfaceJmolRendererInterface
-
fillTriangle3i
public void fillTriangle3i(P3 screenA, P3 screenB, P3 screenC, T3 ptA0, T3 ptB0, T3 ptC0, boolean doShade) - Specified by:
fillTriangle3iin interfaceJmolRendererInterface
-
fillQuadrilateral
- Specified by:
fillQuadrilateralin interfaceJmolRendererInterface
-
drawSurface
- Specified by:
drawSurfacein interfaceJmolRendererInterface
-
fillEllipsoid
public void fillEllipsoid(P3 center, P3[] points, int x, int y, int z, int diameter, M3 mToEllipsoidal, double[] coef, M4 mDeriv, int selectedOctant, P3[] octantPoints) - Specified by:
fillEllipsoidin interfaceJmolRendererInterface
-
drawEllipse
- Specified by:
drawEllipsein interfaceJmolRendererInterface
-
isAntialiased
public boolean isAntialiased()is full scene / oversampling antialiasing in effect- Specified by:
isAntialiasedin interfaceJmolGraphicsInterface- Returns:
- the answer
-
checkTranslucent
public boolean checkTranslucent(boolean isAlphaTranslucent) - Specified by:
checkTranslucentin interfaceJmolRendererInterface
-
haveTranslucentObjects
public boolean haveTranslucentObjects()- Specified by:
haveTranslucentObjectsin interfaceJmolRendererInterface
-
setC
public boolean setC(short colix) sets current color from colix color index- Specified by:
setCin interfaceJmolRendererInterface- Parameters:
colix- the color index- Returns:
- true or false if this is the right pass
-
isInDisplayRange
public boolean isInDisplayRange(int x, int y) - Specified by:
isInDisplayRangein interfaceJmolGraphicsInterface
-
clipCode
public int clipCode(int x, int y, int z) -
isClippedXY
public boolean isClippedXY(int diameter, int x, int y) - Specified by:
isClippedXYin interfaceJmolGraphicsInterface
-
isClipped
public boolean isClipped(int x, int y, int z) -
isClipped
protected boolean isClipped(int x, int y) -
getPrivateKey
public double getPrivateKey() -
volumeRender4
public void volumeRender4(int diam, int x, int y, int z) - Specified by:
volumeRender4in interfaceJmolRendererInterface
-
renderCrossHairs
public void renderCrossHairs(int[] minMax, int screenWidth, int screenHeight, P3 navigationOffset, float navigationDepthPercent) - Specified by:
renderCrossHairsin interfaceJmolRendererInterface
-
volumeRender
public void volumeRender(boolean TF) - Specified by:
volumeRenderin interfaceJmolRendererInterface
-
addRenderer
public void addRenderer(int tok) - Specified by:
addRendererin interfaceJmolRendererInterface
-
plotImagePixel
public void plotImagePixel(int argb, int x, int y, int z, byte shade, int bgargb, int width, int height, int[] pbuf, Object p, int transpLog) - Specified by:
plotImagePixelin interfaceJmolRendererInterface
-
drawHermite7
public void drawHermite7(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) - Specified by:
drawHermite7in interfaceJmolRendererInterface
-
renderAllStrings
- Specified by:
renderAllStringsin interfaceJmolGraphicsInterface
-
drawLinePixels
- Specified by:
drawLinePixelsin interfaceJmolGraphicsInterface
-