Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkRendererCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkRendererCollection.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00026 #ifndef __vtkRendererCollection_h
00027 #define __vtkRendererCollection_h
00028 
00029 #include "vtkCollection.h"
00030 #include "vtkRenderer.h" // Needed for static cast
00031 
00032 class VTK_RENDERING_EXPORT vtkRendererCollection : public vtkCollection
00033 {
00034  public:
00035   static vtkRendererCollection *New();
00036   vtkTypeRevisionMacro(vtkRendererCollection,vtkCollection);
00037   virtual void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040 
00041   void AddItem(vtkRenderer *a) {
00042     this->vtkCollection::AddItem((vtkObject *)a);};
00044   
00046 
00048   vtkRenderer *GetNextItem() {
00049     return static_cast<vtkRenderer *>(this->GetNextItemAsObject());};
00051 
00053   void Render();
00054 
00057   vtkRenderer *GetFirstRenderer();
00058 
00059   //BTX
00061 
00063   vtkRenderer *GetNextRenderer(vtkCollectionSimpleIterator &cookie) {
00064     return static_cast<vtkRenderer *>(this->GetNextItemAsObject(cookie));};
00065   //ETX
00067 
00068 protected:  
00069   vtkRendererCollection() {};
00070   ~vtkRendererCollection() {};
00071 
00072 private:
00073   // hide the standard AddItem from the user and the compiler.
00074   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00075 
00076 private:
00077   vtkRendererCollection(const vtkRendererCollection&);  // Not implemented.
00078   void operator=(const vtkRendererCollection&);  // Not implemented.
00079 };
00080 
00081 
00082 #endif

Generated on Mon Jan 21 23:07:36 2008 for VTK by  doxygen 1.4.3-20050530