TTK
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
ttkUtils Class Reference

TTK Util Functions. More...

#include <ttkUtils.h>

Static Public Member Functions

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)
 

Detailed Description

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.

Member Function Documentation

◆ CellVertexFromPoints()

int ttkUtils::CellVertexFromPoints ( vtkDataSet *const  dataSet,
vtkPoints *const  points 
)
static

Definition at line 328 of file ttkUtils.cpp.

◆ csvToDoubleArray()

vtkSmartPointer< vtkDoubleArray > ttkUtils::csvToDoubleArray ( const std::string &  line)
static

Definition at line 198 of file ttkUtils.cpp.

◆ csvToVtkArray()

vtkSmartPointer< vtkAbstractArray > ttkUtils::csvToVtkArray ( const std::string &  line)
static

Definition at line 152 of file ttkUtils.cpp.

◆ FillCellArrayFromDual()

void ttkUtils::FillCellArrayFromDual ( vtkIdType const *  cells_co,
vtkIdType const *  cells_off,
vtkIdType  ncells,
vtkCellArray *  cellArray 
)
static

Definition at line 311 of file ttkUtils.cpp.

◆ FillCellArrayFromSingle()

void ttkUtils::FillCellArrayFromSingle ( vtkIdType const *  cells,
vtkIdType  ncells,
vtkCellArray *  cellArray 
)
static

Definition at line 294 of file ttkUtils.cpp.

◆ GetPointer()

template<typename DT >
static DT * ttkUtils::GetPointer ( vtkDataArray *  array,
vtkIdType  start = 0 
)
inlinestatic

Definition at line 59 of file ttkUtils.h.

◆ 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

Definition at line 239 of file ttkUtils.cpp.

◆ replaceVariable()

int ttkUtils::replaceVariable ( const std::string &  iString,
vtkFieldData *  fieldData,
std::string &  oString,
std::string &  errorMsg 
)
static

Definition at line 18 of file ttkUtils.cpp.

◆ replaceVariables()

int ttkUtils::replaceVariables ( const std::string &  iString,
vtkFieldData *  fieldData,
std::string &  oString,
std::string &  errorMsg 
)
static

Definition at line 73 of file ttkUtils.cpp.

◆ SetVoidArray()

void ttkUtils::SetVoidArray ( vtkDataArray *  array,
void *  data,
vtkIdType  size,
int  save 
)
static

Definition at line 280 of file ttkUtils.cpp.

◆ SliceArray()

vtkSmartPointer< vtkAbstractArray > ttkUtils::SliceArray ( vtkAbstractArray *  array,
vtkIdType  idx 
)
static

Definition at line 243 of file ttkUtils.cpp.

◆ stringListToDoubleVector()

int ttkUtils::stringListToDoubleVector ( const std::string &  iString,
std::vector< double > &  v 
)
static

Definition at line 133 of file ttkUtils.cpp.

◆ stringListToVector()

int ttkUtils::stringListToVector ( const std::string &  iString,
std::vector< std::string > &  v 
)
static

Definition at line 115 of file ttkUtils.cpp.

◆ WritePointer()

void * ttkUtils::WritePointer ( vtkDataArray *  array,
vtkIdType  start,
vtkIdType  numValues 
)
static

Definition at line 268 of file ttkUtils.cpp.

◆ WriteVoidPointer()

void * ttkUtils::WriteVoidPointer ( vtkDataArray *  array,
vtkIdType  start,
vtkIdType  numValues 
)
static

Definition at line 254 of file ttkUtils.cpp.


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