VTK
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 "vtkCommonDataModelModule.h" // For export macro
29 #include "vtkCollection.h"
30 
31 #include "vtkImplicitFunction.h" // Needed for inline methods
32 
33 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitFunctionCollection : public vtkCollection
34 {
35 public:
38 
43 
47  vtkImplicitFunction *GetNextItem();
48 
50 
56  {
57  return static_cast<vtkImplicitFunction *>(
58  this->GetNextItemAsObject(cookie));
59  };
61 
62 protected:
65 
66 
67 private:
68  // hide the standard AddItem from the user and the compiler.
69  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
70 
71 private:
73  void operator=(const vtkImplicitFunctionCollection&) = delete;
74 };
75 
77 {
78  this->vtkCollection::AddItem(f);
79 }
80 
82 {
83  return static_cast<vtkImplicitFunction *>(this->GetNextItemAsObject());
84 }
85 
86 #endif
87 // VTK-HeaderTest-Exclude: vtkImplicitFunctionCollection.h
abstract interface for implicit functions
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
vtkImplicitFunction * GetNextImplicitFunction(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
abstract base class for most VTK objects
Definition: vtkObject.h:59
maintain a list of implicit functions
void AddItem(vtkImplicitFunction *)
Add an implicit function to the list.
static vtkCollection * New()
Construct with empty list.
void AddItem(vtkObject *)
Add an object to the bottom of the list.
create and manipulate ordered lists of objects
Definition: vtkCollection.h:51
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
vtkImplicitFunction * GetNextItem()
Get the next implicit function in the list.