Package schrodinger :: Package graphics3d :: Module torus :: Class TorusCore
[hide private]
[frames] | no frames]

Class TorusCore

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

Base class for MaestroTorus.

See doc string for __init__ for details on instantiation.

Toruses should be added to a TorusGroup and drawing done via TorusGroup. See TorusGroup documentation.

Instance Methods [hide private]
 
__init__(self, x0=None, y0=None, z0=None, x1=None, y1=None, z1=None, color=None, r=None, g=None, b=None, radius=None, tube_radius=None, transparency=None, opacity=1.0, resolution_u=5, resolution_v=3)
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, x0=None, y0=None, z0=None, x1=None, y1=None, z1=None, color=None, r=None, g=None, b=None, radius=None, tube_radius=None, transparency=None, opacity=1.0, resolution_u=5, resolution_v=3)
(Constructor)

 

Constructor requires:

x0, y0, z0:  coordinate specifying center of torus in Angstroms.

x1, y1, z1:  coordinate specifying projected center of torus
        in Angstroms.

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

radius:   radius of the torus in Angstroms

tube_radius:  radius of the tube of the torus in Angstroms

Optional arguments:

opacity:  0.0 (transparent) through 1.0 (opaque)
               Defaults to 1.0

resolution_u:    2 to 30, resolution in the U direction of the surface
               Defaults to 5

resolution_v:    2 to 30, resolution in the V direction of the surface
               Defaults to 3

Overrides: object.__init__