TTK Util Functions.
More...
#include <ttkUtils.h>
|
static int | replaceVariable (const std::string &iString, vtkFieldData *fieldData, std::string &oString, std::string &errorMsg) |
|
static int | replaceVariables (const std::string &iString, vtkFieldData *fieldData, std::string &oString, std::string &errorMsg) |
|
static int | stringListToVector (const std::string &iString, std::vector< std::string > &v) |
|
static int | stringListToDoubleVector (const std::string &iString, std::vector< double > &v) |
|
static vtkSmartPointer< vtkAbstractArray > | csvToVtkArray (const std::string &line) |
|
static vtkSmartPointer< vtkDoubleArray > | csvToDoubleArray (const std::string &line) |
|
static void * | GetVoidPointer (vtkDataArray *array, vtkIdType start=0) |
|
static void * | GetVoidPointer (vtkPoints *points, vtkIdType start=0) |
|
template<typename DT > |
static DT * | GetPointer (vtkDataArray *array, vtkIdType start=0) |
|
static vtkSmartPointer< vtkAbstractArray > | SliceArray (vtkAbstractArray *array, vtkIdType idx) |
|
static void * | WriteVoidPointer (vtkDataArray *array, vtkIdType start, vtkIdType numValues) |
|
static void * | WritePointer (vtkDataArray *array, vtkIdType start, vtkIdType numValues) |
|
static void | SetVoidArray (vtkDataArray *array, void *data, vtkIdType size, int save) |
|
static void | FillCellArrayFromSingle (vtkIdType const *cells, vtkIdType ncells, vtkCellArray *cellArray) |
|
static void | FillCellArrayFromDual (vtkIdType const *cells_co, vtkIdType const *cells_off, vtkIdType ncells, vtkCellArray *cellArray) |
|
static int | CellVertexFromPoints (vtkDataSet *const dataSet, vtkPoints *const points) |
|
TTK Util Functions.
- Author
- Jonas Lukasczyk (jl@jl.nosp@m.uk.d.nosp@m.e)
- Date
- 01.06.2019
Definition at line 28 of file ttkUtils.h.
◆ CellVertexFromPoints()
int ttkUtils::CellVertexFromPoints |
( |
vtkDataSet *const |
dataSet, |
|
|
vtkPoints *const |
points |
|
) |
| |
|
static |
◆ csvToDoubleArray()
vtkSmartPointer< vtkDoubleArray > ttkUtils::csvToDoubleArray |
( |
const std::string & |
line | ) |
|
|
static |
◆ csvToVtkArray()
vtkSmartPointer< vtkAbstractArray > ttkUtils::csvToVtkArray |
( |
const std::string & |
line | ) |
|
|
static |
◆ FillCellArrayFromDual()
void ttkUtils::FillCellArrayFromDual |
( |
vtkIdType const * |
cells_co, |
|
|
vtkIdType const * |
cells_off, |
|
|
vtkIdType |
ncells, |
|
|
vtkCellArray * |
cellArray |
|
) |
| |
|
static |
◆ FillCellArrayFromSingle()
void ttkUtils::FillCellArrayFromSingle |
( |
vtkIdType const * |
cells, |
|
|
vtkIdType |
ncells, |
|
|
vtkCellArray * |
cellArray |
|
) |
| |
|
static |
◆ GetPointer()
template<typename DT >
static DT * ttkUtils::GetPointer |
( |
vtkDataArray * |
array, |
|
|
vtkIdType |
start = 0 |
|
) |
| |
|
inlinestatic |
◆ GetVoidPointer() [1/2]
void * ttkUtils::GetVoidPointer |
( |
vtkDataArray * |
array, |
|
|
vtkIdType |
start = 0 |
|
) |
| |
|
static |
Retrieve pointer to the internal data This method is a workaround to emulate the old GetVoidPointer in vtkDataArray
Definition at line 226 of file ttkUtils.cpp.
◆ GetVoidPointer() [2/2]
void * ttkUtils::GetVoidPointer |
( |
vtkPoints * |
points, |
|
|
vtkIdType |
start = 0 |
|
) |
| |
|
static |
◆ replaceVariable()
int ttkUtils::replaceVariable |
( |
const std::string & |
iString, |
|
|
vtkFieldData * |
fieldData, |
|
|
std::string & |
oString, |
|
|
std::string & |
errorMsg |
|
) |
| |
|
static |
◆ replaceVariables()
int ttkUtils::replaceVariables |
( |
const std::string & |
iString, |
|
|
vtkFieldData * |
fieldData, |
|
|
std::string & |
oString, |
|
|
std::string & |
errorMsg |
|
) |
| |
|
static |
◆ SetVoidArray()
void ttkUtils::SetVoidArray |
( |
vtkDataArray * |
array, |
|
|
void * |
data, |
|
|
vtkIdType |
size, |
|
|
int |
save |
|
) |
| |
|
static |
◆ SliceArray()
vtkSmartPointer< vtkAbstractArray > ttkUtils::SliceArray |
( |
vtkAbstractArray * |
array, |
|
|
vtkIdType |
idx |
|
) |
| |
|
static |
◆ stringListToDoubleVector()
int ttkUtils::stringListToDoubleVector |
( |
const std::string & |
iString, |
|
|
std::vector< double > & |
v |
|
) |
| |
|
static |
◆ stringListToVector()
int ttkUtils::stringListToVector |
( |
const std::string & |
iString, |
|
|
std::vector< std::string > & |
v |
|
) |
| |
|
static |
◆ WritePointer()
void * ttkUtils::WritePointer |
( |
vtkDataArray * |
array, |
|
|
vtkIdType |
start, |
|
|
vtkIdType |
numValues |
|
) |
| |
|
static |
◆ WriteVoidPointer()
void * ttkUtils::WriteVoidPointer |
( |
vtkDataArray * |
array, |
|
|
vtkIdType |
start, |
|
|
vtkIdType |
numValues |
|
) |
| |
|
static |
The documentation for this class was generated from the following files:
- /home/julien/Pro/git/github/ttk-tierny/core/vtk/ttkAlgorithm/ttkUtils.h
- /home/julien/Pro/git/github/ttk-tierny/core/vtk/ttkAlgorithm/ttkUtils.cpp