VTK  9.3.0
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
27#ifndef vtkLightCollection_h
28#define vtkLightCollection_h
29
30#include "vtkCollection.h"
31#include "vtkRenderingCoreModule.h" // For export macro
32
33VTK_ABI_NAMESPACE_BEGIN
34class vtkLight;
35
36class VTKRENDERINGCORE_EXPORT vtkLightCollection : public vtkCollection
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
46 void AddItem(vtkLight* a);
47
53
59
60protected:
61 vtkLightCollection() = default;
62 ~vtkLightCollection() override = default;
63
64private:
65 // hide the standard AddItem from the user and the compiler.
66 void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
67
69 void operator=(const vtkLightCollection&) = delete;
70};
71
72VTK_ABI_NAMESPACE_END
73#endif
create and manipulate ordered lists of objects
void AddItem(vtkObject *)
Add an object to the bottom of the list.
a simple class to control print indentation
Definition vtkIndent.h:38
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:58
abstract base class for most VTK objects
Definition vtkObject.h:58
void * vtkCollectionSimpleIterator