VTK: Accelerators/Vtkm/DataModel/vtkmlib/ImageDataConverter.h Source File

| VTK 9.3.1

ImageDataConverter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkmlib_ImageDataConverter_h
4 #define vtkmlib_ImageDataConverter_h
5
6 #include "vtkAcceleratorsVTKmDataModelModule.h"
7
8 #include "ArrayConverters.h" // for FieldsFlag
9
10 #include "vtkmConfigDataModel.h" //required for general vtkm setup
11
12 #include <vtkm/cont/DataSet.h>
13
14 VTK_ABI_NAMESPACE_BEGIN
15 class vtkImageData;
16 class vtkDataSet;
17 VTK_ABI_NAMESPACE_END
18
19 namespace tovtkm
20 {
21 VTK_ABI_NAMESPACE_BEGIN
22
23 VTKACCELERATORSVTKMDATAMODEL_EXPORT
24 vtkm::cont::DataSet Convert(vtkImageData* input, FieldsFlag fields = FieldsFlag::None);
25
26 VTK_ABI_NAMESPACE_END
27 }
28
29 namespace fromvtkm
30 {
31 VTK_ABI_NAMESPACE_BEGIN
32
33 VTKACCELERATORSVTKMDATAMODEL_EXPORT
34 bool Convert(const vtkm::cont::DataSet& voutput, vtkImageData* output, vtkDataSet* input);
35
36 VTKACCELERATORSVTKMDATAMODEL_EXPORT
37 bool Convert(
38 const vtkm::cont::DataSet& voutput, int extents[6], vtkImageData* output, vtkDataSet* input);
39
40 VTK_ABI_NAMESPACE_END
41 }
42 #endif // vtkmlib_ImageDataConverter_h
ArrayConverters.h
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
fromvtkm
Definition: DataArrayConverters.h:113
fromvtkm::Convert
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
tovtkm
Definition: DataArrayConverters.h:35
tovtkm::FieldsFlag
FieldsFlag
Definition: DataArrayConverters.h:101
tovtkm::FieldsFlag::None
@ None
tovtkm::Convert
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)
vtx::types::DataSet
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:28