VTK  9.2.6
CellSetConverters.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_CellSetConverters_h
18 #define vtkmlib_CellSetConverters_h
19 
20 #include "vtkAcceleratorsVTKmDataModelModule.h"
21 #include "vtkmConfigDataModel.h" //required for general vtkm setup
22 
23 #include <vtkType.h>
24 #include <vtkm/cont/UnknownCellSet.h>
25 
26 class vtkCellArray;
28 class vtkIdTypeArray;
29 
30 namespace tovtkm
31 {
32 VTKACCELERATORSVTKMDATAMODEL_EXPORT
33 vtkm::cont::UnknownCellSet ConvertSingleType(
34  vtkCellArray* cells, int cellType, vtkIdType numberOfPoints);
35 
36 VTKACCELERATORSVTKMDATAMODEL_EXPORT
37 vtkm::cont::UnknownCellSet Convert(
38  vtkUnsignedCharArray* types, vtkCellArray* cells, vtkIdType numberOfPoints);
39 }
40 
41 namespace fromvtkm
42 {
43 
44 VTKACCELERATORSVTKMDATAMODEL_EXPORT
45 bool Convert(const vtkm::cont::UnknownCellSet& toConvert, vtkCellArray* cells,
46  vtkUnsignedCharArray* types = nullptr);
47 }
48 
49 #endif // vtkmlib_CellSetConverters_h
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:332
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
dynamic, self-adjusting array of unsigned char
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)
object to represent cell connectivity
Definition: vtkCellArray.h:186
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::UnknownCellSet ConvertSingleType(vtkCellArray *cells, int cellType, vtkIdType numberOfPoints)