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 
22 #include "ArrayConverters.h" // for FieldsFlag
23 
24 #include "vtkmConfig.h" //required for general vtkm setup
25 
26 #include <vtkm/cont/DataSet.h>
27 
28 class vtkImageData;
29 class vtkStructuredGrid;
30 class vtkPoints;
31 class vtkDataSet;
32 
33 namespace tovtkm {
34 
35 // convert a vtkPoints array into a coordinate system
36 VTKACCELERATORSVTKM_EXPORT
37 vtkm::cont::CoordinateSystem Convert(vtkPoints* points);
38 
39 // convert an structured grid type
40 VTKACCELERATORSVTKM_EXPORT
41 vtkm::cont::DataSet Convert(vtkStructuredGrid* input,
42  FieldsFlag fields = FieldsFlag::None);
43 
44 
45 // determine the type and call the proper Convert routine
46 VTKACCELERATORSVTKM_EXPORT
47 vtkm::cont::DataSet Convert(vtkDataSet* input,
48  FieldsFlag fields = FieldsFlag::None);
49 }
50 
51 #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)