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

vtkRenderWindowCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkRenderWindowCollection.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 =========================================================================*/
00039 #ifndef __vtkRenderWindowCollection_h
00040 #define __vtkRenderWindowCollection_h
00041 
00042 #include "vtkCollection.h"
00043 #include "vtkRenderWindow.h" // Needed for static cast
00044 
00045 class VTK_RENDERING_EXPORT vtkRenderWindowCollection : public vtkCollection
00046 {
00047  public:
00048   static vtkRenderWindowCollection *New();
00049   vtkTypeRevisionMacro(vtkRenderWindowCollection,vtkCollection);
00050   virtual void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053 
00054   void AddItem(vtkRenderWindow *a) {
00055     this->vtkCollection::AddItem((vtkObject *)a);};
00057   
00059 
00061   vtkRenderWindow *GetNextItem() {
00062     return static_cast<vtkRenderWindow *>(this->GetNextItemAsObject());};
00064   
00065   //BTX
00067 
00069   vtkRenderWindow *GetNextRenderWindow(vtkCollectionSimpleIterator &cookie) {
00070     return static_cast<vtkRenderWindow *>(this->GetNextItemAsObject(cookie));};
00071   //ETX
00073 
00074 protected:
00075   vtkRenderWindowCollection() {};
00076   ~vtkRenderWindowCollection() {};
00077 
00078 private:
00079   // hide the standard AddItem from the user and the compiler.
00080   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00081 
00082 private:
00083   vtkRenderWindowCollection(const vtkRenderWindowCollection&);  // Not implemented.
00084   void operator=(const vtkRenderWindowCollection&);  // Not implemented.
00085 };
00086 
00087 
00088 #endif