VTK  9.0.1
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 =========================================================================*/
27 #ifndef vtkRenderWindowCollection_h
28 #define vtkRenderWindowCollection_h
29 
30 #include "vtkCollection.h"
31 #include "vtkRenderWindow.h" // Needed for static cast
32 #include "vtkRenderingCoreModule.h" // For export macro
33 
34 class VTKRENDERINGCORE_EXPORT vtkRenderWindowCollection : public vtkCollection
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45 
51  {
52  return static_cast<vtkRenderWindow*>(this->GetNextItemAsObject());
53  }
54 
60  {
61  return static_cast<vtkRenderWindow*>(this->GetNextItemAsObject(cookie));
62  }
63 
64 protected:
67 
68 private:
69  // hide the standard AddItem from the user and the compiler.
70  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
71 
72 private:
74  void operator=(const vtkRenderWindowCollection&) = delete;
75 };
76 #endif
vtkCollection::New
static vtkCollection * New()
Construct with empty list.
vtkRenderWindowCollection
an ordered list of RenderWindows
Definition: vtkRenderWindowCollection.h:34
vtkCollectionSimpleIterator
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:48
vtkCollection.h
vtkRenderWindow.h
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkRenderWindowCollection::vtkRenderWindowCollection
vtkRenderWindowCollection()
Definition: vtkRenderWindowCollection.h:65
vtkCollection::GetNextItemAsObject
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
Definition: vtkCollection.h:179
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkRenderWindowCollection::~vtkRenderWindowCollection
~vtkRenderWindowCollection() override
Definition: vtkRenderWindowCollection.h:66
vtkRenderWindowCollection::AddItem
void AddItem(vtkRenderWindow *a)
Add a RenderWindow to the bottom of the list.
Definition: vtkRenderWindowCollection.h:44
vtkCollection::AddItem
void AddItem(vtkObject *)
Add an object to the bottom of the list.
vtkCollection::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:93
vtkRenderWindowCollection::GetNextRenderWindow
vtkRenderWindow * GetNextRenderWindow(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
Definition: vtkRenderWindowCollection.h:59
vtkRenderWindowCollection::GetNextItem
vtkRenderWindow * GetNextItem()
Get the next RenderWindow in the list.
Definition: vtkRenderWindowCollection.h:50