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 =========================================================================*/ 00029 #ifndef __vtkLightCollection_h 00030 #define __vtkLightCollection_h 00031 00032 #include "vtkCollection.h" 00033 00034 class vtkLight; 00035 00036 class VTK_RENDERING_EXPORT vtkLightCollection : public vtkCollection 00037 { 00038 public: 00039 static vtkLightCollection *New(); 00040 vtkTypeRevisionMacro(vtkLightCollection,vtkCollection); 00041 virtual void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 void AddItem(vtkLight *a); 00045 00048 vtkLight *GetNextItem(); 00049 00050 //BTX 00052 00054 vtkLight *GetNextLight(vtkCollectionSimpleIterator &cookie); 00055 //ETX 00057 00058 protected: 00059 vtkLightCollection() {}; 00060 ~vtkLightCollection() {}; 00061 00062 00063 private: 00064 // hide the standard AddItem from the user and the compiler. 00065 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00066 00067 private: 00068 vtkLightCollection(const vtkLightCollection&); // Not implemented. 00069 void operator=(const vtkLightCollection&); // Not implemented. 00070 }; 00071 00072 00073 #endif 00074