#include <vtkArrayData.h>
Because vtkArray cannot be stored as attributes of data objects (yet), a "carrier" object is needed to pass vtkArray through the pipeline. vtkArrayData acts as a container of zero-to-many vtkArray instances, which can be retrieved via a zero-based index. Note that a collection of arrays stored in vtkArrayData may-or-may-not have related types, dimensions, or extents.
Definition at line 50 of file vtkArrayData.h.
Public Types | |
typedef vtkDataObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | AddArray (vtkArray *) |
void | ClearArrays () |
vtkIdType | GetNumberOfArrays () |
vtkArray * | GetArray (vtkIdType index) |
vtkArray * | GetArrayByName (const char *name) |
virtual int | GetDataObjectType () |
virtual void | ShallowCopy (vtkDataObject *other) |
virtual void | DeepCopy (vtkDataObject *other) |
Static Public Member Functions | |
static vtkArrayData * | New () |
static int | IsTypeOf (const char *type) |
static vtkArrayData * | SafeDownCast (vtkObject *o) |
static vtkArrayData * | GetData (vtkInformation *info) |
static vtkArrayData * | GetData (vtkInformationVector *v, int i=0) |
Protected Member Functions | |
vtkArrayData () | |
~vtkArrayData () |
vtkArrayData::vtkArrayData | ( | ) | [protected] |
vtkArrayData::~vtkArrayData | ( | ) | [protected] |
static vtkArrayData* vtkArrayData::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkDataObject.
virtual const char* vtkArrayData::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkDataObject.
static int vtkArrayData::IsTypeOf | ( | const char * | name | ) | [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 vtkDataObject.
virtual int vtkArrayData::IsA | ( | const char * | name | ) | [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 vtkDataObject.
static vtkArrayData* vtkArrayData::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkDataObject.
void vtkArrayData::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 vtkDataObject.
static vtkArrayData* vtkArrayData::GetData | ( | vtkInformation * | info | ) | [static] |
Retrieve an instance of this class from an information object.
Reimplemented from vtkDataObject.
static vtkArrayData* vtkArrayData::GetData | ( | vtkInformationVector * | v, | |
int | i = 0 | |||
) | [static] |
Retrieve an instance of this class from an information object.
Reimplemented from vtkDataObject.
void vtkArrayData::ClearArrays | ( | ) |
Clears the contents of the collection
vtkIdType vtkArrayData::GetNumberOfArrays | ( | ) |
Returns the number of vtkArray instances in the collection
vtkArray* vtkArrayData::GetArrayByName | ( | const char * | name | ) |
Returns the array having called name from the collection
virtual int vtkArrayData::GetDataObjectType | ( | ) | [inline, virtual] |
Return class name of data type (VTK_ARRAY_DATA).
Reimplemented from vtkDataObject.
Definition at line 76 of file vtkArrayData.h.
virtual void vtkArrayData::ShallowCopy | ( | vtkDataObject * | src | ) | [virtual] |
Shallow and Deep copy. These copy the data, but not any of the pipeline connections.
Reimplemented from vtkDataObject.
virtual void vtkArrayData::DeepCopy | ( | vtkDataObject * | src | ) | [virtual] |
Shallow and Deep copy. These copy the data, but not any of the pipeline connections.
Reimplemented from vtkDataObject.