Package org.jmol.g3d
Class Platform3D
java.lang.Object
org.jmol.g3d.Platform3D
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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) GenericPlatform
private static boolean
(package private) Object
(package private) int
(package private) int
(package private) int
(package private) int
(package private) Object
(package private) int
(package private) Object
(package private) int[]
(package private) int[]
(package private) int
(package private) int
(package private) int
(package private) int
(package private) int[]
(package private) int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
allocateBuffers
(int width, int height, boolean antialias, boolean isImageWrite) private Object
allocateOffscreenImage
(int width, int height) (package private) void
allocateTBuffers
(boolean antialiasTranslucent) (package private) final void
(package private) void
(package private) final void
(package private) void
(package private) Object
(package private) Object
getGraphicsForTextOrImage
(int width, int height) (package private) boolean
(package private) void
(package private) void
(package private) void
setBackgroundColor
(int bgColor) (package private) void
setBackgroundTransparent
(boolean tf)
-
Field Details
-
windowWidth
int windowWidth -
windowHeight
int windowHeight -
windowSize
int windowSize -
bufferWidth
int bufferWidth -
bufferHeight
int bufferHeight -
bufferSize
int bufferSize -
bufferSizeT
int bufferSizeT -
bufferedImage
Object bufferedImage -
pBuffer
int[] pBuffer -
pBufferT
int[] pBufferT -
zBuffer
int[] zBuffer -
zBufferT
int[] zBufferT -
widthOffscreen
int widthOffscreen -
heightOffscreen
int heightOffscreen -
offscreenImage
Object offscreenImage -
graphicsForTextOrImage
Object graphicsForTextOrImage -
apiPlatform
GenericPlatform apiPlatform -
backgroundTransparent
private static boolean backgroundTransparent
-
-
Constructor Details
-
Platform3D
Platform3D(GenericPlatform apiPlatform)
-
-
Method Details
-
getGraphicsForMetrics
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
-
allocateOffscreenImage
-
setBackgroundTransparent
void setBackgroundTransparent(boolean tf)
-