VTK-m  2.2
PointElevation.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_field_transform_PointElevation_h
12 #define vtk_m_filter_field_transform_PointElevation_h
13 
14 #include <vtkm/filter/Filter.h>
16 
17 namespace vtkm
18 {
19 namespace filter
20 {
21 namespace field_transform
22 {
36 {
37 public:
39 
45  VTKM_CONT void SetLowPoint(const vtkm::Vec3f_64& point) { this->LowPoint = point; }
48  {
49  this->SetLowPoint({ x, y, z });
50  }
51 
57  VTKM_CONT void SetHighPoint(const vtkm::Vec3f_64& point) { this->HighPoint = point; }
60  {
61  this->SetHighPoint({ x, y, z });
62  }
63 
70  {
71  this->RangeLow = low;
72  this->RangeHigh = high;
73  }
74 
75 private:
76  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
77 
78  vtkm::Vec3f_64 LowPoint = { 0.0, 0.0, 0.0 };
79  vtkm::Vec3f_64 HighPoint = { 0.0, 0.0, 1.0 };
80  vtkm::Float64 RangeLow = 0.0, RangeHigh = 1.0;
81 };
82 } // namespace field_transform
83 } // namespace filter
84 } // namespace vtkm
85 
86 #endif // vtk_m_filter_field_transform_PointElevation_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::field_transform::PointElevation::SetLowPoint
void SetLowPoint(const vtkm::Vec3f_64 &point)
Specify the coordinate of the low point.
Definition: PointElevation.h:45
vtkm::filter::field_transform::PointElevation::SetRange
void SetRange(vtkm::Float64 low, vtkm::Float64 high)
Specify the range of values to output.
Definition: PointElevation.h:69
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm_filter_field_transform_export.h
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
vtkm::filter::field_transform::PointElevation
Generate a scalar field along a specified direction.
Definition: PointElevation.h:35
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::field_transform::PointElevation::SetHighPoint
void SetHighPoint(vtkm::Float64 x, vtkm::Float64 y, vtkm::Float64 z)
Specify the coordinate of the high point.
Definition: PointElevation.h:59
vtkm::filter::field_transform::PointElevation::SetHighPoint
void SetHighPoint(const vtkm::Vec3f_64 &point)
Specify the coordinate of the high point.
Definition: PointElevation.h:57
vtkm::Vec< vtkm::Float64, 3 >
vtkm::Float64
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
vtkm::filter::field_transform::PointElevation::SetLowPoint
void SetLowPoint(vtkm::Float64 x, vtkm::Float64 y, vtkm::Float64 z)
Specify the coordinate of the low point.
Definition: PointElevation.h:47
VTKM_FILTER_FIELD_TRANSFORM_EXPORT
#define VTKM_FILTER_FIELD_TRANSFORM_EXPORT
Definition: vtkm_filter_field_transform_export.h:44
Filter.h