org.jmol.g3d

Class Platform3D

abstract 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

Nested Class Summary
classPlatform3D.ClearingThread
Field Summary
intbufferHeight
intbufferSize
intbufferSizeT
intbufferWidth
Platform3D.ClearingThreadclearingThread
static booleandesireClearingThread
static booleanforcePlatformAWT
GraphicsgOffscreen
intheightOffscreen
ImageimageOffscreen
ImageimagePixelBuffer
int[]pBuffer
int[]pBufferT
booleanuseClearingThread
intwidthOffscreen
intwindowHeight
intwindowSize
intwindowWidth
int[]zBuffer
int[]zBufferT
Method Summary
voidallocateBuffers(int width, int height, boolean antialias)
abstract ImageallocateImage()
abstract ImageallocateOffscreenImage(int width, int height)
static Platform3DallocateSwing3D()
voidallocateTBuffers(boolean antialiasTranslucent)
booleancheckOffscreenSize(int width, int height)
voidclearScreenBuffer()
voidclearScreenBufferThreaded()
voidclearTBuffer()
static Platform3DcreateInstance(Component awtComponent)
abstract GraphicsgetGraphics(Image imageOffscreen)
booleanhasContent()
voidinitialize(boolean useClearingThread)
voidnotifyEndOfRendering()
voidobtainScreenBuffer()
voidreleaseBuffers()
voidsetBackgroundColor(int bgColor)
voidsetBackgroundTransparent(boolean tf)

Field Detail

bufferHeight

int bufferHeight

bufferSize

int bufferSize

bufferSizeT

int bufferSizeT

bufferWidth

int bufferWidth

clearingThread

Platform3D.ClearingThread clearingThread

desireClearingThread

static final boolean desireClearingThread

forcePlatformAWT

static final boolean forcePlatformAWT

gOffscreen

Graphics gOffscreen

heightOffscreen

int heightOffscreen

imageOffscreen

Image imageOffscreen

imagePixelBuffer

Image imagePixelBuffer

pBuffer

int[] pBuffer

pBufferT

int[] pBufferT

useClearingThread

boolean useClearingThread

widthOffscreen

int widthOffscreen

windowHeight

int windowHeight

windowSize

int windowSize

windowWidth

int windowWidth

zBuffer

int[] zBuffer

zBufferT

int[] zBufferT

Method Detail

allocateBuffers

void allocateBuffers(int width, int height, boolean antialias)

allocateImage

abstract Image allocateImage()

allocateOffscreenImage

abstract Image allocateOffscreenImage(int width, int height)

allocateSwing3D

private static Platform3D allocateSwing3D()

allocateTBuffers

void allocateTBuffers(boolean antialiasTranslucent)

checkOffscreenSize

boolean checkOffscreenSize(int width, int height)

clearScreenBuffer

void clearScreenBuffer()

clearScreenBufferThreaded

final void clearScreenBufferThreaded()

clearTBuffer

void clearTBuffer()

createInstance

static Platform3D createInstance(Component awtComponent)

getGraphics

abstract Graphics getGraphics(Image imageOffscreen)

hasContent

boolean hasContent()

initialize

final void initialize(boolean useClearingThread)

notifyEndOfRendering

void notifyEndOfRendering()

obtainScreenBuffer

final void obtainScreenBuffer()

releaseBuffers

void releaseBuffers()

setBackgroundColor

void setBackgroundColor(int bgColor)

setBackgroundTransparent

void setBackgroundTransparent(boolean tf)