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

Class SphereCore

      object --+    
               |    
common.Primitive --+
                   |
                  SphereCore
Known Subclasses:

Base class for Sphere and MaestroSphere classes.

See doc string for __init__ for details on instantiation.

Spheres should be added to a SphereGroup and drawing done via SphereGroup. See SphereGroup documentation.

Instance Methods [hide private]
 
__init__(self, x=None, y=None, z=None, color=None, r=None, g=None, b=None, radius=None, transparency=None, opacity=1.0, resolution=16)
Constructor requires:
 
_calculateBoundingBox(self, mat)

Inherited from common.Primitive: __del__, groupHidden, groupShown, hide, isGroupShown, isShown, setEntryID, setGlowColor, setIsGlowing, setRightClickOnGObject, show

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _blend = None
hash(x)
  _smooth_point = None
hash(x)
  _cull = None
hash(x)
  _lighting = None
hash(x)
  _lighting_model = None
hash(x)
  _shading_model = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, x=None, y=None, z=None, color=None, r=None, g=None, b=None, radius=None, transparency=None, opacity=1.0, resolution=16)
(Constructor)

 

Constructor requires:

x, y, z:  coordinate specifying center of sphere in Angstroms.

color:    One of:
            Color object
            Color name (string)
            Tuble of (R, G, B) (each 0.0-1.0)

radius:   radius of the sphere in Angstroms


Optional arguments:

opacity:  0.0 (transparent) through 1.0 (opaque)
               Defaults to 1.0
resolution:    4 to 50
               Defaults to 16
          

Overrides: object.__init__