Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Rendering/vtkRendererCollection.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkRendererCollection.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00043 #ifndef __vtkRendererCollection_h
    00044 #define __vtkRendererCollection_h
    00045
    00046 #include "vtkCollection.h"
    00047 #include "vtkRenderer.h" // Needed for static cast
    00048
    00049 class VTK_RENDERING_EXPORT vtkRendererCollection : public vtkCollection
    00050 {
    00051  public:
    00052   static vtkRendererCollection *New();
    00053   vtkTypeRevisionMacro(vtkRendererCollection,vtkCollection);
    00054   virtual void PrintSelf(ostream& os, vtkIndent indent);
    00055
    00057
    00058   void AddItem(vtkRenderer *a) {
    00059     this->vtkCollection::AddItem((vtkObject *)a);};
    00061
    00063
    00065   vtkRenderer *GetNextItem() {
    00066     return static_cast<vtkRenderer *>(this->GetNextItemAsObject());};
    00068
    00070   void Render();
    00071
    00072 protected:
    00073   vtkRendererCollection() {};
    00074   ~vtkRendererCollection() {};
    00075
    00076 private:
    00077   // hide the standard AddItem from the user and the compiler.
    00078   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
    00079
    00080 private:
    00081   vtkRendererCollection(const vtkRendererCollection&);  // Not implemented.
    00082   void operator=(const vtkRendererCollection&);  // Not implemented.
    00083 };
    00084
    00085
    00086 #endif