VTK  9.1.0
vtkLightCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLightCollection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
56 #ifndef vtkLightCollection_h
57 #define vtkLightCollection_h
58 
59 #include "vtkCollection.h"
60 #include "vtkRenderingCoreModule.h" // For export macro
61 
62 class vtkLight;
63 
64 class VTKRENDERINGCORE_EXPORT vtkLightCollection : public vtkCollection
65 {
66 public:
69  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
74  void AddItem(vtkLight* a);
75 
81 
87 
88 protected:
89  vtkLightCollection() = default;
90  ~vtkLightCollection() override = default;
91 
92 private:
93  // hide the standard AddItem from the user and the compiler.
94  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
95 
96 private:
97  vtkLightCollection(const vtkLightCollection&) = delete;
98  void operator=(const vtkLightCollection&) = delete;
99 };
100 
101 #endif
create and manipulate ordered lists of objects
Definition: vtkCollection.h:53
void AddItem(vtkObject *)
Add an object to the bottom of the list.
a simple class to control print indentation
Definition: vtkIndent.h:113
an ordered list of lights
void AddItem(vtkLight *a)
Add a light to the bottom of the list.
~vtkLightCollection() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLight * GetNextItem()
Get the next light in the list.
vtkLightCollection()=default
vtkLight * GetNextLight(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
static vtkLightCollection * New()
a virtual light for 3D rendering
Definition: vtkLight.h:166
abstract base class for most VTK objects
Definition: vtkObject.h:73
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:48