VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
24 #ifndef __vtkImplicitFunctionCollection_h
25 #define __vtkImplicitFunctionCollection_h
26 
27 #include "vtkCommonDataModelModule.h" // For export macro
28 #include "vtkCollection.h"
29 
30 #include "vtkImplicitFunction.h" // Needed for inline methods
31 
32 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitFunctionCollection : public vtkCollection
33 {
34 public:
37 
39  void AddItem(vtkImplicitFunction *);
40 
42  vtkImplicitFunction *GetNextItem();
43 
44  //BTX
46 
48  vtkImplicitFunction *GetNextImplicitFunction(
50  {
51  return static_cast<vtkImplicitFunction *>(
52  this->GetNextItemAsObject(cookie));
53  };
54  //ETX
56 
57 protected:
60 
61 
62 private:
63  // hide the standard AddItem from the user and the compiler.
64  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
65 
66 private:
68  void operator=(const vtkImplicitFunctionCollection&); // Not implemented.
69 };
70 
71 inline void vtkImplicitFunctionCollection::AddItem(vtkImplicitFunction *f)
72 {
73  this->vtkCollection::AddItem(f);
74 }
75 
76 inline vtkImplicitFunction *vtkImplicitFunctionCollection::GetNextItem()
77 {
78  return static_cast<vtkImplicitFunction *>(this->GetNextItemAsObject());
79 }
80 
81 #endif
82 // VTK-HeaderTest-Exclude: vtkImplicitFunctionCollection.h
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
vtkImplicitFunction * GetNextImplicitFunction(vtkCollectionSimpleIterator &cookie)
abstract base class for most VTK objects
Definition: vtkObject.h:61
maintain a list of implicit functions
static vtkCollection * New()
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
vtkObject * GetNextItemAsObject()