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 =========================================================================*/
30 #ifndef vtkEnsembleSource_h
31 #define vtkEnsembleSource_h
32 
33 #include "vtkCommonExecutionModelModule.h" // For export macro
34 #include "vtkAlgorithm.h"
35 
36 struct vtkEnsembleSourceInternal;
37 class vtkTable;
41 
42 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkEnsembleSource : public vtkAlgorithm
43 {
44 public:
45  static vtkEnsembleSource *New();
47  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
48 
54  void AddMember(vtkAlgorithm*);
55 
59  void RemoveAllMembers();
60 
64  unsigned int GetNumberOfMembers();
65 
67 
73  vtkSetMacro(CurrentMember, unsigned int);
74  vtkGetMacro(CurrentMember, unsigned int);
76 
82  void SetMetaData(vtkTable*);
83 
87  static vtkInformationDataObjectMetaDataKey* META_DATA();
88 
92  static vtkInformationIntegerRequestKey* UPDATE_MEMBER();
93 
94 protected:
96  ~vtkEnsembleSource() VTK_OVERRIDE;
97 
98  static vtkInformationIntegerKey* DATA_MEMBER();
99 
100  friend class vtkInformationEnsembleMemberRequestKey;
101 
102  int ProcessRequest(vtkInformation *request,
103  vtkInformationVector **inputVector,
104  vtkInformationVector *outputVector) VTK_OVERRIDE;
105  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
106 
107  vtkAlgorithm* GetCurrentReader(vtkInformation*);
108 
109  vtkEnsembleSourceInternal* Internal;
110  unsigned int CurrentMember;
111 
112  vtkTable* MetaData;
113 
114 private:
115  vtkEnsembleSource(const vtkEnsembleSource&) VTK_DELETE_FUNCTION;
116  void operator=(const vtkEnsembleSource&) VTK_DELETE_FUNCTION;
117 };
118 
119 #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:59
a simple class to control print indentation
Definition: vtkIndent.h:39
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:68
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
key that can used to request integer values from the pipeline vtkInformationIntegerRequestKey is a vt...