Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkIdList Class Reference

list of point or cell ids. More...

#include <vtkIdList.h>

Inheritance diagram for vtkIdList:

Inheritance graph
[legend]
Collaboration diagram for vtkIdList:

Collaboration graph
[legend]
List of all members.

Public Methods

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)
int GetNumberOfIds ()
int GetId (const int i)
void SetNumberOfIds (const int number)
void SetId (const int i, const int id)
void InsertId (const int i, const int id)
int InsertNextId (const int id)
int InsertUniqueId (const int id)
int * GetPointer (const int i)
int * WritePointer (const int i, const int number)
void Reset ()
void Squeeze ()
void DeepCopy (vtkIdList *ids)
void DeleteId (int id)
int IsId (int id)
void IntersectWith (vtkIdList &otherIds)

Static Public Methods

vtkIdList * New ()
int IsTypeOf (const char *type)
vtkIdList * SafeDownCast (vtkObject *o)

Protected Methods

 vtkIdList ()
 ~vtkIdList ()
 vtkIdList (const vtkIdList &)
void operator= (const vtkIdList &)
int * Resize (const int sz)

Protected Attributes

int NumberOfIds
int Size
int * Ids

Detailed Description

list of point or cell ids.

Date:
2000/12/10 20:08:10
Revision:
1.63

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.

Examples:
vtkIdList (examples)

Definition at line 59 of file vtkIdList.h.


Constructor & Destructor Documentation

vtkIdList::vtkIdList   [protected]
 

vtkIdList::~vtkIdList   [protected]
 

vtkIdList::vtkIdList const vtkIdList &    [inline, protected]
 

Definition at line 128 of file vtkIdList.h.


Member Function Documentation

vtkIdList* vtkIdList::New   [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

void vtkIdList::Initialize  
 

int vtkIdList::Allocate const int    sz,
const int    strategy = 0
 

virtual const char* vtkIdList::GetClassName   [virtual]
 

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.

int vtkIdList::IsTypeOf const char *    type [static]
 

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.

virtual int vtkIdList::IsA const char *    type [virtual]
 

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.

vtkIdList* vtkIdList::SafeDownCast vtkObject   o [static]
 

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.

void vtkIdList::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

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.

int vtkIdList::GetNumberOfIds   [inline]
 

Return the number of id's in the list.

Definition at line 70 of file vtkIdList.h.

Referenced by vtkCellArray::InsertNextCell().

int vtkIdList::GetId const int    i [inline]
 

Return the id at location i.

Definition at line 73 of file vtkIdList.h.

Referenced by vtkCellArray::InsertNextCell().

void vtkIdList::SetNumberOfIds const int    number
 

Specify the number of ids for this object to hold. Does an allocation as well as setting the number of ids.

void vtkIdList::SetId const int    i,
const int    id
[inline]
 

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 82 of file vtkIdList.h.

void vtkIdList::InsertId const int    i,
const int    id
 

Set the id at location i. Does range checking and allocates memory as necessary.

int vtkIdList::InsertNextId const int    id [inline]
 

Add the id specified to the end of the list. Range checking is performed.

Definition at line 139 of file vtkIdList.h.

int vtkIdList::InsertUniqueId const int    id
 

If id is not already in list, insert it and return location in list. Otherwise return just location in list.

int* vtkIdList::GetPointer const int    i [inline]
 

Get a pointer to a particular data index.

Definition at line 97 of file vtkIdList.h.

int* vtkIdList::WritePointer const int    i,
const int    number
 

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.

void vtkIdList::Reset   [inline]
 

Reset to an empty state.

Definition at line 105 of file vtkIdList.h.

void vtkIdList::Squeeze   [inline]
 

Free any unused memory.

Definition at line 108 of file vtkIdList.h.

void vtkIdList::DeepCopy vtkIdList *    ids
 

Copy an id list by explicitly copying the internal array.

void vtkIdList::DeleteId int    id
 

Delete specified id from list. Will remove all occurrences of id in list.

int vtkIdList::IsId int    id [inline]
 

Return -1 if id specified is not contained in the list; otherwise return the position in the list.

Definition at line 149 of file vtkIdList.h.

void vtkIdList::IntersectWith vtkIdList &    otherIds
 

Intersect this list with another vtkIdList. Updates current list according to result of intersection operation.

void vtkIdList::operator= const vtkIdList &    [inline, protected]
 

Definition at line 129 of file vtkIdList.h.

int* vtkIdList::Resize const int    sz [protected]
 

Referenced by InsertNextId().


Member Data Documentation

int vtkIdList::NumberOfIds [protected]
 

Definition at line 131 of file vtkIdList.h.

int vtkIdList::Size [protected]
 

Definition at line 132 of file vtkIdList.h.

int* vtkIdList::Ids [protected]
 

Definition at line 133 of file vtkIdList.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 12:48:14 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001