vtkAppendReduceFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkAppendReduceFilter_h
12 #define vtkAppendReduceFilter_h
13 
14 #include "vtkPVVTKExtensionsMiscModule.h" // needed for export macro
15 #include "vtkReductionFilter.h"
16 
18 {
19 
20 public:
21  static vtkAppendReduceFilter* New();
23  void PrintSelf(ostream& os, vtkIndent indent) override;
24 
26 
32  vtkSetMacro(MergePoints, bool);
33  vtkGetMacro(MergePoints, bool);
35 
37 
44  vtkSetClampMacro(Tolerance, double, 0.0, VTK_DOUBLE_MAX);
45  vtkGetMacro(Tolerance, double);
47 
48 protected:
50  ~vtkAppendReduceFilter() override;
51 
52  void Reduce(vtkDataObject* input, vtkDataObject* output) override;
53 
54 private:
55  bool MergePoints = false;
56  double Tolerance = 0.0;
57 };
58 
59 #endif
Reduction Filter that uses vtkAppendDataSets as PostGatherHelper.
virtual void Reduce(vtkDataObject *input, vtkDataObject *output)
Core function of the filter.
static vtkReductionFilter * New()
#define VTKPVVTKEXTENSIONSMISC_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) override
A generic filter that can reduce any type of dataset using any reduction algorithm.