VTK  9.5.20250901
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
35VTK_ABI_NAMESPACE_BEGIN
38
39class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkPartitionedDataSetSource
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
58 void EnableRank(int rank);
60 void DisableRank(int rank);
62 bool IsEnabledRank(int rank);
64
66
75 vtkSetClampMacro(NumberOfPartitions, int, 0, VTK_INT_MAX);
76 vtkGetMacro(NumberOfPartitions, int);
78
80
84 vtkGetObjectMacro(ParametricFunction, vtkParametricFunction);
86
87protected:
90
93
94private:
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
104VTK_ABI_NAMESPACE_END
105#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:161
#define VTK_MARSHALAUTO