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 "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkCollection.h"
31 #include "vtkRenderWindow.h" // Needed for static cast
32 
34 {
35  public:
38  virtual void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
43  {
44  this->vtkCollection::AddItem(a);
45  }
47 
49 
52  {
53  return static_cast<vtkRenderWindow *>(this->GetNextItemAsObject());
54  }
56 
57  //BTX
59 
62  {
63  return static_cast<vtkRenderWindow *>(this->GetNextItemAsObject(cookie));
64  }
65  //ETX
67 
68 protected:
71 
72 private:
73  // hide the standard AddItem from the user and the compiler.
74  void AddItem(vtkObject *o)
75  {
76  this->vtkCollection::AddItem(o);
77  }
78 
79 private:
80  vtkRenderWindowCollection(const vtkRenderWindowCollection&); // Not implemented.
81  void operator=(const vtkRenderWindowCollection&); // Not implemented.
82 };
83 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
abstract base class for most VTK objects
Definition: vtkObject.h:61
void PrintSelf(ostream &os, vtkIndent indent)
vtkRenderWindow * GetNextRenderWindow(vtkCollectionSimpleIterator &cookie)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkCollection * New()
void AddItem(vtkRenderWindow *a)
void AddItem(vtkObject *)
create a window for renderers to draw into
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
#define VTKRENDERINGCORE_EXPORT
vtkObject * GetNextItemAsObject()