org.jmol.g3d
Class Platform3D
java.lang.Object
org.jmol.g3d.Platform3D
class Platform3D
- extends Object
Specifies 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
windowWidth
int windowWidth
windowHeight
int windowHeight
windowSize
int windowSize
bufferWidth
int bufferWidth
bufferHeight
int bufferHeight
bufferSize
int bufferSize
bufferSizeT
int bufferSizeT
imagePixelBuffer
Image imagePixelBuffer
pBuffer
int[] pBuffer
pBufferT
int[] pBufferT
zBuffer
int[] zBuffer
zBufferT
int[] zBufferT
widthOffscreen
int widthOffscreen
heightOffscreen
int heightOffscreen
imageOffscreen
Image imageOffscreen
gOffscreen
Graphics gOffscreen
forcePlatformAWT
static final boolean forcePlatformAWT
- See Also:
- Constant Field Values
desireClearingThread
static final boolean desireClearingThread
- See Also:
- Constant Field Values
useClearingThread
boolean useClearingThread
clearingThread
Platform3D.ClearingThread clearingThread
graphicsOffscreen
Graphics graphicsOffscreen
rgbColorModel
private static final DirectColorModel rgbColorModel
sampleModelBitMasks
private static final int[] sampleModelBitMasks
backgroundTransparent
private static boolean backgroundTransparent
Platform3D
Platform3D()
createInstance
static Platform3D createInstance(Component awtComponent)
initialize
final void initialize(boolean useClearingThread)
allocateTBuffers
void allocateTBuffers(boolean antialiasTranslucent)
allocateBuffers
void allocateBuffers(int width,
int height,
boolean antialias)
releaseBuffers
void releaseBuffers()
hasContent
boolean hasContent()
clearScreenBuffer
void clearScreenBuffer()
setBackgroundColor
void setBackgroundColor(int bgColor)
clearTBuffer
void clearTBuffer()
obtainScreenBuffer
final void obtainScreenBuffer()
clearScreenBufferThreaded
final void clearScreenBufferThreaded()
notifyEndOfRendering
void notifyEndOfRendering()
checkOffscreenSize
boolean checkOffscreenSize(int width,
int height)
allocateImage
Image allocateImage()
setBackgroundTransparent
void setBackgroundTransparent(boolean tf)
allocateOffscreenImage
Image allocateOffscreenImage(int width,
int height)
getGraphics
Graphics getGraphics(Image image)
getStaticGraphics
static Graphics getStaticGraphics(Image image)