VTK  9.3.20240329
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
47 #ifndef vtkLightCollection_h
48 #define vtkLightCollection_h
49 
50 #include "vtkCollection.h"
51 #include "vtkRenderingCoreModule.h" // For export macro
52 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
53 
54 VTK_ABI_NAMESPACE_BEGIN
55 class vtkLight;
56 
57 class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkLightCollection : public vtkCollection
58 {
59 public:
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
67  void AddItem(vtkLight* a);
68 
74 
80 
81 protected:
82  vtkLightCollection() = default;
83  ~vtkLightCollection() override = default;
84 
85 private:
86  // hide the standard AddItem from the user and the compiler.
87  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
88 
89  vtkLightCollection(const vtkLightCollection&) = delete;
90  void operator=(const vtkLightCollection&) = delete;
91 };
92 
93 VTK_ABI_NAMESPACE_END
94 #endif
create and manipulate ordered lists of objects
Definition: vtkCollection.h:46
void AddItem(vtkObject *)
Add an object to the bottom of the list.
a simple class to control print indentation
Definition: vtkIndent.h:108
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:159
abstract base class for most VTK objects
Definition: vtkObject.h:162
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:41
#define VTK_MARSHALAUTO