VTK  9.7.1
vtkAggregateToPartitionedDataSetCollection.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
3 
15 #ifndef vtkAggregateToPartitionedDataSetCollection_h
16 #define vtkAggregateToPartitionedDataSetCollection_h
17 
18 #include "vtkCommonExecutionModelModule.h" // for export macro
19 #include "vtkExecutionAggregator.h"
20 
21 #include <memory> // for std::unique_ptr
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkAggregateToPartitionedDataSetCollection
26  : public vtkExecutionAggregator
27 {
28 public:
31  void PrintSelf(std::ostream& os, vtkIndent indent) override;
32 
34 
38  bool Aggregate(vtkDataObject* input) override;
39 
44 
48  void Clear() override;
49 
50 protected:
53 
54 private:
57  void operator=(const vtkAggregateToPartitionedDataSetCollection&) = delete;
58 
59  struct Internals;
60  std::unique_ptr<Internals> Internal;
61 };
62 
63 VTK_ABI_NAMESPACE_END
64 
65 #endif // vtkAggregateToPartitionedDataSetCollection_h
virtual bool Aggregate(vtkDataObject *input)=0
Called at the end of each iteration with the corresponding data object.
virtual vtkSmartPointer< vtkDataObject > GetOutputDataObject()=0
Called after the iterations are done, to retrieve the resulting data object.
void PrintSelf(std::ostream &os, vtkIndent indent) override
virtual void Clear()=0
Called after the iterations are done, to clean memory that where used by the Aggregate method...
a simple class to control print indentation
Definition: vtkIndent.h:28
Aggregate the results of the sub-pipeline in vtkEndFor.
virtual vtkSmartPointer< vtkDataObject > RequestDataObject(vtkDataObject *input)
Create the empty output data set.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
general representation of visualization data
Definition: vtkDataObject.h:55