VTK
vtkRenderWindowCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRenderWindowCollection.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 =========================================================================*/
26 #ifndef __vtkRenderWindowCollection_h
27 #define __vtkRenderWindowCollection_h
28 
29 #include "vtkCollection.h"
30 #include "vtkRenderWindow.h" // Needed for static cast
31 
33 {
34  public:
37  virtual void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
42  {
43  this->vtkCollection::AddItem(a);
44  }
46 
48 
51  {
52  return static_cast<vtkRenderWindow *>(this->GetNextItemAsObject());
53  }
55 
56  //BTX
58 
61  {
62  return static_cast<vtkRenderWindow *>(this->GetNextItemAsObject(cookie));
63  }
64  //ETX
66 
67 protected:
70 
71 private:
72  // hide the standard AddItem from the user and the compiler.
73  void AddItem(vtkObject *o)
74  {
75  this->vtkCollection::AddItem(o);
76  }
77 
78 private:
79  vtkRenderWindowCollection(const vtkRenderWindowCollection&); // Not implemented.
80  void operator=(const vtkRenderWindowCollection&); // Not implemented.
81 };
82 #endif