VTK  9.4.20241117
Classes | Enumerations | Functions
tovtkm Namespace Reference

Classes

struct  DataArrayToArrayHandle
 
struct  DataArrayToArrayHandle< vtkAOSDataArrayTemplate< T >, NumComponents >
 
struct  DataArrayToArrayHandle< vtkSOADataArrayTemplate< T >, 1 >
 
struct  DataArrayToArrayHandle< vtkSOADataArrayTemplate< T >, NumComponents >
 
class  ImplicitFunctionConverter
 
class  vtkArrayPortal
 
class  vtkPointsPortal
 
struct  vtkPortalTraits
 
struct  vtkPortalTraits< const vtkm::Vec< T, N > >
 
struct  vtkPortalTraits< const vtkm::Vec< vtkm::Vec< T, N >, M > >
 
struct  vtkPortalTraits< vtkm::Vec< T, N > >
 
struct  vtkPortalTraits< vtkm::Vec< vtkm::Vec< T, N >, M > >
 

Enumerations

enum class  FieldsFlag { None = 0x0 , Points = 0x1 , Cells = 0x2 , PointsAndCells = Points | Cells }
 

Functions

static const char * NoNameVTKFieldName ()
 Temporary name for arrays converted from VTK that do not have a name.
 
template<typename T >
vtkm::cont::ArrayHandleBasic< T > vtkAOSDataArrayToFlatArrayHandle (vtkAOSDataArrayTemplate< T > *input)
 
template<typename T >
vtkm::cont::ArrayHandleBasic< T > vtkSOADataArrayToComponentArrayHandle (vtkSOADataArrayTemplate< T > *input, int componentIndex)
 
template<typename T >
vtkm::cont::ArrayHandleRuntimeVec< T > vtkDataArrayToArrayHandle (vtkAOSDataArrayTemplate< T > *input)
 
template<typename T >
vtkm::cont::ArrayHandleRecombineVec< T > vtkDataArrayToArrayHandle (vtkSOADataArrayTemplate< T > *input)
 
template<typename DataArrayType >
vtkm::cont::UnknownArrayHandle vtkDataArrayToUnknownArrayHandle (DataArrayType *input)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT void ProcessFields (vtkDataSet *input, vtkm::cont::DataSet &dataset, tovtkm::FieldsFlag fields)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::Field Convert (vtkDataArray *input, int association)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::UnknownCellSet ConvertSingleType (vtkCellArray *cells, int cellType, vtkIdType numberOfPoints)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::UnknownCellSet Convert (vtkUnsignedCharArray *types, vtkCellArray *cells, vtkIdType numberOfPoints)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::CoordinateSystem Convert (vtkPoints *points)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet Convert (vtkStructuredGrid *input, FieldsFlag fields=FieldsFlag::None)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet Convert (vtkRectilinearGrid *input, FieldsFlag fields)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet Convert (vtkDataSet *input, FieldsFlag fields=FieldsFlag::None)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet Convert (vtkImageData *input, FieldsFlag fields=FieldsFlag::None)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet Convert (vtkPolyData *input, FieldsFlag fields=FieldsFlag::None)
 
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet Convert (vtkUnstructuredGrid *input, FieldsFlag fields=FieldsFlag::None)
 

Enumeration Type Documentation

◆ FieldsFlag

enum class tovtkm::FieldsFlag
strong
Enumerator
None 
Points 
Cells 
PointsAndCells 

Definition at line 202 of file DataArrayConverters.h.

Function Documentation

◆ NoNameVTKFieldName()

static const char * tovtkm::NoNameVTKFieldName ( )
inlinestatic

Temporary name for arrays converted from VTK that do not have a name.

Unnamed arrays seem to be supported by VTK, but VTK-m requires all fields to have a name.

Definition at line 49 of file DataArrayConverters.h.

◆ vtkAOSDataArrayToFlatArrayHandle()

template<typename T >
vtkm::cont::ArrayHandleBasic< T > tovtkm::vtkAOSDataArrayToFlatArrayHandle ( vtkAOSDataArrayTemplate< T > *  input)

Definition at line 56 of file DataArrayConverters.h.

◆ vtkSOADataArrayToComponentArrayHandle()

template<typename T >
vtkm::cont::ArrayHandleBasic< T > tovtkm::vtkSOADataArrayToComponentArrayHandle ( vtkSOADataArrayTemplate< T > *  input,
int  componentIndex 
)

Definition at line 87 of file DataArrayConverters.h.

◆ vtkDataArrayToArrayHandle() [1/2]

template<typename T >
vtkm::cont::ArrayHandleRuntimeVec< T > tovtkm::vtkDataArrayToArrayHandle ( vtkAOSDataArrayTemplate< T > *  input)

Definition at line 116 of file DataArrayConverters.h.

◆ vtkDataArrayToArrayHandle() [2/2]

template<typename T >
vtkm::cont::ArrayHandleRecombineVec< T > tovtkm::vtkDataArrayToArrayHandle ( vtkSOADataArrayTemplate< T > *  input)

Definition at line 123 of file DataArrayConverters.h.

◆ vtkDataArrayToUnknownArrayHandle()

template<typename DataArrayType >
vtkm::cont::UnknownArrayHandle tovtkm::vtkDataArrayToUnknownArrayHandle ( DataArrayType *  input)

Definition at line 141 of file DataArrayConverters.h.

◆ ProcessFields()

VTKACCELERATORSVTKMDATAMODEL_EXPORT void tovtkm::ProcessFields ( vtkDataSet input,
vtkm::cont::DataSet &  dataset,
tovtkm::FieldsFlag  fields 
)

◆ Convert() [1/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::Field tovtkm::Convert ( vtkDataArray input,
int  association 
)

◆ ConvertSingleType()

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::UnknownCellSet tovtkm::ConvertSingleType ( vtkCellArray cells,
int  cellType,
vtkIdType  numberOfPoints 
)

◆ Convert() [2/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::UnknownCellSet tovtkm::Convert ( vtkUnsignedCharArray types,
vtkCellArray cells,
vtkIdType  numberOfPoints 
)

◆ Convert() [3/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::CoordinateSystem tovtkm::Convert ( vtkPoints points)

◆ Convert() [4/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet tovtkm::Convert ( vtkStructuredGrid input,
FieldsFlag  fields = FieldsFlag::None 
)

◆ Convert() [5/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet tovtkm::Convert ( vtkRectilinearGrid input,
FieldsFlag  fields 
)

◆ Convert() [6/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet tovtkm::Convert ( vtkDataSet input,
FieldsFlag  fields = FieldsFlag::None 
)

◆ Convert() [7/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet tovtkm::Convert ( vtkImageData input,
FieldsFlag  fields = FieldsFlag::None 
)

◆ Convert() [8/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet tovtkm::Convert ( vtkPolyData input,
FieldsFlag  fields = FieldsFlag::None 
)

◆ Convert() [9/9]

VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::DataSet tovtkm::Convert ( vtkUnstructuredGrid input,
FieldsFlag  fields = FieldsFlag::None 
)