VTK-m  2.2
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>
15 
16 namespace vtkm
17 {
18 namespace filter
19 {
20 namespace mesh_info
21 {
22 
33 {
34  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& inData) override;
35  std::string GhostCellName;
36 
37 public:
39  : Filter()
40  , GhostCellName(vtkm::cont::GetGlobalGhostCellFieldName())
41  {
42  }
43 
48  VTKM_CONT void SetGhostCellName(const std::string& fieldName) { this->GhostCellName = fieldName; }
50  VTKM_CONT const std::string& GetGhostCellName() { return this->GhostCellName; }
51 };
52 
53 } // namespace mesh_info
54 } // namespace filter
55 } // namespace vtkm
56 
57 #endif //vtk_m_filter_mesh_info_GhostCellClassify_h
vtkm::filter::mesh_info::GhostCellClassify::SetGhostCellName
void SetGhostCellName(const std::string &fieldName)
Set the name of the output field name.
Definition: GhostCellClassify.h:48
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::mesh_info::GhostCellClassify::GetGhostCellName
const std::string & GetGhostCellName()
Set the name of the output field name.
Definition: GhostCellClassify.h:50
VTKM_FILTER_MESH_INFO_EXPORT
#define VTKM_FILTER_MESH_INFO_EXPORT
Definition: vtkm_filter_mesh_info_export.h:44
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::mesh_info::GhostCellClassify
Determines which cells should be considered ghost cells in a structured data set.
Definition: GhostCellClassify.h:32
vtkm::filter::mesh_info::GhostCellClassify::GhostCellName
std::string GhostCellName
Definition: GhostCellClassify.h:35
vtkm::filter::mesh_info::GhostCellClassify::GhostCellClassify
GhostCellClassify()
Definition: GhostCellClassify.h:38
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::cont::GetGlobalGhostCellFieldName
const std::string & GetGlobalGhostCellFieldName() noexcept
vtkm_filter_mesh_info_export.h
Filter.h