Scientific.Visualization.VMD.VMDObject

Package Scientific :: Package Visualization :: Module VMD :: Class VMDObject |
[frames] | no frames]

# Class VMDObject

Known Subclasses:
  - ShapeObject
  - , Material
  - , Molecules

Graphics object for VMD

This is an abstract base class. Use one of the subclasses to generate graphics.

Instance Methods
__copy__(self) |
__getitem__(self, attr) Returns: the value of the attribute, or `None` if the attribute is undefined |
__init__(self, attr) |
__setitem__(self, attr, value) |
writeToFile(self, file) |

Class Variables
| attribute_names = ``[``'``comment``'``]``

Method Details

### __getitem__(self, attr) (Indexing operator) |
Parameters: `attr` (`str`) - the name of a graphics attribute Returns: the value of the attribute, or `None` if the attribute is undefined

### __init__(self, attr) (Constructor) |
Parameters: `attr` - graphics attributes specified by keywords `material` (Material) - color and surface properties `comment` (`str`) - a comment that is written to the script file

### __setitem__(self, attr, value) (Index assignment operator) |
Parameters: `attr` (`str`) - the name of a graphics attribute `value` - a new value for the attribute