VTK
9.1.0
|
#include <vtkOTUtilities.h>
Static Public Member Functions | |
static OT::Sample * | SingleDimArraysToSample (vtkDataArrayCollection *arrays) |
Methods to convert a collection of uni-dimensional data array into a single Sample The number of arrays will determine the number of components of the Sample. | |
static OT::Sample * | ArrayToSample (vtkDataArray *arr) |
Methods to convert a multi-component array into a Sample. | |
static vtkDataArray * | SampleToArray (OT::Sample *ns) |
Methods to convert a Sample into a multi-component array. | |
Definition at line 33 of file vtkOTUtilities.h.
|
static |
Methods to convert a collection of uni-dimensional data array into a single Sample The number of arrays will determine the number of components of the Sample.
Arrays are supposed to have the same number of tuples, and the Sample will also have the same number of tuples. This method allocate a new Sample and returns it, so it is caller's responsibility to delete it with the delete operator.
|
static |
Methods to convert a multi-component array into a Sample.
The sample will have the same dimension as the data array. This method allocate a new Sample and returns it, so it is caller's responsibility to delete it with the delete operator.
|
static |
Methods to convert a Sample into a multi-component array.
The data array will have the same dimension as the sample. This method allocates a new vtkDataArray and returns it, so it is caller's responsibility to delete it with the delete operator.