VTK  9.5.2
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
17
18#ifndef vtkLightCollection_h
19#define vtkLightCollection_h
20
21#include "vtkCollection.h"
22#include "vtkRenderingCoreModule.h" // For export macro
23#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25VTK_ABI_NAMESPACE_BEGIN
26class vtkLight;
27
28class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkLightCollection : public vtkCollection
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
38 void AddItem(vtkLight* a);
39
45
51
52protected:
53 vtkLightCollection() = default;
54 ~vtkLightCollection() override = default;
55
56private:
57 // hide the standard AddItem from the user and the compiler.
58 void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
59
61 void operator=(const vtkLightCollection&) = delete;
62};
63
64VTK_ABI_NAMESPACE_END
65#endif
void AddItem(vtkObject *)
Add an object to the bottom of the list.
a simple class to control print indentation
Definition vtkIndent.h:29
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 * GetNextLight(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
vtkLightCollection()=default
vtkLight * GetNextItem()
Get the next light in the list.
static vtkLightCollection * New()
a virtual light for 3D rendering
Definition vtkLight.h:50
void * vtkCollectionSimpleIterator
#define VTK_MARSHALAUTO