Package schrodinger :: Package graphics3d :: Module sphere
[hide private]
[frames] | no frames]

Module sphere

OpenGL spheres.

The sphere module allows creation and drawing of spheres. Clients draw using Group instances not through Sphere instances.

Drawing is done in whatever is the current GL rendering context and current GL window. So you must set those prior to drawing. If you are using this with Maestro's drawing callback mechanism you need not worry about the above details. These are handled for you automatically.

Control over the center, radius, color, resolution and opacity of a sphere are provided. See the Sphere class for more info.

To draw any number of spheres, create the Sphere instance and add it to a Group instance. Then invoke the Group's draw() method.

Copyright Schrodinger, LLC. All rights reserved.

Classes [hide private]
  SphereCore
Base class for Sphere and MaestroSphere classes.
  Sphere
Class to draw a 3D sphere in OpenGL.
  MaestroSphere
Class to create a 3D sphere in Maestro.
Variables [hide private]
  version = '$Revision: 1.18 $'
  RESOLUTION_MIN = 4
  RESOLUTION_MAX = 50
  RESOLUTION_DEFAULT = 16
  maestro = None
hash(x)
  TRANSPARENCY_DEFAULT = 0.0
  OPACITY_DEFAULT = 1.0
  BOUNDING_BOX_INIT_VALUE = 100000000.0
  __package__ = 'schrodinger.graphics3d'