VTK-m  2.2
ConvertToPointCloud.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 
11 #ifndef vtk_m_filter_geometry_refinement_ConvertToPointCloud_h
12 #define vtk_m_filter_geometry_refinement_ConvertToPointCloud_h
13 
14 #include <vtkm/filter/Filter.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace geometry_refinement
22 {
23 
39 {
40  bool AssociateFieldsWithCells = false;
41 
42 public:
51  VTKM_CONT void SetAssociateFieldsWithCells(bool flag) { this->AssociateFieldsWithCells = flag; }
53  VTKM_CONT bool GetAssociateFieldsWithCells() const { return this->AssociateFieldsWithCells; }
54 
55 protected:
56  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
57 };
58 
59 }
60 }
61 } // namespace vtkm::filter::geometry_refinement
62 
63 #endif //vtk_m_filter_geometry_refinement_ConvertToPointCloud_h
vtkm_filter_geometry_refinement_export.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::geometry_refinement::ConvertToPointCloud
Convert a DataSet to a point cloud.
Definition: ConvertToPointCloud.h:38
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::geometry_refinement::ConvertToPointCloud::GetAssociateFieldsWithCells
bool GetAssociateFieldsWithCells() const
By default, all the input point fields are kept as point fields in the output.
Definition: ConvertToPointCloud.h:53
VTKM_FILTER_GEOMETRY_REFINEMENT_EXPORT
#define VTKM_FILTER_GEOMETRY_REFINEMENT_EXPORT
Definition: vtkm_filter_geometry_refinement_export.h:44
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::geometry_refinement::ConvertToPointCloud::SetAssociateFieldsWithCells
void SetAssociateFieldsWithCells(bool flag)
By default, all the input point fields are kept as point fields in the output.
Definition: ConvertToPointCloud.h:51
Filter.h