VTK-m  2.2
Probe.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 #ifndef vtk_m_filter_resampling_Probe_h
11 #define vtk_m_filter_resampling_Probe_h
12 
13 #include <vtkm/filter/Filter.h>
15 
16 namespace vtkm
17 {
18 namespace filter
19 {
20 namespace resampling
21 {
22 
37 {
38 public:
44  {
45  this->Geometry = vtkm::cont::DataSet();
46  this->Geometry.CopyStructure(geometry);
47  }
48 
50  VTKM_CONT const vtkm::cont::DataSet& GetGeometry() const { return this->Geometry; }
51 
57  VTKM_CONT void SetInvalidValue(vtkm::Float64 invalidValue) { this->InvalidValue = invalidValue; }
59  VTKM_CONT vtkm::Float64 GetInvalidValue() const { return this->InvalidValue; }
60 
61 private:
62  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
63 
65 
66  vtkm::Float64 InvalidValue = vtkm::Nan64();
67 };
68 
69 } // namespace resampling
70 } // namespace filter
71 } // namespace vtkm
72 
73 #endif // vtk_m_filter_resampling_Probe_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::resampling::Probe::SetGeometry
void SetGeometry(const vtkm::cont::DataSet &geometry)
Specify the geometry to probe with.
Definition: Probe.h:43
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::resampling::Probe::Geometry
vtkm::cont::DataSet Geometry
Definition: Probe.h:64
vtkm::filter::resampling::Probe::GetInvalidValue
vtkm::Float64 GetInvalidValue() const
Specify the value to use for points outside the bounds of the input.
Definition: Probe.h:59
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
vtkm_filter_resampling_export.h
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::resampling::Probe
Sample the fields of a data set at specified locations.
Definition: Probe.h:36
vtkm::filter::resampling::Probe::GetGeometry
const vtkm::cont::DataSet & GetGeometry() const
Specify the geometry to probe with.
Definition: Probe.h:50
vtkm::Float64
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
VTKM_FILTER_RESAMPLING_EXPORT
#define VTKM_FILTER_RESAMPLING_EXPORT
Definition: vtkm_filter_resampling_export.h:44
vtkm::filter::resampling::Probe::SetInvalidValue
void SetInvalidValue(vtkm::Float64 invalidValue)
Specify the value to use for points outside the bounds of the input.
Definition: Probe.h:57
Filter.h