VTK  9.5.20251008
CellSetConverters.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
3// SPDX-FileCopyrightText: Copyright 2012 Sandia Corporation.
4// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
5
6#ifndef vtkmlib_CellSetConverters_h
7#define vtkmlib_CellSetConverters_h
8
9#include "vtkAcceleratorsVTKmDataModelModule.h"
10#include "vtkSmartPointer.h" // For vtkSmartPointer
11#include "vtkmConfigDataModel.h" // required for general viskores setup
12
13#include <viskores/cont/UnknownCellSet.h>
14#include <vtkType.h>
15
16VTK_ABI_NAMESPACE_BEGIN
17class vtkCellArray;
18class vtkDataArray;
19class vtkPolyData;
21VTK_ABI_NAMESPACE_END
22
23namespace tovtkm
24{
25VTK_ABI_NAMESPACE_BEGIN
26VTKACCELERATORSVTKMDATAMODEL_EXPORT
28
29VTKACCELERATORSVTKMDATAMODEL_EXPORT
31
32VTKACCELERATORSVTKMDATAMODEL_EXPORT
34
35VTKACCELERATORSVTKMDATAMODEL_EXPORT
36viskores::cont::UnknownCellSet ConvertSingleType(
37 vtkCellArray* cells, int cellType, vtkIdType numberOfPoints, bool forceViskores = false);
38
39VTKACCELERATORSVTKMDATAMODEL_EXPORT
40viskores::cont::UnknownCellSet Convert(
41 vtkDataArray* types, vtkCellArray* cells, vtkIdType numberOfPoints, bool forceViskores = false);
42VTK_ABI_NAMESPACE_END
43}
44
45namespace fromvtkm
46{
47VTK_ABI_NAMESPACE_BEGIN
48
49VTKACCELERATORSVTKMDATAMODEL_EXPORT
51 const viskores::cont::UnknownCellSet& toConvert, vtkCellArray* cells, bool forceViskores = false);
52bool Convert(const viskores::cont::UnknownCellSet& toConvert, vtkCellArray* cells,
53 vtkSmartPointer<vtkDataArray>& types, bool forceViskores = false);
54VTK_ABI_NAMESPACE_END
55}
56
57#endif // vtkmlib_CellSetConverters_h
object to represent cell connectivity
abstract superclass for arrays of numeric data
concrete dataset represents vertices, lines, polygons, and triangle strips
Hold a reference to a vtkObjectBase instance.
dataset represents arbitrary combinations of all possible cell types
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const viskores::cont::Field &input)
VTKACCELERATORSVTKMDATAMODEL_EXPORT viskores::cont::Field Convert(vtkDataArray *input, int association)
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkIdType IsHomogeneous(vtkCellArray *cells)
VTKACCELERATORSVTKMDATAMODEL_EXPORT viskores::cont::UnknownCellSet ConvertSingleType(vtkCellArray *cells, int cellType, vtkIdType numberOfPoints, bool forceViskores=false)
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkSmartPointer< vtkDataArray > CreatePolygonalCellTypes(vtkCellArray *input)
int vtkIdType
Definition vtkType.h:367