VTK
dox
Accelerators
Vtkm
vtkmlib
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
vtkPoints
represent and manipulate 3D points
Definition:
vtkPoints.h:39
vtkStructuredGrid
topologically regular array of data
Definition:
vtkStructuredGrid.h:63
tovtkm::Convert
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)
ArrayConverters.h
tovtkm::FieldsFlag
FieldsFlag
Definition:
ArrayConverters.h:41
vtkX3D::points
Definition:
vtkX3D.h:446
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:45
tovtkm::FieldsFlag::None
vtkDataSet
abstract class to specify dataset behavior
Definition:
vtkDataSet.h:62
tovtkm
Definition:
vtkmClip.h:35
Generated by
1.8.16