Viskores  1.0
GhostCellClassify.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_filter_mesh_info_GhostCellClassify_h
19 #define viskores_filter_mesh_info_GhostCellClassify_h
20 
21 #include <viskores/filter/Filter.h>
23 
24 namespace viskores
25 {
26 namespace filter
27 {
28 namespace mesh_info
29 {
30 
40 class VISKORES_FILTER_MESH_INFO_EXPORT GhostCellClassify : public viskores::filter::Filter
41 {
42  VISKORES_CONT viskores::cont::DataSet DoExecute(const viskores::cont::DataSet& inData) override;
43  std::string GhostCellName;
44 
45 public:
47  : Filter()
48  , GhostCellName(viskores::cont::GetGlobalGhostCellFieldName())
49  {
50  }
51 
56  VISKORES_CONT void SetGhostCellName(const std::string& fieldName)
57  {
58  this->GhostCellName = fieldName;
59  }
61  VISKORES_CONT const std::string& GetGhostCellName() { return this->GhostCellName; }
62 };
63 
64 } // namespace mesh_info
65 } // namespace filter
66 } // namespace viskores
67 
68 #endif //viskores_filter_mesh_info_GhostCellClassify_h
viskores::filter::mesh_info::GhostCellClassify
Determines which cells should be considered ghost cells in a structured data set.
Definition: GhostCellClassify.h:40
viskores::filter::mesh_info::GhostCellClassify::GhostCellClassify
GhostCellClassify()
Definition: GhostCellClassify.h:46
viskores::cont::DataSet
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
viskores::filter::mesh_info::GhostCellClassify::GhostCellName
std::string GhostCellName
Definition: GhostCellClassify.h:43
viskores::filter::Filter
Base class for all filters.
Definition: Filter.h:171
viskores::filter::mesh_info::GhostCellClassify::SetGhostCellName
void SetGhostCellName(const std::string &fieldName)
Set the name of the output field name.
Definition: GhostCellClassify.h:56
viskores::cont::GetGlobalGhostCellFieldName
const std::string & GetGlobalGhostCellFieldName() noexcept
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::filter::mesh_info::GhostCellClassify::GetGhostCellName
const std::string & GetGhostCellName()
Set the name of the output field name.
Definition: GhostCellClassify.h:61
viskores_filter_mesh_info_export.h
Filter.h