#include <vtkCollection.h>
Inheritance diagram for vtkCollection:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | AddItem (vtkObject *) |
void | ReplaceItem (int i, vtkObject *) |
void | RemoveItem (int i) |
void | RemoveItem (vtkObject *) |
void | RemoveAllItems () |
int | IsItemPresent (vtkObject *) |
int | GetNumberOfItems () |
void | InitTraversal () |
vtkObject * | GetNextItemAsObject () |
vtkObject * | GetItemAsObject (int i) |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkCollection * | SafeDownCast (vtkObject *o) |
vtkCollection * | New () |
Protected Methods | |
vtkCollection () | |
~vtkCollection () | |
vtkCollection (const vtkCollection &) | |
void | operator= (const vtkCollection &) |
virtual void | DeleteElement (vtkCollectionElement *) |
Protected Attributes | |
int | NumberOfItems |
vtkCollectionElement * | Top |
vtkCollectionElement * | Bottom |
vtkCollectionElement * | Current |
vtkCollection is a general object for creating and manipulating lists of objects. The lists are unsorted and allow duplicate entries. vtkCollection also serves as a base class for lists of specific types of objects.
|
Add an object to the list. Does not prevent duplicate entries. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkActor2DCollection. |
|
Get the i'th item in the collection. NULL is returned if i is out of range |
|
Get the next item in the collection. NULL is returned if the collection is exhausted. |
|
Return the number of objects in the list. |
|
Initialize the traversal of the collection. This means the data pointer is set at the beginning of the list. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkActor2DCollection. |
|
Search for an object and return location in list. If location == 0, object was not found. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkActor2DCollection. |
|
Construct with empty list. Reimplemented from vtkObject. Reimplemented in vtkActor2DCollection. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkObject. Reimplemented in vtkAssemblyPath. |
|
Remove all objects from the list. |
|
Remove an object from the list. Removes the first object found, not all occurrences. If no object found, list is unaffected. See warning in description of RemoveItem(int). |
|
Remove the i'th item in the list. Be careful if using this function during traversal of the list using GetNextItemAsObject (or GetNextItem in derived class). The list WILL be shortened if a valid index is given! If this->Current is equal to the element being removed, have it point to then next element in the list. |
|
Replace the i'th item in the collection with a |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkActor2DCollection. |