Package schrodinger :: Package application :: Package phase :: Module phase_markers :: Class PhaseSphere
[hide private]
[frames] | no frames]

Class PhaseSphere

                 object --+            
                          |            
graphics3d.common.Primitive --+        
                              |        
   graphics3d.sphere.SphereCore --+    
                                  |    
    graphics3d.sphere.MaestroSphere --+
                                      |
                                     PhaseSphere

Phase sphere graphics object.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Constructor requires:
 
setSelected(self, selected, color=None)
Shows sphere as selected (with a glow effect).

Inherited from graphics3d.sphere.MaestroSphere: setColors, setCoords, setRGBColors, setXYZCoords

Inherited from graphics3d.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__

Static Methods [hide private]
Class Variables [hide private]
Properties [hide private]

Inherited from graphics3d.sphere.MaestroSphere: b, g, material, opacity, pick_category, pick_id, r, radius, x, y, z

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(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__
(inherited documentation)

setSelected(self, selected, color=None)

 

Shows sphere as selected (with a glow effect). Glow effect color only needs to be specified when turning it 'on'.

Parameters:
  • selected (bool) - indicates whether sphere should be selected (if True) or not (if False)
  • color (tuple) - color used for selected glow effect.