VTK  9.1.0
vtkImplicitFunctionCollection.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImplicitFunctionCollection.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
25#ifndef vtkImplicitFunctionCollection_h
26#define vtkImplicitFunctionCollection_h
27
28#include "vtkCollection.h"
29#include "vtkCommonDataModelModule.h" // For export macro
30
31#include "vtkImplicitFunction.h" // Needed for inline methods
32
33class VTKCOMMONDATAMODEL_EXPORT vtkImplicitFunctionCollection : public vtkCollection
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44
48 vtkImplicitFunction* GetNextItem();
49
51
56 {
57 return static_cast<vtkImplicitFunction*>(this->GetNextItemAsObject(cookie));
58 }
60
61protected:
63 ~vtkImplicitFunctionCollection() override = default;
64
65private:
66 // hide the standard AddItem from the user and the compiler.
67 void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
68
69private:
71 void operator=(const vtkImplicitFunctionCollection&) = delete;
72};
73
75{
77}
78
80{
81 return static_cast<vtkImplicitFunction*>(this->GetNextItemAsObject());
82}
83
84#endif
create and manipulate ordered lists of objects
Definition: vtkCollection.h:53
void AddItem(vtkObject *)
Add an object to the bottom of the list.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
maintain a list of implicit functions
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImplicitFunctionCollection * New()
~vtkImplicitFunctionCollection() override=default
vtkImplicitFunction * GetNextItem()
Get the next implicit function in the list.
void AddItem(vtkImplicitFunction *)
Add an implicit function to the list.
vtkImplicitFunction * GetNextImplicitFunction(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
abstract interface for implicit functions
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:48