Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Common/vtkImplicitFunctionCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImplicitFunctionCollection.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00041 #ifndef __vtkImplicitFunctionCollection_h
00042 #define __vtkImplicitFunctionCollection_h
00043 
00044 #include "vtkCollection.h"
00045 
00046 #include "vtkImplicitFunction.h" // Needed for inline methods
00047 
00048 class VTK_COMMON_EXPORT vtkImplicitFunctionCollection : public vtkCollection
00049 {
00050 public:
00051   vtkTypeRevisionMacro(vtkImplicitFunctionCollection,vtkCollection);
00052   static vtkImplicitFunctionCollection *New();
00053 
00055   void AddItem(vtkImplicitFunction *);
00056 
00058   vtkImplicitFunction *GetNextItem();
00059   
00060 protected:
00061   vtkImplicitFunctionCollection() {};
00062   ~vtkImplicitFunctionCollection() {};
00063   
00064 
00065 private:
00066   // hide the standard AddItem from the user and the compiler.
00067   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00068 
00069 private:
00070   vtkImplicitFunctionCollection(const vtkImplicitFunctionCollection&);  // Not implemented.
00071   void operator=(const vtkImplicitFunctionCollection&);  // Not implemented.
00072 };
00073 
00074 inline void vtkImplicitFunctionCollection::AddItem(vtkImplicitFunction *f) 
00075 {
00076   this->vtkCollection::AddItem((vtkObject *)f);
00077 }
00078 
00079 inline vtkImplicitFunction *vtkImplicitFunctionCollection::GetNextItem() 
00080 { 
00081   return static_cast<vtkImplicitFunction *>(this->GetNextItemAsObject());
00082 }
00083 
00084 #endif