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 =========================================================================*/
24 #ifndef __vtkImplicitFunctionCollection_h
25 #define __vtkImplicitFunctionCollection_h
26 
27 #include "vtkCollection.h"
28 
29 #include "vtkImplicitFunction.h" // Needed for inline methods
30 
32 {
33 public:
36 
39 
41  vtkImplicitFunction *GetNextItem();
42 
43  //BTX
45 
49  {
50  return static_cast<vtkImplicitFunction *>(
51  this->GetNextItemAsObject(cookie));
52  };
53  //ETX
55 
56 protected:
59 
60 
61 private:
62  // hide the standard AddItem from the user and the compiler.
63  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
64 
65 private:
67  void operator=(const vtkImplicitFunctionCollection&); // Not implemented.
68 };
69 
71 {
72  this->vtkCollection::AddItem(f);
73 }
74 
76 {
77  return static_cast<vtkImplicitFunction *>(this->GetNextItemAsObject());
78 }
79 
80 #endif
abstract interface for implicit functions
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:46
vtkImplicitFunction * GetNextImplicitFunction(vtkCollectionSimpleIterator &cookie)
abstract base class for most VTK objects
Definition: vtkObject.h:60
maintain a list of implicit functions
static vtkCollection * New()
#define VTK_COMMON_EXPORT
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
vtkObject * GetNextItemAsObject()