Package 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
  • 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

  • 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

      Object getGraphicsForTextOrImage(int width, int height)
    • allocateOffscreenImage

      private Object allocateOffscreenImage(int width, int height)
    • setBackgroundTransparent

      void setBackgroundTransparent(boolean tf)