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 #ifndef __VTK_WRAP__
20 
21 #include "vtkAcceleratorsVTKmModule.h"
22 
23 #include "ArrayConverters.h" // for FieldsFlag
24 
25 #include "vtkmConfig.h" //required for general vtkm setup
26 
27 #include <vtkm/cont/DataSet.h>
28 
29 class vtkImageData;
30 class vtkStructuredGrid;
31 class vtkPoints;
32 class vtkDataSet;
33 
34 namespace tovtkm {
35 
36 // convert a vtkPoints array into a coordinate system
37 VTKACCELERATORSVTKM_EXPORT
38 vtkm::cont::CoordinateSystem Convert(vtkPoints* points);
39 
40 // convert an structured grid type
41 VTKACCELERATORSVTKM_EXPORT
42 vtkm::cont::DataSet Convert(vtkStructuredGrid* input,
43  FieldsFlag fields = FieldsFlag::None);
44 
45 
46 // determine the type and call the proper Convert routine
47 VTKACCELERATORSVTKM_EXPORT
48 vtkm::cont::DataSet Convert(vtkDataSet* input,
49  FieldsFlag fields = FieldsFlag::None);
50 }
51 
52 #endif
53 #endif // vtkmlib_DataSetConverters_h
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
topologically regular array of data
represent and manipulate 3D points
Definition: vtkPoints.h:39
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)