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