VTK  9.1.0
Static Public Member Functions | List of all members
vtkOTUtilities Class Reference

#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 vtkDataArraySampleToArray (OT::Sample *ns)
 Methods to convert a Sample into a multi-component array.
 

Detailed Description

Definition at line 33 of file vtkOTUtilities.h.

Member Function Documentation

◆ SingleDimArraysToSample()

static OT::Sample * vtkOTUtilities::SingleDimArraysToSample ( vtkDataArrayCollection arrays)
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.

◆ ArrayToSample()

static OT::Sample * vtkOTUtilities::ArrayToSample ( vtkDataArray arr)
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.

◆ SampleToArray()

static vtkDataArray * vtkOTUtilities::SampleToArray ( OT::Sample *  ns)
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.


The documentation for this class was generated from the following file: