Package org.jmol.g3d

Class Platform3D


  • class Platform3D
    extends java.lang.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
    • 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
    • Constructor Detail

      • Platform3D

        Platform3D​(javajs.api.GenericPlatform apiPlatform)
    • 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)