VTK-m  2.0
Tube.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_Tube_h
12 #define vtk_m_filter_geometry_refinement_Tube_h
13 
15 #include <vtkm/filter/geometry_refinement/vtkm_filter_geometry_refinement_export.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace geometry_refinement
22 {
24 
27 
28 class VTKM_FILTER_GEOMETRY_REFINEMENT_EXPORT Tube : public vtkm::filter::FilterField
29 {
30 public:
31  VTKM_CONT
32  void SetRadius(vtkm::FloatDefault r) { this->Radius = r; }
33 
34  VTKM_CONT
35  void SetNumberOfSides(vtkm::Id n) { this->NumberOfSides = n; }
36 
37  VTKM_CONT
38  void SetCapping(bool v) { this->Capping = v; }
39 
40 private:
41  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
42 
44  vtkm::Id NumberOfSides{};
45  bool Capping{};
46 };
47 } // namespace geometry_refinement
48 } // namespace filter
49 } // namespace vtkm
50 
51 #endif // vtk_m_filter_geometry_refinement_Tube_h
vtkm::filter::geometry_refinement::Tube
generate tube geometry from polylines.
Definition: Tube.h:28
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::DataSet
Definition: DataSet.h:34
vtkm::filter::geometry_refinement::Tube::SetNumberOfSides
VTKM_CONT void SetNumberOfSides(vtkm::Id n)
Definition: Tube.h:35
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::filter::geometry_refinement::Tube::SetRadius
VTKM_CONT void SetRadius(vtkm::FloatDefault r)
Definition: Tube.h:32
FilterField.h
vtkm::filter::FilterField
Definition: FilterField.h:21
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::geometry_refinement::Tube::SetCapping
VTKM_CONT void SetCapping(bool v)
Definition: Tube.h:38
vtkm::FloatDefault
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:198