VTK  9.6.20260409
vtkAggregateDataSetFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
14
15#ifndef vtkAggregateDataSetFilter_h
16#define vtkAggregateDataSetFilter_h
17
18#include "vtkFiltersParallelModule.h" // For export macro
20
21VTK_ABI_NAMESPACE_BEGIN
22class vtkDataSet;
24
25class VTKFILTERSPARALLEL_EXPORT vtkAggregateDataSetFilter : public vtkPassInputTypeAlgorithm
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
44 vtkGetMacro(NumberOfTargetProcesses, int);
46
52
53
65 vtkSetClampMacro(TargetProcess, int, ROOT_PROCESS, PROCESS_WITH_MOST_POINTS);
66 vtkGetMacro(TargetProcess, int);
72
73
75
81 vtkSetMacro(MergePoints, bool);
82 vtkGetMacro(MergePoints, bool);
83 vtkBooleanMacro(MergePoints, bool);
85
86protected:
89
90 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
91 vtkInformationVector* outputVector) override;
92 int FillInputPortInformation(int port, vtkInformation* info) override;
93
95
96 bool MergePoints = true;
97
98private:
100 void operator=(const vtkAggregateDataSetFilter&) = delete;
101
102 int TargetProcess;
103};
104
105VTK_ABI_NAMESPACE_END
106#endif
void SetTargetProcessToRootProcess()
Get/Set the target process for the aggregate operation.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetTargetProcessToProcessWithMostPoints()
Get/Set the target process for the aggregate operation.
virtual void SetTargetProcess(int)
Get/Set the target process for the aggregate operation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkAggregateDataSetFilter * New()
void SetNumberOfTargetProcesses(int)
Number of target processes.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkAggregateDataSetFilter() override
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.