VTK  9.3.1
vtkLightCollection.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkLightCollection_h
19 #define vtkLightCollection_h
20 
21 #include "vtkCollection.h"
22 #include "vtkRenderingCoreModule.h" // For export macro
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkLight;
26 
27 class VTKRENDERINGCORE_EXPORT vtkLightCollection : public vtkCollection
28 {
29 public:
30  static vtkLightCollection* New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
37  void AddItem(vtkLight* a);
38 
43  vtkLight* GetNextItem();
44 
49  vtkLight* GetNextLight(vtkCollectionSimpleIterator& cookie);
50 
51 protected:
52  vtkLightCollection() = default;
53  ~vtkLightCollection() override = default;
54 
55 private:
56  // hide the standard AddItem from the user and the compiler.
57  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
58 
59  vtkLightCollection(const vtkLightCollection&) = delete;
60  void operator=(const vtkLightCollection&) = delete;
61 };
62 
63 VTK_ABI_NAMESPACE_END
64 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:51
an ordered list of lights
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCollection * New()
Construct with empty list.
a virtual light for 3D rendering
Definition: vtkLight.h:48
void AddItem(vtkObject *)
Add an object to the bottom of the list.
create and manipulate ordered lists of objects
Definition: vtkCollection.h:44