VTK  9.4.20241107
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
34VTK_ABI_NAMESPACE_BEGIN
37
38class VTKFILTERSSOURCES_EXPORT vtkPartitionedDataSetSource : public vtkPartitionedDataSetAlgorithm
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
56 void EnableRank(int rank);
58 void DisableRank(int rank);
60 bool IsEnabledRank(int rank);
62
64
73 vtkSetClampMacro(NumberOfPartitions, int, 0, VTK_INT_MAX);
74 vtkGetMacro(NumberOfPartitions, int);
76
78
82 vtkGetObjectMacro(ParametricFunction, vtkParametricFunction);
84
85protected:
88
91
92private:
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
102VTK_ABI_NAMESPACE_END
103#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
abstract interface for parametric functions
Superclass for algorithms that produce vtkPartitionedDataSetAlgorithm.
a source that produces a vtkPartitionedDataSet.
~vtkPartitionedDataSetSource() override
static vtkPartitionedDataSetSource * New()
void DisableAllRanks()
Enable/Disable ranks.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetParametricFunction(vtkParametricFunction *)
Set/Get the parametric function to be used for this source.
void DisableRank(int rank)
Enable/Disable ranks.
bool IsEnabledRank(int rank)
Enable/Disable ranks.
void EnableRank(int rank)
Enable/Disable ranks.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
void EnableAllRanks()
Enable/Disable ranks.
composite dataset to encapsulates a dataset consisting of partitions.
#define VTK_INT_MAX
Definition vtkType.h:144