VTK
dox
Accelerators
Vtkm
vtkmlib
UnstructuredGridConverter.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_UnstructuredGridConverter_h
18
#define vtkmlib_UnstructuredGridConverter_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
vtkUnstructuredGrid
;
30
class
vtkDataSet
;
31
32
namespace
tovtkm
{
33
34
// convert an unstructured grid type
35
VTKACCELERATORSVTKM_EXPORT
36
vtkm::cont::DataSet
Convert
(
vtkUnstructuredGrid
* input,
37
FieldsFlag
fields =
FieldsFlag::None
);
38
}
39
40
namespace
fromvtkm
{
41
VTKACCELERATORSVTKM_EXPORT
42
bool
Convert
(
const
vtkm::cont::DataSet& voutput,
vtkUnstructuredGrid
* output,
43
vtkDataSet
* input);
44
}
45
#endif
46
#endif // vtkmlib_UnstructuredGridConverter_h
fromvtkm
Definition:
ArrayConverters.h:59
tovtkm::Convert
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)
fromvtkm::Convert
VTKACCELERATORSVTKM_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
ArrayConverters.h
tovtkm::FieldsFlag
FieldsFlag
Definition:
ArrayConverters.h:41
tovtkm::FieldsFlag::None
vtkDataSet
abstract class to specify dataset behavior
Definition:
vtkDataSet.h:62
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition:
vtkUnstructuredGrid.h:87
tovtkm
Definition:
vtkmClip.h:35
Generated by
1.8.16