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 
46 class VTKFILTERSSOURCES_EXPORT vtkPartitionedDataSetSource : public vtkPartitionedDataSetAlgorithm
47 {
48 public:
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 
93 protected:
96 
99 
100 private:
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
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkPartitionedDataSet
composite dataset to encapsulates a dataset consisting of partitions.
Definition: vtkPartitionedDataSet.h:47
vtkPartitionedDataSetSource::SetParametricFunction
void SetParametricFunction(vtkParametricFunction *)
Set/Get the parametric function to be used for this source.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkPartitionedDataSetSource
a source that produces a vtkPartitionedDataSet.
Definition: vtkPartitionedDataSetSource.h:47
vtkPartitionedDataSetSource::New
static vtkPartitionedDataSetSource * New()
vtkPartitionedDataSetSource::EnableAllRanks
void EnableAllRanks()
Enable/Disable ranks.
vtkPartitionedDataSetSource::vtkPartitionedDataSetSource
vtkPartitionedDataSetSource()
vtkParametricFunction
abstract interface for parametric functions
Definition: vtkParametricFunction.h:82
vtkPartitionedDataSetSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
vtkPartitionedDataSetAlgorithm
Superclass for algorithms that produce vtkPartitionedDataSetAlgorithm.
Definition: vtkPartitionedDataSetAlgorithm.h:32
vtkPartitionedDataSetSource::DisableAllRanks
void DisableAllRanks()
Enable/Disable ranks.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkPartitionedDataSetSource::EnableRank
void EnableRank(int rank)
Enable/Disable ranks.
vtkPartitionedDataSetSource::~vtkPartitionedDataSetSource
~vtkPartitionedDataSetSource() override
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkPartitionedDataSetAlgorithm.h
vtkPartitionedDataSetSource::DisableRank
void DisableRank(int rank)
Enable/Disable ranks.
vtkPartitionedDataSetSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPartitionedDataSetSource::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
vtkPartitionedDataSetSource::IsEnabledRank
bool IsEnabledRank(int rank)
Enable/Disable ranks.