Package schrodinger :: Package structutils :: Module color :: Class ColorScheme
[hide private]
[frames] | no frames]

Class ColorScheme

Define a Maestro color scheme.

This class provides the following functionality:

   colorscheme.apply(st, [atoms])
   for color, asl in colorscheme:
       <do>
Instance Methods [hide private]
 
__init__(self, name=None, color_asl_list=None)
 
add(self, color, asl)
Add another set of rules to this color scheme.
 
copy(self)
Return a copy of this scheme.
 
apply(self, st, atoms=None)
Applies the scheme to the specified Structure <st>.
 
__iter__(self)
Iterate over all entries in this scheme.
 
writeSchemeFile(self, filename)
Write the scheme to the specified *.sch file.
Method Details [hide private]

add(self, color, asl)

 

Add another set of rules to this color scheme.

Parameters:
  • color - color string
  • asl - what to apply the color to

apply(self, st, atoms=None)

 

Applies the scheme to the specified Structure <st>.

Parameters:
  • atoms - Optionally specify which atoms to apply the scheme to in format. Can be a list atom atom indices, or a Bitset instance.

__iter__(self)

 

Iterate over all entries in this scheme.

Returns a tuple of (Color, asl)