VTK
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 "vtkAcceleratorsVTKmModule.h"
19 
20 #include "ArrayConverters.h" // for FieldsFlag
21 
22 #include "vtkmConfig.h" //required for general vtkm setup
23 
24 #include <vtkm/cont/DataSet.h>
25 
26 class vtkImageData;
27 class vtkDataSet;
28 
29 namespace tovtkm {
30 
31 VTKACCELERATORSVTKM_EXPORT
32 vtkm::cont::DataSet Convert(vtkImageData* input,
33  FieldsFlag fields = FieldsFlag::None);
34 
35 }
36 
37 namespace fromvtkm {
38 
39 VTKACCELERATORSVTKM_EXPORT
40 bool Convert(const vtkm::cont::DataSet& voutput, vtkImageData* output, vtkDataSet* input);
41 
42 VTKACCELERATORSVTKM_EXPORT
43 bool Convert(const vtkm::cont::DataSet& voutput, int extents[6], vtkImageData* output,
44  vtkDataSet* input);
45 
46 }
47 #endif // vtkmlib_ImageDataConverter_h
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
VTKACCELERATORSVTKM_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)