|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmol.export.Export3D
public final class Export3D
Provides high-level graphics primitives for 3D graphics export.
| Field Summary | |
|---|---|
private short |
colix
|
private ___Exporter |
exporter
|
(package private) String |
exportName
|
private Graphics3D |
g3d
|
private int |
height
|
private Hermite3D |
hermite3d
|
private double |
privateKey
|
private Point3f |
ptA
|
private Point3i |
ptAi
|
private Point3f |
ptB
|
private Point3i |
ptBi
|
private Point3f |
ptC
|
private Point3f |
ptD
|
private int |
slab
|
private int |
width
|
| Constructor Summary | |
|---|---|
Export3D()
|
|
| Method Summary | |
|---|---|
boolean |
checkTranslucent(boolean isAlphaTranslucent)
|
int |
clipCode(int x,
int y,
int z)
|
void |
drawAtom(Atom atom)
|
void |
drawBond(Atom atomA,
Atom atomB,
short colixA,
short colixB,
byte endcaps,
short mad)
|
void |
drawCircle(short colix,
int diameter,
int x,
int y,
int z,
boolean doFill)
draws a simple circle (draw circle) |
void |
drawDashedLine(int run,
int rise,
Point3i pointA,
Point3i pointB)
|
void |
drawDottedLine(Point3i pointA,
Point3i pointB)
|
boolean |
drawEllipse(Point3f ptAtom,
Point3f ptX,
Point3f ptY,
boolean fillArc,
boolean wireframeOnly)
|
void |
drawFilledCircle(short colixRing,
short colixFill,
int diameter,
int x,
int y,
int z)
draws a screened circle ... |
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 |
drawHermite(int tension,
Point3i s0,
Point3i s1,
Point3i s2,
Point3i s3)
|
private void |
drawHLine(int x,
int y,
int z,
int w)
|
void |
drawImage(Object objImage,
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(Point3i pointA,
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,
int scale)
|
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. |
void |
drawStringNoSlab(String str,
Font3D font3d,
int xBaseline,
int yBaseline,
int z)
draws the specified string in the current font. |
void |
drawSurface(MeshSurface meshSurface,
short colix)
|
void |
drawTriangle(Point3i screenA,
Point3i screenB,
Point3i screenC,
int check)
|
void |
drawTriangle(Point3i screenA,
short colixA,
Point3i screenB,
short colixB,
Point3i screenC,
short colixC,
int check)
|
private void |
drawVLine(int x,
int y,
int z,
int h)
|
void |
fillConeSceen(byte endcap,
int screenDiameter,
Point3f pointBase,
Point3f screenTip)
|
void |
fillConeScreen(byte endcap,
int screenDiameter,
Point3i pointBase,
Point3i screenTip,
boolean isBarb)
|
void |
fillCylinder(byte endcaps,
int diameter,
Point3i pointA,
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,
Point3f pointA,
Point3f pointB)
|
void |
fillCylinderScreen(byte endcaps,
int screenDiameter,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB)
|
void |
fillCylinderScreen(byte endcaps,
int diameter,
Point3i pointA,
Point3i pointB)
|
void |
fillEllipsoid(Point3f center,
Point3f[] points,
int x,
int y,
int z,
int diameter,
Matrix3f mToEllipsoidal,
double[] coef,
Matrix4f mDeriv,
int selectedOctant,
Point3i[] octantPoints)
|
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 |
fillSphere(int diameter,
int x,
int y,
int z)
fills a solid sphere |
void |
fillSphere(int diameter,
Point3f center)
fills a solid sphere |
void |
fillSphere(int diameter,
Point3i center)
fills a solid sphere |
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)
|
void |
fillTriangle(Point3i pointA,
short colixA,
short normixA,
Point3i pointB,
short colixB,
short normixB,
Point3i pointC,
short colixC,
short normixC,
float factor)
|
void |
fillTriangleTwoSided(short normix,
int xpointA,
int ypointA,
int zpointA,
int xpointB,
int ypointB,
int zpointB,
int xpointC,
int ypointC,
int zpointC)
|
String |
finalizeOutput()
|
short[] |
getBgColixes(short[] bgcolixes)
|
int |
getColorArgbOrGray(short colix)
|
int |
getDepth()
gets g3d depth |
String |
getExportName()
|
int |
getExportType()
|
Font3D |
getFont3DCurrent()
|
Font3D |
getFont3DScaled(Font3D font,
float scale)
|
byte |
getFontFid(float fontSize)
|
byte |
getFontFid(String fontFace,
float fontSize)
|
double |
getPrivateKey()
|
int |
getRenderHeight()
gets g3d height |
int |
getRenderWidth()
gets g3d width |
int |
getSlab()
gets g3d slab |
Vector3f[] |
getTransformedVertexVectors()
|
boolean |
haveTranslucentObjects()
|
boolean |
initializeExporter(String type,
Viewer viewer,
double privateKey,
Graphics3D g3d,
Object output)
|
boolean |
isAntialiased()
is full scene / oversampling antialiasing in effect |
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)
|
boolean |
isPass2()
|
(package private) void |
plotPixelClipped(int x,
int y,
int z)
|
void |
plotPixelClipped(Point3i screen)
|
void |
plotPixelClippedNoSlab(int argb,
int x,
int y,
int z)
|
void |
renderBackground()
|
boolean |
setColix(short colix)
sets current color from colix color index |
void |
setColor(int color)
|
void |
setFont(byte fid)
|
void |
setNoisySurfaceShade(Point3i pointA,
Point3i pointB,
Point3i pointC)
|
void |
setSlab(int slabValue)
|
void |
setTranslucentCoverOnly(boolean TF)
|
void |
volumeRender(boolean TF)
|
void |
volumeRender(int diam,
int x,
int y,
int z)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ___Exporter exporter
private double privateKey
private Graphics3D g3d
private short colix
private Hermite3D hermite3d
private int width
private int height
private int slab
String exportName
private Point3f ptA
private Point3f ptB
private Point3f ptC
private Point3f ptD
private Point3i ptAi
private Point3i ptBi
| Constructor Detail |
|---|
public Export3D()
| Method Detail |
|---|
public int getExportType()
getExportType in interface JmolRendererInterfacepublic String getExportName()
getExportName in interface JmolRendererInterface
public boolean initializeExporter(String type,
Viewer viewer,
double privateKey,
Graphics3D g3d,
Object output)
initializeExporter in interface JmolRendererInterfacepublic String finalizeOutput()
finalizeOutput in interface JmolRendererInterfacepublic void setSlab(int slabValue)
setSlab in interface JmolRendererInterfacepublic void renderBackground()
renderBackground in interface JmolRendererInterfacepublic void drawAtom(Atom atom)
drawAtom in interface JmolRendererInterface
public void drawFilledCircle(short colixRing,
short colixFill,
int diameter,
int x,
int y,
int z)
drawFilledCircle in interface JmolRendererInterfacecolixRing - colixFill - diameter - x - center xy - center yz - center z
public void drawCircle(short colix,
int diameter,
int x,
int y,
int z,
boolean doFill)
colix - the color indexdiameter - the pixel diameterx - center xy - center yz - center zdoFill - (not implemented in exporters)
public void fillSphere(int diameter,
int x,
int y,
int z)
fillSphere in interface JmolRendererInterfacediameter - pixel countx - center xy - center yz - center z
public void fillSphere(int diameter,
Point3i center)
fillSphere in interface JmolRendererInterfacediameter - pixel countcenter - javax.vecmath.Point3i defining the center
public void fillSphere(int diameter,
Point3f center)
fillSphere in interface JmolRendererInterfacediameter - pixel countcenter - a javax.vecmath.Point3f ... floats are casted to ints
public void drawRect(int x,
int y,
int z,
int zSlab,
int rWidth,
int rHeight)
drawRect in interface JmolRendererInterfacex - upper left xy - upper left yz - upper left zzSlab - z for slab check (for set labelsFront)rWidth - pixel countrHeight - pixel count
private void drawHLine(int x,
int y,
int z,
int w)
private void drawVLine(int x,
int y,
int z,
int h)
public void fillRect(int x,
int y,
int z,
int zSlab,
int widthFill,
int heightFill)
fillRect in interface JmolRendererInterfacex - upper left xy - upper left yz - upper left zzSlab - z value for slabbingwidthFill - pixel countheightFill - pixel count
public void drawString(String str,
Font3D font3d,
int xBaseline,
int yBaseline,
int z,
int zSlab)
drawString in interface JmolRendererInterfacestr - the Stringfont3d - the Font3DxBaseline - baseline xyBaseline - baseline yz - baseline zzSlab - z for slab calculation
public void drawStringNoSlab(String str,
Font3D font3d,
int xBaseline,
int yBaseline,
int z)
drawStringNoSlab in interface JmolRendererInterfacestr - the Stringfont3d - the Font3DxBaseline - baseline xyBaseline - baseline yz - baseline z
public void drawImage(Object objImage,
int x,
int y,
int z,
int zSlab,
short bgcolix,
int width,
int height)
drawImage in interface JmolRendererInterface
public void drawPixel(int x,
int y,
int z)
drawPixel in interface JmolRendererInterface
void plotPixelClipped(int x,
int y,
int z)
public void plotPixelClippedNoSlab(int argb,
int x,
int y,
int z)
plotPixelClippedNoSlab in interface JmolRendererInterfacepublic void plotPixelClipped(Point3i screen)
plotPixelClipped in interface JmolRendererInterface
public void drawPoints(int count,
int[] coordinates,
int scale)
drawPoints in interface JmolRendererInterface
public void drawDashedLine(int run,
int rise,
Point3i pointA,
Point3i pointB)
drawDashedLine in interface JmolRendererInterface
public void drawDottedLine(Point3i pointA,
Point3i pointB)
drawDottedLine in interface JmolRendererInterface
public void drawLine(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
drawLine in interface JmolRendererInterface
public void drawLine(short colixA,
short colixB,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB)
drawLine in interface JmolRendererInterface
public void drawLine(Point3i pointA,
Point3i pointB)
drawLine in interface JmolRendererInterface
public void drawBond(Atom atomA,
Atom atomB,
short colixA,
short colixB,
byte endcaps,
short mad)
drawBond in interface JmolRendererInterface
public void fillCylinder(short colixA,
short colixB,
byte endcaps,
int mad,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB)
fillCylinder in interface JmolRendererInterface
public void fillCylinderScreen(byte endcaps,
int screenDiameter,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB)
fillCylinderScreen in interface JmolRendererInterface
public void fillCylinderScreen(byte endcaps,
int diameter,
Point3i pointA,
Point3i pointB)
fillCylinderScreen in interface JmolRendererInterface
public void fillCylinder(byte endcaps,
int diameter,
Point3i pointA,
Point3i pointB)
fillCylinder in interface JmolRendererInterface
public void fillCylinderBits(byte endcaps,
int diameter,
Point3f pointA,
Point3f pointB)
fillCylinderBits in interface JmolRendererInterface
public void fillConeScreen(byte endcap,
int screenDiameter,
Point3i pointBase,
Point3i screenTip,
boolean isBarb)
fillConeScreen in interface JmolRendererInterface
public void fillConeSceen(byte endcap,
int screenDiameter,
Point3f pointBase,
Point3f screenTip)
fillConeSceen in interface JmolRendererInterface
public void drawHermite(int tension,
Point3i s0,
Point3i s1,
Point3i s2,
Point3i s3)
drawHermite in interface JmolRendererInterface
public void fillHermite(int tension,
int diameterBeg,
int diameterMid,
int diameterEnd,
Point3i s0,
Point3i s1,
Point3i s2,
Point3i s3)
fillHermite in interface JmolRendererInterface
public 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)
drawHermite in interface JmolRendererInterface
public void drawTriangle(Point3i screenA,
short colixA,
Point3i screenB,
short colixB,
Point3i screenC,
short colixC,
int check)
drawTriangle in interface JmolRendererInterface
public void drawTriangle(Point3i screenA,
Point3i screenB,
Point3i screenC,
int check)
drawTriangle in interface JmolRendererInterface
public void fillTriangle(Point3i pointA,
short colixA,
short normixA,
Point3i pointB,
short colixB,
short normixB,
Point3i pointC,
short colixC,
short normixC)
fillTriangle in interface JmolRendererInterface
public void fillTriangleTwoSided(short normix,
int xpointA,
int ypointA,
int zpointA,
int xpointB,
int ypointB,
int zpointB,
int xpointC,
int ypointC,
int zpointC)
fillTriangleTwoSided in interface JmolRendererInterface
public void fillTriangle(Point3f pointA,
Point3f pointB,
Point3f pointC)
fillTriangle in interface JmolRendererInterface
public void fillTriangle(Point3i pointA,
Point3i pointB,
Point3i pointC)
fillTriangle in interface JmolRendererInterface
public void fillTriangle(Point3i pointA,
short colixA,
short normixA,
Point3i pointB,
short colixB,
short normixB,
Point3i pointC,
short colixC,
short normixC,
float factor)
fillTriangle in interface JmolRendererInterface
public void drawQuadrilateral(short colix,
Point3i pointA,
Point3i pointB,
Point3i pointC,
Point3i screenD)
drawQuadrilateral in interface JmolRendererInterface
public void fillQuadrilateral(Point3f pointA,
Point3f pointB,
Point3f pointC,
Point3f pointD)
fillQuadrilateral in interface JmolRendererInterface
public 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)
fillQuadrilateral in interface JmolRendererInterface
public void drawSurface(MeshSurface meshSurface,
short colix)
drawSurface in interface JmolRendererInterfacepublic short[] getBgColixes(short[] bgcolixes)
getBgColixes in interface JmolRendererInterface
public void fillEllipsoid(Point3f center,
Point3f[] points,
int x,
int y,
int z,
int diameter,
Matrix3f mToEllipsoidal,
double[] coef,
Matrix4f mDeriv,
int selectedOctant,
Point3i[] octantPoints)
fillEllipsoid in interface JmolRendererInterface
public boolean drawEllipse(Point3f ptAtom,
Point3f ptX,
Point3f ptY,
boolean fillArc,
boolean wireframeOnly)
drawEllipse in interface JmolRendererInterfacepublic boolean isAntialiased()
isAntialiased in interface JmolRendererInterfacepublic boolean checkTranslucent(boolean isAlphaTranslucent)
checkTranslucent in interface JmolRendererInterfacepublic boolean haveTranslucentObjects()
haveTranslucentObjects in interface JmolRendererInterfacepublic void setColor(int color)
setColor in interface JmolRendererInterfacepublic int getRenderWidth()
getRenderWidth in interface JmolRendererInterfacepublic int getRenderHeight()
getRenderHeight in interface JmolRendererInterfacepublic boolean isPass2()
isPass2 in interface JmolRendererInterfacepublic int getSlab()
getSlab in interface JmolRendererInterfacepublic int getDepth()
getDepth in interface JmolRendererInterfacepublic boolean setColix(short colix)
setColix in interface JmolRendererInterfacecolix - the color index
public void setFont(byte fid)
setFont in interface JmolRendererInterfacepublic Font3D getFont3DCurrent()
getFont3DCurrent in interface JmolRendererInterface
public boolean isInDisplayRange(int x,
int y)
isInDisplayRange in interface JmolRendererInterfacepublic boolean isClippedZ(int z)
isClippedZ in interface JmolRendererInterface
public int clipCode(int x,
int y,
int z)
public boolean isClippedXY(int diameter,
int x,
int y)
isClippedXY in interface JmolRendererInterface
public boolean isClipped(int x,
int y,
int z)
protected boolean isClipped(int x,
int y)
public int getColorArgbOrGray(short colix)
getColorArgbOrGray in interface JmolRendererInterface
public void setNoisySurfaceShade(Point3i pointA,
Point3i pointB,
Point3i pointC)
setNoisySurfaceShade in interface JmolRendererInterface
public byte getFontFid(String fontFace,
float fontSize)
getFontFid in interface JmolRendererInterfacepublic boolean isDirectedTowardsCamera(short normix)
isDirectedTowardsCamera in interface JmolRendererInterfacepublic Vector3f[] getTransformedVertexVectors()
getTransformedVertexVectors in interface JmolRendererInterface
public Font3D getFont3DScaled(Font3D font,
float scale)
getFont3DScaled in interface JmolRendererInterfacepublic byte getFontFid(float fontSize)
getFontFid in interface JmolRendererInterfacepublic void setTranslucentCoverOnly(boolean TF)
setTranslucentCoverOnly in interface JmolRendererInterfacepublic double getPrivateKey()
public void volumeRender(boolean TF)
volumeRender in interface JmolRendererInterface
public void volumeRender(int diam,
int x,
int y,
int z)
volumeRender in interface JmolRendererInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||