#include <vtkIdList.h>
Inheritance diagram for vtkIdList:
vtkIdList is used to represent and pass data id's between objects. vtkIdList may represent any type of integer id, but usually represents point and cell ids.
Definition at line 48 of file vtkIdList.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
void | Initialize () |
int | Allocate (const int sz, const int strategy=0) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkIdType | GetNumberOfIds () |
vtkIdType | GetId (const int i) |
void | SetNumberOfIds (const vtkIdType number) |
void | SetId (const vtkIdType i, const vtkIdType id) |
void | InsertId (const vtkIdType i, const vtkIdType id) |
vtkIdType | InsertNextId (const vtkIdType id) |
vtkIdType | InsertUniqueId (const vtkIdType id) |
vtkIdType * | GetPointer (const vtkIdType i) |
vtkIdType * | WritePointer (const vtkIdType i, const vtkIdType number) |
void | Reset () |
void | Squeeze () |
void | DeepCopy (vtkIdList *ids) |
void | DeleteId (vtkIdType id) |
vtkIdType | IsId (vtkIdType id) |
void | IntersectWith (vtkIdList &otherIds) |
Static Public Member Functions | |
vtkIdList * | New () |
int | IsTypeOf (const char *type) |
vtkIdList * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkIdList () | |
~vtkIdList () | |
vtkIdType * | Resize (const vtkIdType sz) |
Protected Attributes | |
vtkIdType | NumberOfIds |
vtkIdType | Size |
vtkIdType * | Ids |
|
Reimplemented from vtkObject. Definition at line 55 of file vtkIdList.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. |
|
|
|
|
|
Reimplemented from vtkObject. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Reimplemented from vtkObject. |
|
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. |
|
Return the number of id's in the list. Definition at line 59 of file vtkIdList.h. References vtkIdType. Referenced by vtkCellArray::InsertNextCell(). |
|
Return the id at location i. Definition at line 62 of file vtkIdList.h. References vtkIdType. Referenced by vtkCellArray::InsertNextCell(). |
|
Specify the number of ids for this object to hold. Does an allocation as well as setting the number of ids. |
|
Set the id at location i. Doesn't do range checking so it's a bit faster than InsertId. Make sure you use SetNumberOfIds() to allocate memory prior to using SetId(). Definition at line 71 of file vtkIdList.h. References vtkIdType. |
|
Set the id at location i. Does range checking and allocates memory as necessary. |
|
Add the id specified to the end of the list. Range checking is performed. Definition at line 129 of file vtkIdList.h. References Ids, NumberOfIds, Resize(), and vtkIdType. |
|
If id is not already in list, insert it and return location in list. Otherwise return just location in list. |
|
Get a pointer to a particular data index. Definition at line 86 of file vtkIdList.h. References vtkIdType. |
|
Get a pointer to a particular data index. Make sure data is allocated for the number of items requested. Set MaxId according to the number of data values requested. |
|
Reset to an empty state. Definition at line 94 of file vtkIdList.h. |
|
Free any unused memory. Definition at line 97 of file vtkIdList.h. |
|
Copy an id list by explicitly copying the internal array. |
|
Delete specified id from list. Will remove all occurrences of id in list. |
|
Return -1 if id specified is not contained in the list; otherwise return the position in the list. Definition at line 139 of file vtkIdList.h. References vtkIdType. |
|
Intersect this list with another vtkIdList. Updates current list according to result of intersection operation. |
|
Referenced by InsertNextId(). |
|
Definition at line 118 of file vtkIdList.h. Referenced by InsertNextId(). |
|
Definition at line 119 of file vtkIdList.h. |
|
Definition at line 120 of file vtkIdList.h. Referenced by InsertNextId(). |