vtkDataArray - abstract superclass for arrays
Super Class: vtkObject
Description:
vtkDataArray is an abstract superclass for data array objects. This class defines an API that all array objects must support. Note that the concrete subclasses of this class represent data in native form (char, int, etc.) and often have specialized more efficient methods for operating on this data (for example, getting pointers to data or getting/inserting data in native form). The logical structure of this class is an array of tuples, where each tuple is made up of n-components (also called a component group), and n is the number of component values in a tuple(n >= 1). Another view of this class is a mxn matrix, where m is the number of tuples, and n is the number of components in a tuple. Thus vtkDataArray can be used to represent scalars (1-4 components), 3D vectors (3 components), texture coordinates (1-3 components), tensors, (9 components) and so on.
See Also:
vtkBitArray vtkCharArray vtkUnsignedCharArray vtkShortArray vtkUnsignedShortArray vtkIntArray vtkUnsignedIntArray vtkLongArray vtkUnsignedLongArray vtkFloatArray vtkDoubleArray vtkVoidArray
Methods:
Detailed Method Descriptions:
void vtkDataArray (int ) |
vtkDataArray *MakeObject () |
int GetDataType () |
void SetNumberOfComponents (int ) | |
int GetNumberOfComponents () |
void SetNumberOfTuples (const int ) |
int GetNumberOfTuples () |
float *GetTuple (const int ) |
void GetTuple (const int ,float *) |
void SetTuple (const int ,const float *) |
void InsertTuple (const int ,const float *) |
int InsertNextTuple (const float *) |
float GetComponent (const int ,const int ) |
void SetComponent (const int ,const int ,const float ) |
void InsertComponent (const int ,const int ,const float ) |
void GetData (int ,int ,int ,int ,vtkFloatArray &) |
void DeepCopy (vtkDataArray *) |
void *GetVoidPointer (const int ) |
void Squeeze () |
void Reset () |
int GetSize () |
int GetMaxId () |
int GetExtend () |