VTK-m  2.2
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 
14 #include <vtkm/filter/Filter.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace geometry_refinement
22 {
23 
31 {
32 public:
34  VTKM_CONT void SetRadius(vtkm::FloatDefault r) { this->Radius = r; }
35 
40  VTKM_CONT void SetNumberOfSides(vtkm::Id n) { this->NumberOfSides = n; }
41 
44  VTKM_CONT void SetCapping(bool v) { this->Capping = v; }
45 
46 private:
47  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
48 
50  vtkm::Id NumberOfSides = 6;
51  bool Capping = false;
52 };
53 } // namespace geometry_refinement
54 } // namespace filter
55 } // namespace vtkm
56 
57 #endif // vtk_m_filter_geometry_refinement_Tube_h
vtkm::filter::geometry_refinement::Tube
Generate a tube around each line and polyline.
Definition: Tube.h:30
vtkm_filter_geometry_refinement_export.h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::geometry_refinement::Tube::SetRadius
void SetRadius(vtkm::FloatDefault r)
Specify the radius of each tube.
Definition: Tube.h:34
vtkm::filter::geometry_refinement::Tube::SetNumberOfSides
void SetNumberOfSides(vtkm::Id n)
Specify the number of sides for each tube.
Definition: Tube.h:40
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
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::Tube::SetCapping
void SetCapping(bool v)
The Tube filter can optionally add a cap at the ends of each tube.
Definition: Tube.h:44
vtkm::Id
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
vtkm::FloatDefault
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:236
Filter.h