VTK
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 "vtkCommonExecutionModelModule.h" // For export macro
31 #include "vtkAlgorithm.h"
32 
33 struct vtkEnsembleSourceInternal;
34 class vtkTable;
38 
39 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkEnsembleSource : public vtkAlgorithm
40 {
41 public:
42  static vtkEnsembleSource *New();
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
51  void AddMember(vtkAlgorithm*);
52 
56  void RemoveAllMembers();
57 
61  unsigned int GetNumberOfMembers();
62 
64 
70  vtkSetMacro(CurrentMember, unsigned int);
71  vtkGetMacro(CurrentMember, unsigned int);
73 
79  void SetMetaData(vtkTable*);
80 
84  static vtkInformationDataObjectMetaDataKey* META_DATA();
85 
89  static vtkInformationIntegerRequestKey* UPDATE_MEMBER();
90 
91 protected:
93  ~vtkEnsembleSource() VTK_OVERRIDE;
94 
95  static vtkInformationIntegerKey* DATA_MEMBER();
96 
97  friend class vtkInformationEnsembleMemberRequestKey;
98 
99  int ProcessRequest(vtkInformation *request,
100  vtkInformationVector **inputVector,
101  vtkInformationVector *outputVector) VTK_OVERRIDE;
102  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
103 
104  vtkAlgorithm* GetCurrentReader(vtkInformation*);
105 
106  vtkEnsembleSourceInternal* Internal;
107  unsigned int CurrentMember;
108 
109  vtkTable* MetaData;
110 
111 private:
112  vtkEnsembleSource(const vtkEnsembleSource&) VTK_DELETE_FUNCTION;
113  void operator=(const vtkEnsembleSource&) VTK_DELETE_FUNCTION;
114 };
115 
116 #endif
source that manages dataset ensembles
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
a simple class to control print indentation
Definition: vtkIndent.h:33
Key for integer values in vtkInformation.
key used to define meta-data of type vtkDataObject vtkInformationDataObjectMetaDataKey is a vtkInform...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
key that can used to request integer values from the pipeline vtkInformationIntegerRequestKey is a vt...