VTK  9.1.0
vtkEnsembleSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkEnsembleSource.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=========================================================================*/
27#ifndef vtkEnsembleSource_h
28#define vtkEnsembleSource_h
29
30#include "vtkAlgorithm.h"
31#include "vtkCommonExecutionModelModule.h" // For export macro
32
33struct vtkEnsembleSourceInternal;
34class vtkTable;
38
39class VTKCOMMONEXECUTIONMODEL_EXPORT vtkEnsembleSource : public vtkAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
52
57
61 unsigned int GetNumberOfMembers();
62
64
70 vtkSetMacro(CurrentMember, unsigned int);
71 vtkGetMacro(CurrentMember, unsigned int);
73
80
85
90
91protected:
94
96
97 friend class vtkInformationEnsembleMemberRequestKey;
98
100 vtkInformationVector* outputVector) override;
102
104
105 vtkEnsembleSourceInternal* Internal;
106 unsigned int CurrentMember;
107
109
110private:
111 vtkEnsembleSource(const vtkEnsembleSource&) = delete;
112 void operator=(const vtkEnsembleSource&) = delete;
113};
114
115#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:114
source that manages dataset ensembles
static vtkEnsembleSource * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
unsigned int GetNumberOfMembers()
Returns the number of ensemble members.
static vtkInformationIntegerKey * DATA_MEMBER()
unsigned int CurrentMember
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void AddMember(vtkAlgorithm *)
Add an algorithm (source) that will produce the next ensemble member.
static vtkInformationIntegerRequestKey * UPDATE_MEMBER()
Key used to request a particular ensemble member.
vtkAlgorithm * GetCurrentReader(vtkInformation *)
void SetMetaData(vtkTable *)
Set the meta-data that will be propagated downstream.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkEnsembleSourceInternal * Internal
~vtkEnsembleSource() override
void RemoveAllMembers()
Removes all ensemble members.
static vtkInformationDataObjectMetaDataKey * META_DATA()
Meta-data for the ensemble.
a simple class to control print indentation
Definition: vtkIndent.h:113
key used to define meta-data of type vtkDataObject vtkInformationDataObjectMetaDataKey is a vtkInform...
Key for integer values in vtkInformation.
key that can used to request integer values from the pipeline vtkInformationIntegerRequestKey is a vt...
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
int vtkTypeBool
Definition: vtkABI.h:69