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

Class PhaseSphereMarkers

object --+
         |
        PhaseSphereMarkers
Known Subclasses:

Base class that defines group of sphere markers.

Instance Methods [hide private]
 
__init__(self, entry_id)
Marker initializer.
 
addSphere(self, xyz, radius)
Adds spehere to marker group.
 
setSphereRadiusAndCoords(self, sphere_index, r, x, y, z)
Sets sphere radius and coordinates.
 
removeSpheres(self, sphere_indices)
Removes spheres from the group.
 
setSelected(self, sphere_indices)
Shows the specified spheres as selected (with a glow effect).
 
resetSelected(self)
Resets current selection.
 
show(self)
Show all spheres for this group.
 
hide(self)
Hide all spheres for this group.
 
clear(self)
Deletes all spheres for this group.

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

Class Variables [hide private]
  SPHERE_COLOR = (1.0, 1.0, 0.0)
  SELECTED_COLOR = (0.25, 0.5, 0.95)
  SPHERE_OPACITY = 0.1
  SPHERE_RESOLUTION = 20
  ANGLE_DEP_TRANSPARENCY = True
hash(x)
  next_sphere_id = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, entry_id)
(Constructor)

 

Marker initializer.

Parameters:
  • entry_id (int) - hypothesis entry ID
Overrides: object.__init__

addSphere(self, xyz, radius)

 

Adds spehere to marker group.

Parameters:
  • xyz ((float, float, float)) - sphere coordinates
  • radius (float) - sphere radius

setSphereRadiusAndCoords(self, sphere_index, r, x, y, z)

 

Sets sphere radius and coordinates.

Parameters:
  • sphere_index (int) - index of sphere in self.spheres list
  • r (float) - sphere radius
  • x - sphere x-coordinate
  • x - float
  • y - sphere y-coordinate
  • y - float
  • z - sphere z-coordinate
  • z - float

removeSpheres(self, sphere_indices)

 

Removes spheres from the group.

Parameters:
  • sphere_indices (list) - list of indices to the self.sphere list

setSelected(self, sphere_indices)

 

Shows the specified spheres as selected (with a glow effect).

Parameters:
  • sphere_indices (list) - list of indices to the self.sphere list