public final class Graphics3D extends GData implements JmolRendererInterface
A pure software implementation of a 3D graphics engine. No hardware required. Depending upon what you are rendering ... some people say it is pretty fast.
| Modifier and Type | Field and Description |
|---|---|
private boolean |
addAllPixels |
private byte[] |
anaglyphChannelBytes |
private int |
anaglyphLength |
private boolean |
antialias2 |
private int |
argbNoisyDn |
private int |
argbNoisyUp |
private CircleRenderer |
circle3d |
private JmolFont |
currentFont |
private boolean |
currentlyRendering |
private int |
currentShadeIndex |
private CylinderRenderer |
cylinder3d |
private boolean |
haveTranslucentObjects |
private HermiteRenderer |
hermite3d |
private boolean |
isFullSceneAntialiasingEnabled |
private boolean |
isScreened |
private int |
lastRawColor |
(package private) LineRenderer |
line3d |
private static short |
normixCount |
private static byte |
nullShadeIndex |
protected int[] |
pbuf |
protected int[] |
pbufT |
private Pixelator |
pixel |
(package private) Platform3D |
platform |
private int |
saveAmbient |
private int |
saveDiffuse |
private byte[] |
shadeIndexes |
private byte[] |
shadeIndexes2Sided |
private int[] |
shadesCurrent |
static java.util.Comparator<TextString> |
sort |
private SphereRenderer |
sphere3d |
private int |
stringCount |
private TextString[] |
strings |
private V3[] |
transformedVectors |
private int |
translucencyLog |
protected int |
translucencyMask |
private TriangleRenderer |
triangle3d |
private boolean |
twoPass |
private V3 |
vectorAB |
private V3 |
vectorAC |
private V3 |
vectorNormal |
protected int[] |
zbuf |
protected int[] |
zbufT |
protected int |
zMargin |
antialiasEnabled, antialiasThisFrame, apiPlatform, argbCurrent, backgroundImage, bgcolor, bufferSize, changeableColixMap, colixCurrent, depth, displayMaxX, displayMaxY, displayMinX, displayMinY, ENDCAPS_FLAT, ENDCAPS_NONE, ENDCAPS_OPEN, ENDCAPS_OPENEND, ENDCAPS_SPHERICAL, EXPORT_CARTESIAN, EXPORT_NOT, EXPORT_RAYTRACER, graphicsForMetrics, height, inGreyscaleMode, isPass2, newAntialiasing, newWindowHeight, newWindowWidth, shader, slab, translucentCoverOnly, width, windowHeight, windowWidth, xGT, xLast, xLT, yGT, yLast, yLT, zDepth, zGT, zLT, zShadeB, zShadeG, zShadePower, zShadeR, zSlab| Constructor and Description |
|---|
Graphics3D() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addPixel(int offset,
int z,
int p) |
void |
applyAnaglygh(EnumStereoMode stereoMode,
int[] stereoColors) |
void |
applyBlueAnaglyph() |
void |
applyCustomAnaglyph(int[] stereoColors) |
void |
applyCyanAnaglyph() |
void |
applyGreenAnaglyph() |
void |
beginRendering(Matrix3f rotationMatrix,
boolean translucentMode,
boolean isImageWrite) |
boolean |
canDoTriangles() |
boolean |
checkTranslucent(boolean isAlphaTranslucent) |
void |
clear() |
void |
clearFontCache() |
(package private) void |
clearPixel(int offset,
int z) |
boolean |
currentlyRendering() |
void |
destroy() |
private void |
downsampleFullSceneAntialiasing(boolean downsampleZBuffer) |
void |
drawAtom(Atom atom) |
void |
drawBond(P3 atomA,
P3 atomB,
short colixA,
short colixB,
byte endcaps,
short mad,
int bondOrder) |
void |
drawDashedLine(int run,
int rise,
P3i pointA,
P3i pointB) |
void |
drawDottedLine(P3i pointA,
P3i pointB) |
boolean |
drawEllipse(P3 ptAtom,
P3 ptX,
P3 ptY,
boolean fillArc,
boolean wireframeOnly) |
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)
|
void |
drawHermite4(int tension,
P3i s0,
P3i s1,
P3i s2,
P3i s3) |
void |
drawHermite7(boolean fill,
boolean border,
int tension,
P3i s0,
P3i s1,
P3i s2,
P3i s3,
P3i s4,
P3i s5,
P3i s6,
P3i s7,
int aspectRatio,
short colixBack) |
private void |
drawHLine(int x,
int y,
int z,
int w) |
void |
drawImage(java.lang.Object objImage,
int x,
int y,
int z,
int zSlab,
short bgcolix,
int width,
int height) |
void |
drawLine(short colixA,
short colixB,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
void |
drawLineAB(P3i pointA,
P3i pointB) |
void |
drawLineXYZ(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
void |
drawPixel(int x,
int y,
int z) |
void |
drawPoints(int count,
int[] coordinates,
int scale) |
void |
drawQuadrilateral(short colix,
P3i screenA,
P3i screenB,
P3i screenC,
P3i screenD) |
void |
drawRect(int x,
int y,
int z,
int zSlab,
int rWidth,
int rHeight)
draws a rectangle
|
void |
drawString(java.lang.String str,
JmolFont font3d,
int xBaseline,
int yBaseline,
int z,
int zSlab,
short bgColix)
draws the specified string in the current font.
|
void |
drawStringNoSlab(java.lang.String str,
JmolFont font3d,
int xBaseline,
int yBaseline,
int z,
short bgColix)
draws the specified string in the current font.
|
void |
drawSurface(MeshSurface meshSurface,
short colix) |
void |
drawTriangle3C(P3i screenA,
short colixA,
P3i screenB,
short colixB,
P3i screenC,
short colixC,
int check) |
void |
drawTriangle3I(P3i screenA,
P3i screenB,
P3i screenC,
int check) |
private void |
drawVLine(int x,
int y,
int z,
int h) |
void |
endRendering() |
void |
fillConeSceen3f(byte endcap,
int screenDiameter,
P3 screenBase,
P3 screenTip) |
void |
fillConeScreen(byte endcap,
int screenDiameter,
P3i screenBase,
P3i screenTip,
boolean isBarb) |
void |
fillCylinder(byte endcaps,
int diameter,
P3i screenA,
P3i screenB) |
void |
fillCylinderBits(byte endcaps,
int diameter,
P3 screenA,
P3 screenB) |
void |
fillCylinderScreen(byte endcaps,
int diameter,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB) |
void |
fillCylinderScreen3I(byte endcaps,
int diameter,
P3i screenA,
P3i screenB,
P3 pt0f,
P3 pt1f,
float radius) |
void |
fillCylinderXYZ(short colixA,
short colixB,
byte endcaps,
int diameter,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB) |
void |
fillEllipsoid(P3 center,
P3[] points,
int x,
int y,
int z,
int diameter,
Matrix3f mToEllipsoidal,
double[] coef,
Matrix4f mDeriv,
int selectedOctant,
P3i[] octantPoints) |
void |
fillHermite(int tension,
int diameterBeg,
int diameterMid,
int diameterEnd,
P3i s0,
P3i s1,
P3i s2,
P3i s3) |
void |
fillQuadrilateral(P3 screenA,
P3 screenB,
P3 screenC,
P3 screenD) |
void |
fillQuadrilateral3i(P3i screenA,
short colixA,
short normixA,
P3i screenB,
short colixB,
short normixB,
P3i screenC,
short colixC,
short normixC,
P3i 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,
P3 center)
fills a solid sphere
|
void |
fillSphereI(int diameter,
P3i center)
fills a solid sphere
|
void |
fillSphereXYZ(int diameter,
int x,
int y,
int z)
fills a solid sphere
|
void |
fillTriangle(P3i screenA,
short colixA,
short normixA,
P3i screenB,
short colixB,
short normixB,
P3i screenC,
short colixC,
short normixC,
float factor) |
void |
fillTriangle3CN(P3i screenA,
short colixA,
short normixA,
P3i screenB,
short colixB,
short normixB,
P3i screenC,
short colixC,
short normixC) |
void |
fillTriangle3f(P3 screenA,
P3 screenB,
P3 screenC,
boolean setNoisy) |
void |
fillTriangle3i(P3i screenA,
P3i screenB,
P3i screenC,
P3 ptA,
P3 ptB,
P3 ptC) |
void |
fillTriangleTwoSided(short normix,
int xScreenA,
int yScreenA,
int zScreenA,
int xScreenB,
int yScreenB,
int zScreenB,
int xScreenC,
int yScreenC,
int zScreenC) |
java.lang.String |
finalizeOutput() |
java.lang.String |
getExportName() |
int |
getExportType() |
JmolFont |
getFont3DCurrent() |
GData |
getGData()
underlying GData object handles all general graphics setup.
|
double |
getPrivateKey() |
java.lang.Object |
getScreenImage(boolean isImageWrite) |
int |
getShadeIndex(short normix) |
private int |
getShadeIndexP3(P3 screenA,
P3 screenB,
P3 screenC) |
V3[] |
getTransformedVertexVectors() |
boolean |
hasContent() |
boolean |
haveTranslucentObjects() |
void |
initialize(ApiPlatform apiPlatform) |
JmolRendererInterface |
initializeExporter(java.lang.String type,
Viewer viewer,
double privateKey,
GData g3d,
java.lang.Object output) |
boolean |
initializeOutput(java.lang.String type,
Viewer viewer,
double privateKey,
GData gdata,
java.lang.Object object) |
boolean |
isCartesianExport() |
boolean |
isDirectedTowardsCamera(short normix) |
(package private) static void |
mergeBufferPixel(int[] pbuf,
int offset,
int argbB,
int bgcolor) |
(package private) void |
mergeOpaqueAndTranslucentBuffers() |
void |
plotImage(int x,
int y,
int z,
java.lang.Object image,
JmolRendererInterface jmolRenderer,
short bgcolix,
int width,
int height) |
void |
plotImagePixel(int argb,
int x,
int y,
int z,
int shade,
int bgargb) |
(package private) void |
plotPixelClippedArgb(int argb,
int x,
int y,
int z) |
void |
plotPixelClippedP3i(P3i screen) |
(package private) void |
plotPixelClippedScreened(int argb,
boolean isScreened,
int x,
int y,
int z) |
(package private) void |
plotPixelClippedXYZ(int x,
int y,
int z) |
(package private) void |
plotPixelsClipped(int count,
int x,
int y,
int z) |
(package private) void |
plotPixelsClippedRaster(int count,
int x,
int y,
int zAtLeft,
int zPastRight,
Rgb16 rgb16Left,
Rgb16 rgb16Right) |
(package private) void |
plotPixelsUnclippedCount(int count,
int x,
int y,
int z) |
(package private) void |
plotPixelsUnclippedRaster(int count,
int x,
int y,
int zAtLeft,
int zPastRight,
Rgb16 rgb16Left,
Rgb16 rgb16Right) |
(package private) void |
plotPixelUnclipped(int x,
int y,
int z) |
(package private) void |
plotPixelUnclippedArgb(int argb,
int x,
int y,
int z) |
private void |
plotPoints(int count,
int[] coordinates,
int xOffset,
int yOffset) |
void |
plotText(int x,
int y,
int z,
int argb,
int bgargb,
java.lang.String text,
JmolFont font3d,
JmolRendererInterface jmolRenderer) |
private void |
releaseBuffers() |
void |
releaseScreenImage() |
void |
renderAllStrings(java.lang.Object jmolRenderer) |
void |
renderBackground(JmolRendererInterface jmolRenderer) |
void |
renderCrossHairs(int[] minMax,
int screenWidth,
int screenHeight,
P3 navOffset,
float navDepth) |
void |
setBackgroundTransparent(boolean TF) |
boolean |
setColix(short colix)
sets current color from colix color index
|
void |
setColor(int argb) |
(package private) void |
setColorNoisy(int shadeIndex) |
void |
setFont(JmolFont font3d) |
void |
setFontFid(byte fid) |
void |
setNoisySurfaceShade(P3i screenA,
P3i screenB,
P3i screenC)
used by CartoonRenderer (DNA surface) and GeoSurfaceRenderer (face) to
assign a noisy shade to the surface it will render
|
boolean |
setPass2(boolean antialiasTranslucent) |
void |
setRotationMatrix(Matrix3f rotationMatrix) |
void |
setTempZSlab(int zSlab) |
private void |
setTriangleColixAndShadeIndex(short colix,
int shadeIndex) |
private boolean |
setTriangleTranslucency(short colixA,
short colixB,
short colixC) |
void |
setWindowParameters(int width,
int height,
boolean antialias) |
(package private) void |
setZMargin(int dz) |
void |
setZShade(boolean zShade,
int zSlab,
int zDepth,
int zShadePower) |
(package private) void |
shadeTextPixel(int offset,
int z,
int argb,
int bgargb,
int shade) |
void |
snapshotAnaglyphChannelBytes() |
void |
volumeRender(boolean TF) |
void |
volumeRender4(int diameter,
int x,
int y,
int z) |
changeColixArgb, clipCode, clipCode3, getAmbientPercent, getBgColixes, getCel, getChangeableColix, getColorArgbOrGray, getDepth, getDiffusePercent, getFont3D, getFont3DFS, getFont3DFSS, getFont3DScaled, getFontFid, getFontFidFS, getFontStyleID, getLightSource, getPhongExponent, getRenderHeight, getRenderWidth, getScreenOctant, getShades, getSlab, getSpecular, getSpecularExponent, getSpecularPercent, getSpecularPower, getTranslucentCoverOnly, isAntialiased, isClipped, isClipped3, isClippedXY, isClippedZ, isDisplayAntialiased, isInDisplayRange, isPass2, plotImage, roundInt, setAmbientPercent, setBackgroundArgb, setBackgroundImage, setCel, setDepth, setDiffusePercent, setGreyscaleMode, setNewWindowParametersForExport, setPhongExponent, setSlab, setSpecular, setSpecularExponent, setSpecularPercent, setSpecularPower, setTranslucentCoverOnly, setWidthHeight, setWinParams, setZShade2clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBgColixes, getFontFidFS, getTranslucentCoverOnly, isPass2, setTranslucentCoverOnlygetColorArgbOrGray, getDepth, getFont3DScaled, getFontFid, getRenderHeight, getRenderWidth, getSlab, isAntialiased, isClippedXY, isClippedZ, isInDisplayRange, setDepth, setSlabPlatform3D platform
LineRenderer line3d
private CircleRenderer circle3d
private SphereRenderer sphere3d
private TriangleRenderer triangle3d
private CylinderRenderer cylinder3d
private HermiteRenderer hermite3d
private boolean isFullSceneAntialiasingEnabled
private boolean antialias2
private TextString[] strings
private int stringCount
private byte[] anaglyphChannelBytes
private boolean twoPass
private boolean addAllPixels
private boolean haveTranslucentObjects
protected int[] pbuf
protected int[] pbufT
protected int[] zbuf
protected int[] zbufT
protected int translucencyMask
private int[] shadesCurrent
private int anaglyphLength
private boolean isScreened
private int argbNoisyUp
private int argbNoisyDn
private JmolFont currentFont
private Pixelator pixel
protected int zMargin
private int currentShadeIndex
private int lastRawColor
private int translucencyLog
private int saveAmbient
private int saveDiffuse
public static java.util.Comparator<TextString> sort
private boolean currentlyRendering
private final V3 vectorAB
private final V3 vectorAC
private final V3 vectorNormal
private static final short normixCount
private final V3[] transformedVectors
private final byte[] shadeIndexes
private final byte[] shadeIndexes2Sided
private static byte nullShadeIndex
public GData getGData()
getGData in interface JmolRendererInterfacevoid setZMargin(int dz)
public void initialize(ApiPlatform apiPlatform)
initialize in class GDatapublic boolean currentlyRendering()
currentlyRendering in interface JmolRendererInterfacepublic void setWindowParameters(int width,
int height,
boolean antialias)
setWindowParameters in class GDatapublic boolean checkTranslucent(boolean isAlphaTranslucent)
checkTranslucent in interface JmolRendererInterfacepublic void beginRendering(Matrix3f rotationMatrix, boolean translucentMode, boolean isImageWrite)
beginRendering in class GDatapublic void setBackgroundTransparent(boolean TF)
setBackgroundTransparent in class GDataprivate void releaseBuffers()
public boolean setPass2(boolean antialiasTranslucent)
public void endRendering()
endRendering in class GDatapublic java.lang.Object getScreenImage(boolean isImageWrite)
getScreenImage in class GDatapublic void applyAnaglygh(EnumStereoMode stereoMode, int[] stereoColors)
applyAnaglygh in class GDatapublic void snapshotAnaglyphChannelBytes()
snapshotAnaglyphChannelBytes in class GDatapublic void applyCustomAnaglyph(int[] stereoColors)
public void applyGreenAnaglyph()
public void applyBlueAnaglyph()
public void applyCyanAnaglyph()
public void releaseScreenImage()
releaseScreenImage in class GDatapublic boolean haveTranslucentObjects()
haveTranslucentObjects in interface JmolRendererInterfacepublic void setTempZSlab(int zSlab)
public void setZShade(boolean zShade,
int zSlab,
int zDepth,
int zShadePower)
private void downsampleFullSceneAntialiasing(boolean downsampleZBuffer)
void mergeOpaqueAndTranslucentBuffers()
static void mergeBufferPixel(int[] pbuf,
int offset,
int argbB,
int bgcolor)
public boolean hasContent()
public void setColor(int argb)
setColor in interface JmolRendererInterfacesetColor in class GDatapublic boolean setColix(short colix)
setColix in interface JmolRendererInterfacesetColix in class GDatacolix - the color indexvoid addPixel(int offset,
int z,
int p)
void clearPixel(int offset,
int z)
public void drawFilledCircle(short colixRing,
short colixFill,
int diameter,
int x,
int y,
int z)
JmolRendererInterfacedrawFilledCircle in interface JmolRendererInterfacex - center xy - center yz - center zpublic void volumeRender4(int diameter,
int x,
int y,
int z)
volumeRender4 in interface JmolRendererInterfacepublic void fillSphereXYZ(int diameter,
int x,
int y,
int z)
fillSphereXYZ in interface JmolRendererInterfacediameter - pixel countx - center xy - center yz - center zpublic void volumeRender(boolean TF)
volumeRender in interface JmolRendererInterfacepublic void fillSphereI(int diameter,
P3i center)
fillSphereI in interface JmolRendererInterfacediameter - pixel countcenter - javax.vecmath.Point3i defining the centerpublic void fillSphere(int diameter,
P3 center)
fillSphere in interface JmolRendererInterfacediameter - pixel countcenter - a javax.vecmath.Point3f ... floats are casted to intspublic void fillEllipsoid(P3 center, P3[] points, int x, int y, int z, int diameter, Matrix3f mToEllipsoidal, double[] coef, Matrix4f mDeriv, int selectedOctant, P3i[] octantPoints)
fillEllipsoid in interface JmolRendererInterfacepublic 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 countprivate 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 countpublic void drawString(java.lang.String str,
JmolFont font3d,
int xBaseline,
int yBaseline,
int z,
int zSlab,
short bgColix)
drawString in interface JmolRendererInterfacestr - the Stringfont3d - the Font3DxBaseline - baseline xyBaseline - baseline yz - baseline zzSlab - z for slab calculationbgColix - public void drawStringNoSlab(java.lang.String str,
JmolFont font3d,
int xBaseline,
int yBaseline,
int z,
short bgColix)
drawStringNoSlab in interface JmolRendererInterfacestr - the Stringfont3d - the Font3DxBaseline - baseline xyBaseline - baseline yz - baseline zbgColix - public void renderAllStrings(java.lang.Object jmolRenderer)
renderAllStrings in interface JmolGraphicsInterfacerenderAllStrings in class GDatapublic void plotText(int x,
int y,
int z,
int argb,
int bgargb,
java.lang.String text,
JmolFont font3d,
JmolRendererInterface jmolRenderer)
public void drawImage(java.lang.Object objImage,
int x,
int y,
int z,
int zSlab,
short bgcolix,
int width,
int height)
drawImage in interface JmolRendererInterfacepublic void plotImage(int x,
int y,
int z,
java.lang.Object image,
JmolRendererInterface jmolRenderer,
short bgcolix,
int width,
int height)
public void setFontFid(byte fid)
setFontFid in interface JmolRendererInterfacesetFontFid in class GDatapublic JmolFont getFont3DCurrent()
getFont3DCurrent in interface JmolRendererInterfacegetFont3DCurrent in class GDatapublic void drawPixel(int x,
int y,
int z)
drawPixel in interface JmolRendererInterfacepublic void drawPoints(int count,
int[] coordinates,
int scale)
drawPoints in interface JmolRendererInterfacepublic void drawDashedLine(int run,
int rise,
P3i pointA,
P3i pointB)
drawDashedLine in interface JmolRendererInterfacepublic void drawDottedLine(P3i pointA, P3i pointB)
drawDottedLine in interface JmolRendererInterfacepublic void drawLineXYZ(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
drawLineXYZ in interface JmolRendererInterfacepublic void drawLine(short colixA,
short colixB,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
drawLine in interface JmolRendererInterfacepublic void drawLineAB(P3i pointA, P3i pointB)
drawLineAB in interface JmolRendererInterfacepublic void fillCylinderXYZ(short colixA,
short colixB,
byte endcaps,
int diameter,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB)
fillCylinderXYZ in interface JmolRendererInterfacepublic void fillCylinderScreen(byte endcaps,
int diameter,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB)
fillCylinderScreen in interface JmolRendererInterfacepublic void fillCylinderScreen3I(byte endcaps,
int diameter,
P3i screenA,
P3i screenB,
P3 pt0f,
P3 pt1f,
float radius)
fillCylinderScreen3I in interface JmolRendererInterfacepublic void fillCylinder(byte endcaps,
int diameter,
P3i screenA,
P3i screenB)
fillCylinder in interface JmolRendererInterfacepublic void fillCylinderBits(byte endcaps,
int diameter,
P3 screenA,
P3 screenB)
fillCylinderBits in interface JmolRendererInterfacepublic void fillConeScreen(byte endcap,
int screenDiameter,
P3i screenBase,
P3i screenTip,
boolean isBarb)
fillConeScreen in interface JmolRendererInterfacepublic void fillConeSceen3f(byte endcap,
int screenDiameter,
P3 screenBase,
P3 screenTip)
fillConeSceen3f in interface JmolRendererInterfacepublic void drawHermite4(int tension,
P3i s0,
P3i s1,
P3i s2,
P3i s3)
drawHermite4 in interface JmolRendererInterfacepublic void drawHermite7(boolean fill,
boolean border,
int tension,
P3i s0,
P3i s1,
P3i s2,
P3i s3,
P3i s4,
P3i s5,
P3i s6,
P3i s7,
int aspectRatio,
short colixBack)
drawHermite7 in interface JmolRendererInterfacepublic void fillHermite(int tension,
int diameterBeg,
int diameterMid,
int diameterEnd,
P3i s0,
P3i s1,
P3i s2,
P3i s3)
fillHermite in interface JmolRendererInterfacepublic void drawTriangle3C(P3i screenA, short colixA, P3i screenB, short colixB, P3i screenC, short colixC, int check)
drawTriangle3C in interface JmolRendererInterfacepublic void drawTriangle3I(P3i screenA, P3i screenB, P3i screenC, int check)
drawTriangle3I in interface JmolRendererInterfacepublic void fillTriangleTwoSided(short normix,
int xScreenA,
int yScreenA,
int zScreenA,
int xScreenB,
int yScreenB,
int zScreenB,
int xScreenC,
int yScreenC,
int zScreenC)
fillTriangleTwoSided in interface JmolRendererInterfacepublic void fillTriangle3f(P3 screenA, P3 screenB, P3 screenC, boolean setNoisy)
fillTriangle3f in interface JmolRendererInterfacepublic void fillTriangle3i(P3i screenA, P3i screenB, P3i screenC, P3 ptA, P3 ptB, P3 ptC)
fillTriangle3i in interface JmolRendererInterfacepublic void fillTriangle(P3i screenA, short colixA, short normixA, P3i screenB, short colixB, short normixB, P3i screenC, short colixC, short normixC, float factor)
fillTriangle in interface JmolRendererInterfacepublic void fillTriangle3CN(P3i screenA, short colixA, short normixA, P3i screenB, short colixB, short normixB, P3i screenC, short colixC, short normixC)
fillTriangle3CN in interface JmolRendererInterfaceprivate void setTriangleColixAndShadeIndex(short colix,
int shadeIndex)
private boolean setTriangleTranslucency(short colixA,
short colixB,
short colixC)
public void drawQuadrilateral(short colix,
P3i screenA,
P3i screenB,
P3i screenC,
P3i screenD)
drawQuadrilateral in interface JmolRendererInterfacepublic void fillQuadrilateral(P3 screenA, P3 screenB, P3 screenC, P3 screenD)
fillQuadrilateral in interface JmolRendererInterfacepublic void fillQuadrilateral3i(P3i screenA, short colixA, short normixA, P3i screenB, short colixB, short normixB, P3i screenC, short colixC, short normixC, P3i screenD, short colixD, short normixD)
fillQuadrilateral3i in interface JmolRendererInterfacepublic void drawSurface(MeshSurface meshSurface, short colix)
drawSurface in interface JmolRendererInterfacevoid plotPixelClippedXYZ(int x,
int y,
int z)
public void plotPixelClippedP3i(P3i screen)
plotPixelClippedP3i in interface JmolRendererInterfacevoid plotPixelClippedArgb(int argb,
int x,
int y,
int z)
public void plotImagePixel(int argb,
int x,
int y,
int z,
int shade,
int bgargb)
plotImagePixel in interface JmolRendererInterfacevoid plotPixelClippedScreened(int argb,
boolean isScreened,
int x,
int y,
int z)
void plotPixelUnclipped(int x,
int y,
int z)
void plotPixelUnclippedArgb(int argb,
int x,
int y,
int z)
void plotPixelsClipped(int count,
int x,
int y,
int z)
void plotPixelsClippedRaster(int count,
int x,
int y,
int zAtLeft,
int zPastRight,
Rgb16 rgb16Left,
Rgb16 rgb16Right)
void plotPixelsUnclippedRaster(int count,
int x,
int y,
int zAtLeft,
int zPastRight,
Rgb16 rgb16Left,
Rgb16 rgb16Right)
void plotPixelsUnclippedCount(int count,
int x,
int y,
int z)
private void plotPoints(int count,
int[] coordinates,
int xOffset,
int yOffset)
void setColorNoisy(int shadeIndex)
public void setNoisySurfaceShade(P3i screenA, P3i screenB, P3i screenC)
setNoisySurfaceShade in interface JmolRendererInterfacesetNoisySurfaceShade in class GDatascreenA - screenB - screenC - public void renderBackground(JmolRendererInterface jmolRenderer)
renderBackground in interface JmolRendererInterfacerenderBackground in class GDatapublic void drawAtom(Atom atom)
drawAtom in interface JmolRendererInterfacepublic int getExportType()
getExportType in interface JmolRendererInterfacepublic java.lang.String getExportName()
getExportName in interface JmolRendererInterfacepublic boolean canDoTriangles()
public boolean isCartesianExport()
public JmolRendererInterface initializeExporter(java.lang.String type, Viewer viewer, double privateKey, GData g3d, java.lang.Object output)
initializeExporter in interface JmolRendererInterfacepublic java.lang.String finalizeOutput()
finalizeOutput in interface JmolRendererInterfacepublic void drawBond(P3 atomA, P3 atomB, short colixA, short colixB, byte endcaps, short mad, int bondOrder)
drawBond in interface JmolRendererInterfacepublic boolean drawEllipse(P3 ptAtom, P3 ptX, P3 ptY, boolean fillArc, boolean wireframeOnly)
drawEllipse in interface JmolRendererInterfacepublic double getPrivateKey()
public void clearFontCache()
clearFontCache in class GDatapublic V3[] getTransformedVertexVectors()
getTransformedVertexVectors in interface JmolRendererInterfacegetTransformedVertexVectors in class GDatapublic boolean isDirectedTowardsCamera(short normix)
isDirectedTowardsCamera in interface JmolRendererInterfaceisDirectedTowardsCamera in class GDatapublic void setRotationMatrix(Matrix3f rotationMatrix)
public int getShadeIndex(short normix)
public void renderCrossHairs(int[] minMax,
int screenWidth,
int screenHeight,
P3 navOffset,
float navDepth)
renderCrossHairs in interface JmolRendererInterfaceminMax - screenWidth - screenHeight - navOffset - navDepth - public boolean initializeOutput(java.lang.String type,
Viewer viewer,
double privateKey,
GData gdata,
java.lang.Object object)
initializeOutput in interface JmolRendererInterfacevoid shadeTextPixel(int offset,
int z,
int argb,
int bgargb,
int shade)