VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
32 
33 #include <map> // For std::map
34 
35 VTK_ABI_NAMESPACE_BEGIN
38 
39 class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkPartitionedDataSetSource
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
58  void EnableRank(int rank);
59  void EnableAllRanks();
60  void DisableRank(int rank);
61  void DisableAllRanks();
62  bool IsEnabledRank(int rank);
64 
66 
75  vtkSetClampMacro(NumberOfPartitions, int, 0, VTK_INT_MAX);
76  vtkGetMacro(NumberOfPartitions, int);
78 
80 
83  void SetParametricFunction(vtkParametricFunction*);
84  vtkGetObjectMacro(ParametricFunction, vtkParametricFunction);
86 
87 protected:
89  ~vtkPartitionedDataSetSource() override;
90 
93 
94 private:
96  void operator=(const vtkPartitionedDataSetSource&) = delete;
97 
98  bool RanksEnabledByDefault = true;
99  int NumberOfPartitions = 0;
100  std::map<int, int> Allocations;
101  vtkParametricFunction* ParametricFunction = nullptr;
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #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:192
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()
#define VTK_MARSHALAUTO