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 =========================================================================*/
29 #ifndef vtkEnsembleSource_h
30 #define vtkEnsembleSource_h
31 
32 #include "vtkCommonExecutionModelModule.h" // For export macro
33 #include "vtkAlgorithm.h"
34 
35 struct vtkEnsembleSourceInternal;
36 class vtkTable;
40 
42 {
43 public:
44  static vtkEnsembleSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
51  void AddMember(vtkAlgorithm*);
52 
54  void RemoveAllMembers();
55 
57  unsigned int GetNumberOfMembers();
58 
60 
65  vtkSetMacro(CurrentMember, unsigned int);
66  vtkGetMacro(CurrentMember, unsigned int);
68 
72  void SetMetaData(vtkTable*);
73 
75  static vtkInformationDataObjectMetaDataKey* META_DATA();
76 
78  static vtkInformationIntegerRequestKey* UPDATE_MEMBER();
79 
80 protected:
83 
84  static vtkInformationIntegerKey* DATA_MEMBER();
85 
86  friend class vtkInformationEnsembleMemberRequestKey;
87 
88  virtual int ProcessRequest(vtkInformation *request,
89  vtkInformationVector **inputVector,
90  vtkInformationVector *outputVector);
91  virtual int FillOutputPortInformation(int, vtkInformation*);
92 
93  vtkAlgorithm* GetCurrentReader(vtkInformation*);
94 
95  vtkEnsembleSourceInternal* Internal;
96  unsigned int CurrentMember;
97 
99 
100 private:
101  vtkEnsembleSource(const vtkEnsembleSource&); // Not implemented.
102  void operator=(const vtkEnsembleSource&); // Not implemented.
103 };
104 
105 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
source that manages dataset ensembles
Store vtkAlgorithm input/output information.
unsigned int CurrentMember
vtkEnsembleSourceInternal * Internal
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for integer values in vtkInformation.
key used to define meta-data of type vtkDataObject vtkInformationDataObjectMetaDataKey is a vtkInform...
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
key that can used to request integer values from the pipeline vtkInformationIntegerRequestKey is a vt...
void PrintSelf(ostream &os, vtkIndent indent)