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 "vtkCollection.h"
30 #include "vtkRenderer.h" // Needed for static cast
31 
33 {
34  public:
35  static vtkRendererCollection *New();
37  virtual void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
42  {
43  this->vtkCollection::AddItem(a);
44  }
46 
47 
49 
52  return static_cast<vtkRenderer *>(this->GetNextItemAsObject());};
54 
56  void Render();
57 
60  vtkRenderer *GetFirstRenderer();
61 
62  //BTX
64 
67  return static_cast<vtkRenderer *>(this->GetNextItemAsObject(cookie));};
68  //ETX
70 
71 protected:
74 
75 private:
76  // hide the standard AddItem from the user and the compiler.
77  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
78 
79 private:
80  vtkRendererCollection(const vtkRendererCollection&); // Not implemented.
81  void operator=(const vtkRendererCollection&); // Not implemented.
82 };
83 
84 
85 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:46
vtkRenderer * GetNextRenderer(vtkCollectionSimpleIterator &cookie)
abstract base class for most VTK objects
Definition: vtkObject.h:60
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for renderers
Definition: vtkRenderer.h:69
a list of renderers
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkCollection * New()
#define VTK_RENDERING_EXPORT
void AddItem(vtkRenderer *a)
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
vtkObject * GetNextItemAsObject()