VTK
vtkInformationExecutivePortVectorKey.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInformationExecutivePortVectorKey.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 =========================================================================*/
23 #ifndef __vtkInformationExecutivePortVectorKey_h
24 #define __vtkInformationExecutivePortVectorKey_h
25 
26 #include "vtkCommonExecutionModelModule.h" // For export macro
27 #include "vtkInformationKey.h"
28 
29 #include "vtkFilteringInformationKeyManager.h" // Manage instances of this type.
30 
31 class vtkExecutive;
32 
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
39  vtkInformationExecutivePortVectorKey(const char* name, const char* location);
41 
43 
45  void Append(vtkInformation* info, vtkExecutive* executive, int port);
46  void Remove(vtkInformation* info, vtkExecutive* executive, int port);
47  void Set(vtkInformation* info, vtkExecutive** executives, int* ports, int length);
48  vtkExecutive** GetExecutives(vtkInformation* info);
49  int* GetPorts(vtkInformation* info);
50  void Get(vtkInformation* info, vtkExecutive** executives, int* ports);
51  int Length(vtkInformation* info);
53 
57  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
58 
60  virtual void Remove(vtkInformation* info);
61 
63  virtual void Report(vtkInformation* info, vtkGarbageCollector* collector);
64 
66  virtual void Print(ostream& os, vtkInformation* info);
67 
68 protected:
69 
71 
74  vtkExecutive** GetExecutivesWatchAddress(vtkInformation* info);
75  int* GetPortsWatchAddress(vtkInformation* info);
77 
78 private:
80  void operator=(const vtkInformationExecutivePortVectorKey&); // Not implemented.
81 };
82 
83 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
virtual void Report(vtkInformation *info, vtkGarbageCollector *collector)
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Store vtkAlgorithm input/output information.
GLuint GLsizei GLsizei * length
Definition: vtkgl.h:11992
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:48
void PrintSelf(ostream &os, vtkIndent indent)
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
Detect and break reference loops.
void Print(vtkInformation *info)
Superclass for vtkInformation keys.
GLuint const GLchar * name
Definition: vtkgl.h:11983
virtual void Remove(vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for vtkExecutive/Port value pair vectors.
GLint location
Definition: vtkgl.h:12002