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