VTK  9.1.0
ImageDataConverter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: ImageDataConverter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15#ifndef vtkmlib_ImageDataConverter_h
16#define vtkmlib_ImageDataConverter_h
17
18#include "vtkAcceleratorsVTKmDataModelModule.h"
19
20#include "ArrayConverters.h" // for FieldsFlag
21
22#include "vtkmConfigDataModel.h" //required for general vtkm setup
23
24#include <vtkm/cont/DataSet.h>
25
26class vtkImageData;
27class vtkDataSet;
28
29namespace tovtkm
30{
31
32VTKACCELERATORSVTKMDATAMODEL_EXPORT
34
35}
36
37namespace fromvtkm
38{
39
40VTKACCELERATORSVTKMDATAMODEL_EXPORT
41bool Convert(const vtkm::cont::DataSet& voutput, vtkImageData* output, vtkDataSet* input);
42
43VTKACCELERATORSVTKMDATAMODEL_EXPORT
45 const vtkm::cont::DataSet& voutput, int extents[6], vtkImageData* output, vtkDataSet* input);
46
47}
48#endif // vtkmlib_ImageDataConverter_h
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:39