VTK  9.1.0
PolyDataConverter.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_PolyDataConverter_h
18#define vtkmlib_PolyDataConverter_h
19
20#include "vtkAcceleratorsVTKmDataModelModule.h"
21
22#include "ArrayConverters.h" // for FieldsFlag
23
24#include "vtkmConfigDataModel.h" //required for general vtkm setup
25
26#include <vtkm/cont/DataSet.h>
27
28class vtkPolyData;
29class vtkDataSet;
30
31namespace tovtkm
32{
33// convert an polydata type
34VTKACCELERATORSVTKMDATAMODEL_EXPORT
35vtkm::cont::DataSet Convert(vtkPolyData* input, FieldsFlag fields = FieldsFlag::None);
36}
37
38namespace fromvtkm
39{
40VTKACCELERATORSVTKMDATAMODEL_EXPORT
41bool Convert(const vtkm::cont::DataSet& voutput, vtkPolyData* output, vtkDataSet* input);
42}
43#endif // vtkmlib_PolyDataConverter_h
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
VTKACCELERATORSVTKMDATAMODEL_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)