vtk-m/vtkm/filter/GhostCellClassify.h

56 lines
1.6 KiB
C
Raw Normal View History

2019-02-07 20:26:20 +00:00
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
2019-04-15 23:24:21 +00:00
//
2019-02-07 20:26:20 +00:00
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//============================================================================
2019-03-25 13:08:16 +00:00
#ifndef vtk_m_filter_GhostCellClassify_h
#define vtk_m_filter_GhostCellClassify_h
2019-02-07 20:26:20 +00:00
#include <vtkm/filter/FilterDataSet.h>
namespace vtkm
{
namespace filter
{
struct VTKM_DEPRECATED(1.6,
"GhostCellClassifyPolicy no longer has an effect.") GhostCellClassifyPolicy
: vtkm::filter::PolicyBase<GhostCellClassifyPolicy>
2019-02-07 20:26:20 +00:00
{
2019-12-05 21:38:41 +00:00
using FieldTypeList = vtkm::List<vtkm::UInt8>;
2019-02-07 20:26:20 +00:00
};
2019-03-25 13:08:16 +00:00
class GhostCellClassify : public vtkm::filter::FilterDataSet<GhostCellClassify>
2019-02-07 20:26:20 +00:00
{
public:
2019-12-05 21:38:41 +00:00
using SupportedTypes = vtkm::List<vtkm::UInt8>;
2019-02-07 20:26:20 +00:00
VTKM_CONT
2019-03-25 13:08:16 +00:00
GhostCellClassify();
2019-02-07 20:26:20 +00:00
template <typename Policy>
VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& inData,
vtkm::filter::PolicyBase<Policy> policy);
template <typename DerivedPolicy>
VTKM_CONT bool MapFieldOntoOutput(vtkm::cont::DataSet& result,
const vtkm::cont::Field& field,
const vtkm::filter::PolicyBase<DerivedPolicy>&)
{
result.AddField(field);
return true;
}
2019-02-07 20:26:20 +00:00
private:
};
}
} // namespace vtkm::filter
2019-03-25 13:08:16 +00:00
#include <vtkm/filter/GhostCellClassify.hxx>
2019-02-07 20:26:20 +00:00
2019-03-25 13:08:16 +00:00
#endif //vtk_m_filter_GhostCellClassify_h