VTK  9.7.1
vtkRenderPassCollection.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
18 #ifndef vtkRenderPassCollection_h
19 #define vtkRenderPassCollection_h
20 
21 #include "vtkCollection.h"
22 #include "vtkRenderingOpenGL2Module.h" // For export macro
23 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkRenderPass;
27 
28 class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkRenderPassCollection : public vtkCollection
29 {
30 public:
31  static vtkRenderPassCollection* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
38  void AddItem(vtkRenderPass* pass);
39 
43  vtkRenderPass* GetNextRenderPass();
44 
48  vtkRenderPass* GetLastRenderPass();
49 
54  vtkRenderPass* GetNextRenderPass(vtkCollectionSimpleIterator& cookie);
55 
56 protected:
58  ~vtkRenderPassCollection() override;
59 
60 private:
61  // hide the standard AddItem from the user and the compiler.
62  void AddItem(vtkObject* o);
63 
65  void operator=(const vtkRenderPassCollection&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:35
abstract base class for most VTK objects
Definition: vtkObject.h:52
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCollection * New()
Construct an empty collection.
void AddItem(vtkObject *)
Add given item to the bottom (end) of the collection.
create and manipulate ordered lists of objects
Definition: vtkCollection.h:39
#define VTK_MARSHALAUTO
an ordered list of RenderPasses
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49