#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 29 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) |
void | Squeeze () |
virtual int | Resize (vtkIdType numTuples) |
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) |
void | ExportToVoidPointer (void *out_ptr) |
virtual void | ComputeRange (int comp) |
double * | GetTuple (vtkIdType i) |
void | GetTuple (vtkIdType i, double *tuple) |
void | GetTupleValue (vtkIdType i, T *tuple) |
void | SetTuple (vtkIdType i, const float *tuple) |
void | SetTuple (vtkIdType i, const double *tuple) |
void | SetTupleValue (vtkIdType i, const T *tuple) |
void | InsertTuple (vtkIdType i, const float *tuple) |
void | InsertTuple (vtkIdType i, const double *tuple) |
void | InsertTupleValue (vtkIdType i, const T *tuple) |
vtkIdType | InsertNextTuple (const float *tuple) |
vtkIdType | InsertNextTuple (const double *tuple) |
vtkIdType | InsertNextTupleValue (const T *tuple) |
T | GetValue (vtkIdType id) |
void | SetValue (vtkIdType id, T value) |
virtual void | InsertComponent (vtkIdType i, int j, double c) |
T * | WritePointer (vtkIdType id, vtkIdType number) |
void * | WriteVoidPointer (vtkIdType id, vtkIdType number) |
T * | GetPointer (vtkIdType id) |
void * | GetVoidPointer (vtkIdType id) |
void | DeepCopy (vtkDataArray *da) |
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 32 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 43 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. |
|
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). |
|
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. |
|
Set the tuple value at the ith location in the array. |
|
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 into the ith location in the array. |
|
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. |
|
Insert (memory allocation performed) the tuple onto the end of the array. |
|
Resize object to just fit data requirement. Reclaims extra memory. Implements vtkDataArray. Definition at line 82 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 88 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::Array. |
|
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 93 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::Array. |
|
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. Referenced by vtkDataArrayTemplate< T >::WriteVoidPointer(). |
|
Insert the data component at ith tuple and jth component location. Note that memory allocation is performed as necessary to hold the data. Implements vtkDataArray. Definition at line 130 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::WritePointer(). |
|
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. 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(). |
|
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(). |
|
Deep copy of another double array. Definition at line 152 of file vtkDataArrayTemplate.h. References vtkDataArrayTemplate< T >::SetArray(). |
|
This method copies the array data to the void pointer specified by the user. It is up to the user to allocate enough memory for the void pointer. |
|
Do not call. Use GetRange. Reimplemented from vtkDataArray. |
|
Referenced by vtkDataArrayTemplate< T >::Squeeze(). |
|
|
|
|
|
Definition at line 167 of file vtkDataArrayTemplate.h. Referenced by vtkDataArrayTemplate< T >::GetPointer(), vtkDataArrayTemplate< T >::GetValue(), and vtkDataArrayTemplate< T >::SetValue(). |
|
Definition at line 170 of file vtkDataArrayTemplate.h. |
|
Definition at line 171 of file vtkDataArrayTemplate.h. |
|
Definition at line 173 of file vtkDataArrayTemplate.h. |