Home | Trees | Index | Help |
|
---|
Package mmLib :: Module Viewer :: Class GLAtomList |
|
object
--+ |GLObject
--+ |GLDrawList
--+ | GLAtomList
GLChain
,
GLTLSAtomList
Method Summary | |
---|---|
__init__(self,
**args)
| |
Sets the open-gl color for the atom. | |
Returns the label color. | |
Return a RGBF 3-tuple color of a color gradient for value. | |
Returns the trace color. | |
Return the color to be used for thermal axes. | |
Return the color to be used for thermal ellipse. | |
Return the color to be used for thermal peanuts. | |
Calculate a position vector with respect to the proeprty: atom_origin. | |
Return the ADP U tensor for the atom | |
Draw atom with ball/stick model. | |
Draw a atom as a CPK sphere. | |
Draws atom with a cross of lines. | |
Draws atom lables. | |
Draw a atom using bond lines only. | |
Draws trace over all polymer backbone atoms. | |
Draw thermal axes at the given ADP probability level. | |
Draw the ADP determined probability ellipsoid. | |
Draw the ADP determined RMS displacement surface. | |
Implement in a subclass to iterate over all atoms which need to be drawn. | |
Iterate all atoms and yield the tuble (atom, visible_flag). | |
Implement in a subclass to iterate one Chain object at a time, in order. | |
Implement in a subclass to iterate one Fragment object at a time, in order. | |
Implement in a subclass to iterate one Model object at a time, in order. | |
Iterate over all visible atoms yielding the 2-tuple (atm, position). | |
When a atom selection setting or origin changes, the atom dictionaries need to be rebuilt. | |
Configure the color_value property from the value argument. | |
glal_update_properties(self,
updates,
actions)
| |
Override in children to install draw methods for a GLDrawList. | |
Specialized draw list invokation to recycle the draw list for symmetry related copies. | |
Called by GLObject.__init__ to install properties. | |
Inherited from GLDrawList | |
Implement in subclass to draw somthing. | |
Compiles a draw method. | |
Deletes the compiled draw list in the current driver. | |
| |
Returns the draw metod of the given name or None if not found. | |
Installs a draw method to compile and render a OpenGL draw listlist. | |
Implement in subclass to draw transparent objects. | |
Returns the root GLViewer object. | |
When implemented as a iterator in a subclass, each time yield is invoked the GLDrawList and all its decendants will be rendered from whatever OpenGL coordinate system is set in the iterator. | |
Pop the roatated/translated position. | |
Returns the property value as a RGBF triplet. | |
Rotate and translate to the correct position for drawing. | |
Triggers a redraw of the GLViewer | |
Compile or force a recompile of this object's gl_draw list, and render the scene. | |
Render all draw methods. | |
Properties update callback. | |
Override GLObject's remove to also delete the compiled OpenGL draw lists. | |
Override GLObject's remove to also delete the compiled OpenGL draw lists. | |
Inherited from GLObject | |
| |
Adds a new property to the GLObject. | |
Adds a function which is called whenever property values change. | |
Adds a child GLObject to the end of the GLObject's child list. | |
Counts all decendant GLObjects. | |
Returns the child GLObject matching the given gl_object_id. | |
Returns the object at the given path, or None if the object does not exist. | |
Returns the number of children (degree). | |
Returns the depth, the root composite is depth 0. | |
Returns the parent GLStructure object, or None if the GLObject is not a child of a GLStructure. | |
Returns the tree-path to the GLObject as a list of its integer indexes. | |
Returns the lowest common ancesotry of self and argument composite. | |
Returns the parent GLObject. | |
Returns a list of the parent GLObjects back to the root. | |
Returns the tree-path to the composite as a list of its parent composites. | |
Returns the properties ID of this object. | |
Return the property description dictionary for the given property name. | |
Returns the root GLObject. | |
This is a special form of update which propagates all linked values, not just the changed ones. | |
Returns true if self composite is a decent of argument GLObject. | |
Iterate immediate children. | |
Preorder Traversal for GLObject composite. | |
Iterates over all property descriptions. | |
Link the value of the GLObject's property to the value of a child property. | |
Returns the GLObject name. | |
Adds a child GLObject to the beginning of the GLObject's child list. | |
Removes the update callback. | |
Sets the GLObject name. | |
Set the property name for this GLObject. | |
Update property values and trigger update callbacks. | |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
dict |
glal_res_type_color_dict = {'acids': (1.0, 0.25, 0.25), ...
|
Inherited from GLDrawList | |
list |
gldl_color_list = ['White', 'Black', 'Blue', 'Green', 'M...
|
Inherited from GLObject | |
GLPropertyDefault |
PropertyDefault = <mmLib.Viewer.GLPropertyDefault object...
|
Method Details |
---|
glal_calc_color(self, atom)Sets the open-gl color for the atom. |
glal_calc_color_label(self)Returns the label color. |
glal_calc_color_range(self, value)Return a RGBF 3-tuple color of a color gradient for value. |
glal_calc_color_trace(self)Returns the trace color. |
glal_calc_color_Uaxes(self, atom)Return the color to be used for thermal axes. |
glal_calc_color_Uellipse(self, atom)Return the color to be used for thermal ellipse. |
glal_calc_color_Urms(self, atom)Return the color to be used for thermal peanuts. |
glal_calc_position(self, position)Calculate a position vector with respect to the proeprty: atom_origin. |
glal_calc_U(self, atom)Return the ADP U tensor for the atom |
glal_draw_ball_stick(self)Draw atom with ball/stick model. |
glal_draw_cpk(self)Draw a atom as a CPK sphere. |
glal_draw_cross(self, atm, pos)Draws atom with a cross of lines. |
glal_draw_labels(self)Draws atom lables. |
glal_draw_lines(self)Draw a atom using bond lines only. |
glal_draw_trace(self)Draws trace over all polymer backbone atoms. |
glal_draw_Uaxes(self)Draw thermal axes at the given ADP probability level. |
glal_draw_Uellipse(self)Draw the ADP determined probability ellipsoid. |
glal_draw_Urms(self)Draw the ADP determined RMS displacement surface. |
glal_iter_atoms(self)Implement in a subclass to iterate over all atoms which need to be drawn. |
glal_iter_atoms_filtered(self)Iterate all atoms and yield the tuble (atom, visible_flag). |
glal_iter_chains(self)Implement in a subclass to iterate one Chain object at a time, in order. This implementation works with any implementation of glal_iter_atoms, but is very inefficent. |
glal_iter_fragments(self)Implement in a subclass to iterate one Fragment object at a time, in order. This implementation works with any implementation of glal_iter_atoms, but is very inefficent. |
glal_iter_models(self)Implement in a subclass to iterate one Model object at a time, in order. This implementation works with any implementation of glal_iter_atoms, but is very inefficent. |
glal_iter_visible_atoms(self)Iterate over all visible atoms yielding the 2-tuple (atm, position). |
glal_rebuild_atom_dicts(self)When a atom selection setting or origin changes, the atom dictionaries need to be rebuilt. |
glal_update_color_value(self, value)Configure the color_value property from the value argument. |
gldl_install_draw_methods(self)Override in children to install draw methods for a GLDrawList.
|
gldl_iter_multidraw_self(self)Specialized draw list invokation to recycle the draw list for symmetry related copies. Cartesian versions of the symmetry rotation and translation operators are generated by GLStructure/UnitCell classes. |
glo_install_properties(self)Called by GLObject.__init__ to install properties.
|
Class Variable Details |
---|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Apr 23 22:08:39 2006 | http://epydoc.sf.net |