Package org.jmol.g3d


package org.jmol.g3d

Provides a software implementation of complete 3D graphics engine for rendering molecules and associated shapes. basic shapes.

This package implements all graphics primitives used by Jmol. The graphics engine does not use Java3D or OpenGL. It requires no specialized graphics hardware. This allows Jmol and the JmolApplet to run on any machine that has a JVM.

It is a software implementation of a graphics z-buffer. An int[] called pbuf (for pixel buffer) is used to hold ARGB values for pixels. A short[] called zbuf holds the z-depth value.

Shape primitives are provided for drawing spheres, cylinders, triangles, etc. Shading primitives provide lighting/shading support

Makes use of javax.vecmath classes.
  • Class
    Description
    Implements flat circle drawing/filling routines.
    Draws shaded cylinders in 3D.
     
    Provides high-level graphics primitives for 3D visualization for the software renderers.
    Implementation of hermite curves for drawing smoothed curves that pass through specified points.
     
     
    A class to create a "screened" translucent effect by discarding pixels in a checkerboard fashion.
    A class to do Z Shading of pixels.
    Handle pixels in Pass 2 - Translucency
    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.
    Note added 4/2015 BH: Well, it turns out that the calculation of the intermediate pixel z value in all methods involving rasterization of lines is incorrect and has been incorrect since Jmol's inception.
    Implements high performance rendering of shaded spheres.
    implementation for text rendering
     
    renders triangles