VTK
vtkRendererCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRendererCollection.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 vtkRendererCollection_h
27 #define vtkRendererCollection_h
28 
29 #include "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkCollection.h"
31 #include "vtkRenderer.h" // Needed for static cast
32 
34 {
35 public:
36  static vtkRendererCollection *New();
38  virtual void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
43  { this->vtkCollection::AddItem(a); }
45 
46 
48 
51  { return static_cast<vtkRenderer *>(this->GetNextItemAsObject()); }
53 
55  void Render();
56 
59  vtkRenderer *GetFirstRenderer();
60 
61  //BTX
63 
66  { return static_cast<vtkRenderer *>(this->GetNextItemAsObject(cookie)); }
67  //ETX
69 
70 protected:
73 
74 private:
75  // hide the standard AddItem from the user and the compiler.
76  void AddItem(vtkObject *o)
77  { this->vtkCollection::AddItem(o); }
78 
79  vtkRendererCollection(const vtkRendererCollection&); // Not implemented.
80  void operator=(const vtkRendererCollection&); // Not implemented.
81 };
82 
83 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
vtkRenderer * GetNextRenderer(vtkCollectionSimpleIterator &cookie)
abstract base class for most VTK objects
Definition: vtkObject.h:61
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for renderers
Definition: vtkRenderer.h:62
a list of renderers
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkCollection * New()
void AddItem(vtkRenderer *a)
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
#define VTKRENDERINGCORE_EXPORT
vtkObject * GetNextItemAsObject()