VTK  9.4.20250405
UnstructuredGridConverter.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_UnstructuredGridConverter_h
7#define vtkmlib_UnstructuredGridConverter_h
8
9#include "vtkAcceleratorsVTKmDataModelModule.h"
10
11#include "ArrayConverters.h" // For FieldsFlag
12
13#include "vtkmConfigDataModel.h" //required for general vtkm setup
14
15#include <vtkm/cont/DataSet.h>
16
17VTK_ABI_NAMESPACE_BEGIN
19class vtkDataSet;
20VTK_ABI_NAMESPACE_END
21
22namespace tovtkm
23{
24VTK_ABI_NAMESPACE_BEGIN
25
26// convert an unstructured grid type
27VTKACCELERATORSVTKMDATAMODEL_EXPORT
28vtkm::cont::DataSet Convert(vtkUnstructuredGrid* input, FieldsFlag fields = FieldsFlag::None);
29VTK_ABI_NAMESPACE_END
30}
31
32namespace fromvtkm
33{
34VTK_ABI_NAMESPACE_BEGIN
35VTKACCELERATORSVTKMDATAMODEL_EXPORT
36bool Convert(const vtkm::cont::DataSet& voutput, vtkUnstructuredGrid* output, vtkDataSet* input);
37VTK_ABI_NAMESPACE_END
38}
39#endif // vtkmlib_UnstructuredGridConverter_h
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
dataset represents arbitrary combinations of all possible cell types
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)