Package org.jmol.g3d
Class Platform3D
- java.lang.Object
-
- org.jmol.g3d.Platform3D
-
class Platform3D extends java.lang.ObjectSpecifies the API to an underlying int[] buffer of ARGB values that can be converted into an Image object and a short[] for z-buffer depth.
- Author:
- Miguel, miguel@jmol.org
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javajs.api.GenericPlatformapiPlatformprivate static booleanbackgroundTransparent(package private) java.lang.ObjectbufferedImage(package private) intbufferHeight(package private) intbufferSize(package private) intbufferSizeT(package private) intbufferWidth(package private) java.lang.ObjectgraphicsForTextOrImage(package private) intheightOffscreen(package private) java.lang.ObjectoffscreenImage(package private) int[]pBuffer(package private) int[]pBufferT(package private) intwidthOffscreen(package private) intwindowHeight(package private) intwindowSize(package private) intwindowWidth(package private) int[]zBuffer(package private) int[]zBufferT
-
Constructor Summary
Constructors Constructor Description Platform3D(javajs.api.GenericPlatform apiPlatform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidallocateBuffers(int width, int height, boolean antialias, boolean isImageWrite)private java.lang.ObjectallocateOffscreenImage(int width, int height)(package private) voidallocateTBuffers(boolean antialiasTranslucent)(package private) voidclearBuffer()(package private) voidclearScreenBuffer()(package private) voidclearScreenBufferThreaded()(package private) voidclearTBuffer()(package private) java.lang.ObjectgetGraphicsForMetrics()(package private) java.lang.ObjectgetGraphicsForTextOrImage(int width, int height)(package private) booleanhasContent()(package private) voidnotifyEndOfRendering()(package private) voidreleaseBuffers()(package private) voidsetBackgroundColor(int bgColor)(package private) voidsetBackgroundTransparent(boolean tf)
-
-
-
Field Detail
-
windowWidth
int windowWidth
-
windowHeight
int windowHeight
-
windowSize
int windowSize
-
bufferWidth
int bufferWidth
-
bufferHeight
int bufferHeight
-
bufferSize
int bufferSize
-
bufferSizeT
int bufferSizeT
-
bufferedImage
java.lang.Object bufferedImage
-
pBuffer
int[] pBuffer
-
pBufferT
int[] pBufferT
-
zBuffer
int[] zBuffer
-
zBufferT
int[] zBufferT
-
widthOffscreen
int widthOffscreen
-
heightOffscreen
int heightOffscreen
-
offscreenImage
java.lang.Object offscreenImage
-
graphicsForTextOrImage
java.lang.Object graphicsForTextOrImage
-
apiPlatform
javajs.api.GenericPlatform apiPlatform
-
backgroundTransparent
private static boolean backgroundTransparent
-
-
Method Detail
-
getGraphicsForMetrics
java.lang.Object getGraphicsForMetrics()
-
allocateTBuffers
void allocateTBuffers(boolean antialiasTranslucent)
-
allocateBuffers
void allocateBuffers(int width, int height, boolean antialias, boolean isImageWrite)- Parameters:
width-height-antialias-isImageWrite-
-
releaseBuffers
void releaseBuffers()
-
hasContent
boolean hasContent()
-
clearScreenBuffer
void clearScreenBuffer()
-
setBackgroundColor
void setBackgroundColor(int bgColor)
-
clearTBuffer
void clearTBuffer()
-
clearBuffer
final void clearBuffer()
-
clearScreenBufferThreaded
final void clearScreenBufferThreaded()
-
notifyEndOfRendering
void notifyEndOfRendering()
-
getGraphicsForTextOrImage
java.lang.Object getGraphicsForTextOrImage(int width, int height)
-
allocateOffscreenImage
private java.lang.Object allocateOffscreenImage(int width, int height)
-
setBackgroundTransparent
void setBackgroundTransparent(boolean tf)
-
-