org.jmol.g3d
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.
Modifier and Type | Class and Description |
---|---|
(package private) class |
Platform3D.ClearingThread |
Modifier and Type | Field and Description |
---|---|
(package private) ApiPlatform |
apiPlatform |
private static boolean |
backgroundTransparent |
(package private) int |
bufferHeight |
(package private) int |
bufferSize |
(package private) int |
bufferSizeT |
(package private) int |
bufferWidth |
(package private) Platform3D.ClearingThread |
clearingThread |
(package private) static boolean |
desireClearingThread |
(package private) static boolean |
forcePlatformAWT |
(package private) Object |
gOffscreen |
(package private) Object |
graphicsOffscreen |
(package private) int |
heightOffscreen |
(package private) Object |
imageOffscreen |
(package private) Object |
imagePixelBuffer |
(package private) int[] |
pBuffer |
(package private) int[] |
pBufferT |
(package private) boolean |
useClearingThread |
(package private) int |
widthOffscreen |
(package private) int |
windowHeight |
(package private) int |
windowSize |
(package private) int |
windowWidth |
(package private) int[] |
zBuffer |
(package private) int[] |
zBufferT |
Constructor and Description |
---|
Platform3D() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
allocateBuffers(int width,
int height,
boolean antialias) |
private Object |
allocateImage() |
private Object |
allocateOffscreenImage(int width,
int height) |
(package private) void |
allocateTBuffers(boolean antialiasTranslucent) |
(package private) boolean |
checkOffscreenSize(int width,
int height) |
(package private) void |
clearScreenBuffer() |
(package private) void |
clearScreenBufferThreaded() |
(package private) void |
clearTBuffer() |
(package private) static Platform3D |
createInstance(ApiPlatform apiPlatform) |
private Object |
getGraphics(Object image) |
(package private) boolean |
hasContent() |
(package private) void |
initialize(boolean useClearingThread) |
(package private) void |
notifyEndOfRendering() |
(package private) void |
obtainScreenBuffer() |
(package private) void |
releaseBuffers() |
(package private) void |
setBackgroundColor(int bgColor) |
(package private) void |
setBackgroundTransparent(boolean tf) |
int windowWidth
int windowHeight
int windowSize
int bufferWidth
int bufferHeight
int bufferSize
int bufferSizeT
Object imagePixelBuffer
int[] pBuffer
int[] pBufferT
int[] zBuffer
int[] zBufferT
int widthOffscreen
int heightOffscreen
Object imageOffscreen
Object gOffscreen
Object graphicsOffscreen
static final boolean forcePlatformAWT
static final boolean desireClearingThread
boolean useClearingThread
Platform3D.ClearingThread clearingThread
ApiPlatform apiPlatform
private static boolean backgroundTransparent
static Platform3D createInstance(ApiPlatform apiPlatform)
final void initialize(boolean useClearingThread)
void allocateTBuffers(boolean antialiasTranslucent)
void allocateBuffers(int width, int height, boolean antialias)
void releaseBuffers()
boolean hasContent()
void clearScreenBuffer()
void setBackgroundColor(int bgColor)
void clearTBuffer()
final void obtainScreenBuffer()
final void clearScreenBufferThreaded()
void notifyEndOfRendering()
boolean checkOffscreenSize(int width, int height)
void setBackgroundTransparent(boolean tf)
private Object allocateImage()
private Object allocateOffscreenImage(int width, int height)