VTK  9.7.1
vtkRedistributeDataSetToSubCommFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
29 #ifndef vtkRedistributeDataSetToSubCommFilter_h
30 #define vtkRedistributeDataSetToSubCommFilter_h
31 
32 #include "vtkDataObjectAlgorithm.h"
33 #include "vtkFiltersParallelDIY2Module.h" // for export macros
34 #include "vtkSmartPointer.h" // for vtkSmartPointer
35 
36 #include <memory> // for std::unique_ptr
37 
38 VTK_ABI_NAMESPACE_BEGIN
39 
41 class vtkProcessGroup;
42 
43 class VTKFILTERSPARALLELDIY2_EXPORT vtkRedistributeDataSetToSubCommFilter
44  : public vtkDataObjectAlgorithm
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  void SetController(vtkMultiProcessController*);
56  vtkGetObjectMacro(Controller, vtkMultiProcessController);
58 
60 
65  void SetSubGroup(vtkProcessGroup*);
66  vtkGetObjectMacro(SubGroup, vtkProcessGroup);
68 
70 
78  void SetEnableCutCaching(bool optimize);
79  bool GetEnableCutCaching();
81 
82 protected:
85 
90 
91 private:
92  vtkMultiProcessController* Controller;
93  vtkProcessGroup* SubGroup;
94 
95  class vtkInternals;
96  std::unique_ptr<vtkInternals> Internal;
97 };
98 
99 VTK_ABI_NAMESPACE_END
100 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:28
A subgroup of processes from a communicator.
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
redistributes input dataset to specific mpi ranks
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Multiprocessing communication superclass.