VTK-m  2.0
GhostCellClassify.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_filter_mesh_info_GhostCellClassify_h
11 #define vtk_m_filter_mesh_info_GhostCellClassify_h
12 
13 #include <vtkm/filter/Filter.h>
14 #include <vtkm/filter/mesh_info/vtkm_filter_mesh_info_export.h>
15 
16 namespace vtkm
17 {
18 namespace filter
19 {
20 namespace mesh_info
21 {
22 class VTKM_FILTER_MESH_INFO_EXPORT GhostCellClassify : public vtkm::filter::Filter
23 {
24  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& inData) override;
25  std::string GhostCellName;
26 
27 public:
29  : Filter()
30  , GhostCellName(vtkm::cont::GetGlobalGhostCellFieldName())
31  {
32  }
33 
34  VTKM_CONT void SetGhostCellName(const std::string& fieldName) { this->GhostCellName = fieldName; }
35  VTKM_CONT const std::string& GetGhostCellName() { return this->GhostCellName; }
36 };
37 } // namespace mesh_info
38 } // namespace filter
39 } // namespace vtkm
40 
41 #endif //vtk_m_filter_mesh_info_GhostCellClassify_h
vtkm::cont::GetGlobalGhostCellFieldName
VTKM_CONT_EXPORT const VTKM_CONT std::string & GetGlobalGhostCellFieldName() noexcept
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::DataSet
Definition: DataSet.h:34
vtkm::filter::mesh_info::GhostCellClassify
Definition: GhostCellClassify.h:22
vtkm::filter::mesh_info::GhostCellClassify::GhostCellName
std::string GhostCellName
Definition: GhostCellClassify.h:25
vtkm::filter::Filter
base class for all filters.
Definition: Filter.h:218
vtkm::filter::mesh_info::GhostCellClassify::GetGhostCellName
const VTKM_CONT std::string & GetGhostCellName()
Definition: GhostCellClassify.h:35
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::mesh_info::GhostCellClassify::GhostCellClassify
VTKM_CONT GhostCellClassify()
Definition: GhostCellClassify.h:28
vtkm::filter::mesh_info::GhostCellClassify::SetGhostCellName
VTKM_CONT void SetGhostCellName(const std::string &fieldName)
Definition: GhostCellClassify.h:34
Filter.h