VTK
DataSetConverters.h
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // Copyright (c) Kitware, Inc.
4 // All rights reserved.
5 // See LICENSE.txt for details.
6 //
7 // This software is distributed WITHOUT ANY WARRANTY; without even
8 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 // PURPOSE. See the above copyright notice for more information.
10 //
11 // Copyright 2012 Sandia Corporation.
12 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
13 // the U.S. Government retains certain rights in this software.
14 //
15 //=============================================================================
16 
17 #ifndef vtkmlib_DataSetConverters_h
18 #define vtkmlib_DataSetConverters_h
19 
20 #include "vtkAcceleratorsVTKmModule.h"
21 #include "vtkmConfig.h" //required for general vtkm setup
22 
23 #include <vtkm/cont/DataSet.h>
24 
25 class vtkImageData;
26 class vtkStructuredGrid;
27 class vtkPoints;
28 class vtkDataSet;
29 
30 namespace tovtkm {
31 
32 // convert a vtkPoints array into a coordinate system
33 VTKACCELERATORSVTKM_EXPORT
34 vtkm::cont::CoordinateSystem Convert(vtkPoints* points);
35 
36 // convert an image data type
37 VTKACCELERATORSVTKM_EXPORT
38 vtkm::cont::DataSet Convert(vtkImageData* input);
39 
40 // convert an structured grid type
41 VTKACCELERATORSVTKM_EXPORT
42 vtkm::cont::DataSet Convert(vtkStructuredGrid* input);
43 
44 
45 // determine the type and call the proper Convert routine
46 VTKACCELERATORSVTKM_EXPORT
47 vtkm::cont::DataSet Convert(vtkDataSet* input);
48 }
49 
50 #endif // vtkmlib_DataSetConverters_h
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
topologically regular array of data
represent and manipulate 3D points
Definition: vtkPoints.h:33
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)