VTK  9.3.1
vtkImageReader2Collection.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
13 #ifndef vtkImageReader2Collection_h
14 #define vtkImageReader2Collection_h
15 
16 #include "vtkCollection.h"
17 #include "vtkIOImageModule.h" // For export macro
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class vtkImageReader2;
21 
22 class VTKIOIMAGE_EXPORT vtkImageReader2Collection : public vtkCollection
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
32  void AddItem(vtkImageReader2*);
33 
37  vtkImageReader2* GetNextItem();
38 
43  vtkImageReader2* GetNextImageReader2(vtkCollectionSimpleIterator& cookie);
44 
45 protected:
46  vtkImageReader2Collection() = default;
47  ~vtkImageReader2Collection() override = default;
48 
49 private:
50  // hide the standard AddItem from the user and the compiler.
51  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
52 
54  void operator=(const vtkImageReader2Collection&) = delete;
55 };
56 
57 VTK_ABI_NAMESPACE_END
58 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:51
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.
Superclass of binary file readers.
void AddItem(vtkObject *)
Add an object to the bottom of the list.
create and manipulate ordered lists of objects
Definition: vtkCollection.h:44
maintain a list of image readers