VTK-m  2.2
ContinuousScatterPlot.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_density_estimate_ContinuousScatterPlot_h
11 #define vtk_m_filter_density_estimate_ContinuousScatterPlot_h
12 
13 #include <vtkm/filter/Filter.h>
15 
16 namespace vtkm
17 {
18 namespace filter
19 {
20 namespace density_estimate
21 {
38 
40 {
41 public:
42  VTKM_CONT ContinuousScatterPlot() { this->SetOutputFieldName("density"); }
43 
46  VTKM_CONT
47  void SetActiveFieldsPair(const std::string& fieldName1, const std::string& fieldName2)
48  {
49  SetActiveField(0, fieldName1, vtkm::cont::Field::Association::Points);
50  SetActiveField(1, fieldName2, vtkm::cont::Field::Association::Points);
51  };
52 
53 private:
54  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
55 };
56 } // namespace density_estimate
57 } // namespace filter
58 } // namespace vtm
59 
60 #endif //vtk_m_filter_density_estimate_ContinuousScatterPlot_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::density_estimate::ContinuousScatterPlot::ContinuousScatterPlot
ContinuousScatterPlot()
Definition: ContinuousScatterPlot.h:42
vtkm::filter::density_estimate::ContinuousScatterPlot
Constructs the continuous scatterplot for two given scalar point fields of a mesh.
Definition: ContinuousScatterPlot.h:39
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
vtkm::cont::Field::Association::Points
@ Points
A field that applies to points.
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm_filter_density_estimate_export.h
VTKM_FILTER_DENSITY_ESTIMATE_EXPORT
#define VTKM_FILTER_DENSITY_ESTIMATE_EXPORT
Definition: vtkm_filter_density_estimate_export.h:44
vtkm::filter::density_estimate::ContinuousScatterPlot::SetActiveFieldsPair
void SetActiveFieldsPair(const std::string &fieldName1, const std::string &fieldName2)
Select both point fields to use when running the filter.
Definition: ContinuousScatterPlot.h:47
Filter.h