VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkLight;
27 
28 class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkLightCollection : public vtkCollection
29 {
30 public:
31  static vtkLightCollection* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
38  void AddItem(vtkLight* a);
39 
44  vtkLight* GetNextItem();
45 
50  vtkLight* GetNextLight(vtkCollectionSimpleIterator& cookie);
51 
52 protected:
53  vtkLightCollection() = default;
54  ~vtkLightCollection() override = default;
55 
56 private:
57  // hide the standard AddItem from the user and the compiler.
58  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
59 
60  vtkLightCollection(const vtkLightCollection&) = delete;
61  void operator=(const vtkLightCollection&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:35
abstract base class for most VTK objects
Definition: vtkObject.h:52
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 an empty collection.
a virtual light for 3D rendering
Definition: vtkLight.h:49
void AddItem(vtkObject *)
Add given item to the bottom (end) of the collection.
create and manipulate ordered lists of objects
Definition: vtkCollection.h:39
#define VTK_MARSHALAUTO