VTK  9.3.1
vtkPartitionedDataSetSource.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
26 #ifndef vtkPartitionedDataSetSource_h
27 #define vtkPartitionedDataSetSource_h
28 
29 #include "vtkFiltersSourcesModule.h" // For export macro
31 
32 #include <map> // For std::map
33 
34 VTK_ABI_NAMESPACE_BEGIN
37 
38 class VTKFILTERSSOURCES_EXPORT vtkPartitionedDataSetSource : public vtkPartitionedDataSetAlgorithm
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
56  void EnableRank(int rank);
57  void EnableAllRanks();
58  void DisableRank(int rank);
59  void DisableAllRanks();
60  bool IsEnabledRank(int rank);
62 
64 
73  vtkSetClampMacro(NumberOfPartitions, int, 0, VTK_INT_MAX);
74  vtkGetMacro(NumberOfPartitions, int);
76 
78 
81  void SetParametricFunction(vtkParametricFunction*);
82  vtkGetObjectMacro(ParametricFunction, vtkParametricFunction);
84 
85 protected:
87  ~vtkPartitionedDataSetSource() override;
88 
91 
92 private:
94  void operator=(const vtkPartitionedDataSetSource&) = delete;
95 
96  bool RanksEnabledByDefault = true;
97  int NumberOfPartitions = 0;
98  std::map<int, int> Allocations;
99  vtkParametricFunction* ParametricFunction = nullptr;
100 };
101 
102 VTK_ABI_NAMESPACE_END
103 #endif
composite dataset to encapsulates a dataset consisting of partitions.
Superclass for algorithms that produce vtkPartitionedDataSetAlgorithm.
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:144
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a source that produces a vtkPartitionedDataSet.
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Methods for subclasses to override to handle different pipeline requests.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Methods for subclasses to override to handle different pipeline requests.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()