VTK  9.3.20240907
vtkPartitionBalancer.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
53#ifndef vtkPartitionBalancer_h
54#define vtkPartitionBalancer_h
55
56#include "vtkFiltersParallelModule.h" // for export macros
58
59VTK_ABI_NAMESPACE_BEGIN
61
62class VTKFILTERSPARALLEL_EXPORT vtkPartitionBalancer : public vtkPartitionedDataSetAlgorithm
63{
64public:
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
75 vtkGetObjectMacro(Controller, vtkMultiProcessController);
77
81 enum Mode
82 {
84 Squash
85 };
86
88
92 vtkGetMacro(Mode, int);
94
109
124
125protected:
128
130
135
136 int Mode;
137
138private:
140 void operator=(const vtkPartitionBalancer&) = delete;
141};
142
143VTK_ABI_NAMESPACE_END
144#endif
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.
Balances input partitioned data sets so each rank has the same number of data sets.
void SetModeToExpand()
Sets filter to expand mode.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
vtkMultiProcessController * Controller
Local controller.
static vtkPartitionBalancer * New()
Mode
Modes defining the layout of the output.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetModeToSquash()
Sets filter to squash mode.
~vtkPartitionBalancer() override
void SetController(vtkMultiProcessController *)
Get/Set the controller to use.
Superclass for algorithms that produce vtkPartitionedDataSetAlgorithm.