VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkLightCollection.h 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 "vtkRenderingCoreModule.h" // For export macro 00033 #include "vtkCollection.h" 00034 00035 class vtkLight; 00036 00037 class VTKRENDERINGCORE_EXPORT vtkLightCollection : public vtkCollection 00038 { 00039 public: 00040 static vtkLightCollection *New(); 00041 vtkTypeMacro(vtkLightCollection, vtkCollection); 00042 virtual void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 void AddItem(vtkLight *a); 00046 00049 vtkLight *GetNextItem(); 00050 00051 //BTX 00053 00055 vtkLight *GetNextLight(vtkCollectionSimpleIterator &cookie); 00056 //ETX 00058 00059 protected: 00060 vtkLightCollection() {} 00061 ~vtkLightCollection() {} 00062 00063 private: 00064 // hide the standard AddItem from the user and the compiler. 00065 void AddItem(vtkObject *o) 00066 { this->vtkCollection::AddItem(o); } 00067 00068 private: 00069 vtkLightCollection(const vtkLightCollection&); // Not implemented. 00070 void operator=(const vtkLightCollection&); // Not implemented. 00071 }; 00072 00073 #endif