VTK  9.1.0
vtkPartitionedDataSetSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPartitionedDataSetSource.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
35#ifndef vtkPartitionedDataSetSource_h
36#define vtkPartitionedDataSetSource_h
37
38#include "vtkFiltersSourcesModule.h" // For export macro
40
41#include <map> // For std::map
42
45
46class VTKFILTERSSOURCES_EXPORT vtkPartitionedDataSetSource : public vtkPartitionedDataSetAlgorithm
47{
48public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
64 void EnableRank(int rank);
66 void DisableRank(int rank);
68 bool IsEnabledRank(int rank);
70
72
81 vtkSetClampMacro(NumberOfPartitions, int, 0, VTK_INT_MAX);
82 vtkGetMacro(NumberOfPartitions, int);
84
86
90 vtkGetObjectMacro(ParametricFunction, vtkParametricFunction);
92
93protected:
96
99
100private:
102 void operator=(const vtkPartitionedDataSetSource&) = delete;
103
104 bool RanksEnabledByDefault = true;
105 int NumberOfPartitions = 0;
106 std::map<int, int> Allocations;
107 vtkParametricFunction* ParametricFunction = nullptr;
108};
109
110#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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:155