Module Metaball :: Class MetaElemSeq
[frames | no frames]

Class MetaElemSeq


The MetaElemSeq object

This object provides sequence and iterator access to the metaballs elements. The elements accessed within this iterator "wraps" the actual metaball elements; changing any of the elements's attributes will immediately change the data in the metaball.

This iterator is most like pythons 'set' type.
Method Summary
Metaelem __iter__()
Iterate over elements in this metaball.
int __len__()
Iterate over elements in this metaball.
Metaelement add()
Append a new element to the metaball.
None remove(element)
remove an element from the metaball data.

Method Details

__iter__()

Iterate over elements in this metaball.
Returns:
One of the metaelem in this metaball.
           (type=Metaelem)

__len__()
(Length operator)

Iterate over elements in this metaball.
Returns:
The number of elements in this metaball
           (type=int)

add()

Append a new element to the metaball. no arguments are taken, instead a new metaelement is added to the metaball data and returned. This new element can then be modified.
Returns:
a new meta element.
           (type=Metaelement)

remove(element)

remove an element from the metaball data.

if the element is not a part of the metaball data, an error will be raised.
Returns:
None
           (type=None)

Generated by Epydoc 2.1 on Thu May 10 20:32:00 2007 http://epydoc.sf.net