#include <vtkDataArrayTemplate.h>
Inheritance diagram for vtkDataArrayTemplate< T >:
There is a vtkDataArray subclass for each native type supported by VTK. This template is used to implement all the subclasses in the same way while avoiding code duplication.
Definition at line 39 of file vtkDataArrayTemplate.h.
Public Types | |
typedef vtkDataArray | Superclass |
Public Member Functions | |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | Allocate (vtkIdType sz, vtkIdType ext=1000) |
void | Initialize () |
int | GetDataTypeSize () |
void | SetNumberOfTuples (vtkIdType number) |
double * | GetTuple (vtkIdType i) |
void | GetTuple (vtkIdType i, double *tuple) |
void | Squeeze () |
virtual void | Resize (vtkIdType numTuples) |
T | GetValue (vtkIdType id) |
void | SetNumberOfValues (vtkIdType number) |
void | InsertValue (vtkIdType id, T f) |
vtkIdType | InsertNextValue (T f) |
double | GetComponent (vtkIdType i, int j) |
void | SetComponent (vtkIdType i, int j, double c) |
virtual void | InsertComponent (vtkIdType i, int j, double c) |
T * | WritePointer (vtkIdType id, vtkIdType number) |
void | DeepCopy (vtkDataArray *da) |
virtual void | ComputeRange (int comp) |
void | SetTuple (vtkIdType i, const float *tuple) |
void | SetTuple (vtkIdType i, const double *tuple) |
void | InsertTuple (vtkIdType i, const float *tuple) |
void | InsertTuple (vtkIdType i, const double *tuple) |
vtkIdType | InsertNextTuple (const float *tuple) |
vtkIdType | InsertNextTuple (const double *tuple) |
void | SetValue (vtkIdType id, T value) |
T * | GetPointer (vtkIdType id) |
void * | GetVoidPointer (vtkIdType id) |
void | SetArray (T *array, vtkIdType size, int save) |
void | SetVoidArray (void *array, vtkIdType size, int save) |
Protected Member Functions | |
vtkDataArrayTemplate (vtkIdType numComp) | |
~vtkDataArrayTemplate () | |
T * | ResizeAndExtend (vtkIdType sz) |
void | ComputeScalarRange (int comp) |
void | ComputeVectorRange () |
Protected Attributes | |
T * | Array |
int | TupleSize |
double * | Tuple |
int | SaveUserArray |
|
Reimplemented from vtkDataArray. Definition at line 42 of file vtkDataArrayTemplate.h. |
|
|
|
|
|
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 vtkDataArray. |
|
Allocate memory for this array. Delete old storage only if necessary. Note that ext is no longer used. Implements vtkDataArray. |
|
Release storage and reset array to initial state. Implements vtkDataArray. |
|
Return the size of the data type. Implements vtkDataArray. Definition at line 53 of file vtkDataArrayTemplate.h. |
|
Set the number of n-tuples in the array. Implements vtkDataArray. |
|
Get a pointer to a tuple at the ith location. This is a dangerous method (it is not thread safe since a pointer is returned). Implements vtkDataArray. |
|
Copy the tuple value into a user-provided array. Implements vtkDataArray. |
|
Set the tuple value at the ith location in the array. Implements vtkDataArray. |
|
Set the tuple value at the ith location in the array. Implements vtkDataArray. |
|
Insert (memory allocation performed) the tuple into the ith location in the array. Implements vtkDataArray. |
|
Insert (memory allocation performed) the tuple into the ith location in the array. Implements vtkDataArray. |
|
Insert (memory allocation performed) the tuple onto the end of the array. Implements vtkDataArray. |
|
Insert (memory allocation performed) the tuple onto the end of the array. Implements vtkDataArray. |
|
Resize object to just fit data requirement. Reclaims extra memory. Implements vtkDataArray. Definition at line 86 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::ResizeAndExtend(). |
|
Resize the array while conserving the data. Implements vtkDataArray. |
|
Get the data at a particular index. Definition at line 92 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::Array, and vtkIdType. |
|
Set the data at a particular index. Does not do range checking. Make sure you use the method SetNumberOfValues() before inserting data. Definition at line 97 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::Array, and vtkIdType. |
|
Specify the number of values for this object to hold. Does an allocation as well as setting the MaxId ivar. Used in conjunction with SetValue() method for fast insertion. |
|
Insert data at a specified position in the array. |
|
Insert data at the end of the array. Return its location in the array. |
|
Return the data component at the ith tuple and jth component location. Note that i is less then NumberOfTuples and j is less then NumberOfComponents. Reimplemented from vtkDataArray. |
|
Set the data component at the ith tuple and jth component location. Note that i is less then NumberOfTuples and j is less then NumberOfComponents. Make sure enough memory has been allocated (use SetNumberOfTuples() and SetNumberOfComponents()). Reimplemented from vtkDataArray. |
|
Insert the data component at ith tuple and jth component location. Note that memory allocation is performed as necessary to hold the data. Reimplemented from vtkDataArray. |
|
Get the address of 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. |
|
Get the address of a particular data index. Performs no checks to verify that the memory has been allocated etc. Definition at line 137 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::Array, and vtkIdType. Referenced by vtkDataArrayTemplate< T >::GetVoidPointer(). |
|
Get the address of a particular data index. Performs no checks to verify that the memory has been allocated etc. Implements vtkDataArray. Definition at line 138 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::GetPointer(), and vtkIdType. |
|
Deep copy of another double array. Reimplemented from vtkDataArray. |
|
This method lets the user specify data to be held by the array. The array argument is a pointer to the data. size is the size of the array supplied by the user. Set save to 1 to keep the class from deleting the array when it cleans up or reallocates memory. The class uses the actual array provided; it does not copy the data from the suppled array. Referenced by vtkDataArrayTemplate< T >::SetVoidArray(). |
|
This method lets the user specify data to be held by the array. The array argument is a pointer to the data. size is the size of the array supplied by the user. Set save to 1 to keep the class from deleting the array when it cleans up or reallocates memory. The class uses the actual array provided; it does not copy the data from the suppled array. Definition at line 152 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::SetArray(), and vtkIdType. |
|
Do not call. Use GetRange. Reimplemented from vtkDataArray. |
|
Referenced by vtkDataArrayTemplate< T >::Squeeze(). |
|
|
|
|
|
Definition at line 162 of file vtkDataArrayTemplate.h. Referenced by vtkDataArrayTemplate< T >::GetPointer(), vtkDataArrayTemplate< T >::GetValue(), and vtkDataArrayTemplate< T >::SetValue(). |
|
Definition at line 165 of file vtkDataArrayTemplate.h. |
|
Definition at line 166 of file vtkDataArrayTemplate.h. |
|
Definition at line 168 of file vtkDataArrayTemplate.h. |