VTK  9.7.20260911
vtkRenderWindowCollection.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
14
15#ifndef vtkRenderWindowCollection_h
16#define vtkRenderWindowCollection_h
17
18#include "vtkCollection.h"
19#include "vtkRenderWindow.h" // Needed for static cast
20#include "vtkRenderingCoreModule.h" // For export macro
21#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkRenderWindowCollection : public vtkCollection
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
35
41 {
42 return static_cast<vtkRenderWindow*>(this->GetNextItemAsObject());
43 }
44
50 {
51 return static_cast<vtkRenderWindow*>(this->GetNextItemAsObject(cookie));
52 }
53
54protected:
56 ~vtkRenderWindowCollection() override = default;
57
58private:
59 // hide the standard AddItem from the user and the compiler.
60 void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
61
63 void operator=(const vtkRenderWindowCollection&) = delete;
64};
65VTK_ABI_NAMESPACE_END
66#endif
vtkCollection()=default
void AddItem(vtkObject *)
Add given item to the bottom (end) of the collection.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
a simple class to control print indentation
Definition vtkIndent.h:108
an ordered list of RenderWindows
vtkRenderWindow * GetNextItem()
Get the next RenderWindow in the list.
static vtkRenderWindowCollection * New()
vtkRenderWindowCollection()=default
vtkRenderWindow * GetNextRenderWindow(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
void AddItem(vtkRenderWindow *a)
Add a RenderWindow to the bottom of the list.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkRenderWindowCollection() override=default
create a window for renderers to draw into
void * vtkCollectionSimpleIterator
#define VTK_MARSHALAUTO