00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkLightCollection.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 =========================================================================*/ 00045 #ifndef __vtkLightC_h 00046 #define __vtkLightC_h 00047 00048 #include "vtkCollection.h" 00049 00050 class vtkLight; 00051 00052 class VTK_RENDERING_EXPORT vtkLightCollection : public vtkCollection 00053 { 00054 public: 00055 static vtkLightCollection *New(); 00056 vtkTypeRevisionMacro(vtkLightCollection,vtkCollection); 00057 virtual void PrintSelf(ostream& os, vtkIndent indent); 00058 00060 void AddItem(vtkLight *a); 00061 00064 vtkLight *GetNextItem(); 00065 00066 protected: 00067 vtkLightCollection() {}; 00068 ~vtkLightCollection() {}; 00069 00070 00071 private: 00072 // hide the standard AddItem from the user and the compiler. 00073 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00074 00075 private: 00076 vtkLightCollection(const vtkLightCollection&); // Not implemented. 00077 void operator=(const vtkLightCollection&); // Not implemented. 00078 }; 00079 00080 00081 #endif 00082