Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00024 #ifndef __vtkImplicitFunctionCollection_h
00025 #define __vtkImplicitFunctionCollection_h
00026 
00027 #include "vtkCollection.h"
00028 
00029 #include "vtkImplicitFunction.h" // Needed for inline methods
00030 
00031 class VTK_COMMON_EXPORT vtkImplicitFunctionCollection : public vtkCollection
00032 {
00033 public:
00034   vtkTypeRevisionMacro(vtkImplicitFunctionCollection,vtkCollection);
00035   static vtkImplicitFunctionCollection *New();
00036 
00038   void AddItem(vtkImplicitFunction *);
00039 
00041   vtkImplicitFunction *GetNextItem();
00042   
00043 protected:
00044   vtkImplicitFunctionCollection() {};
00045   ~vtkImplicitFunctionCollection() {};
00046   
00047 
00048 private:
00049   // hide the standard AddItem from the user and the compiler.
00050   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00051 
00052 private:
00053   vtkImplicitFunctionCollection(const vtkImplicitFunctionCollection&);  // Not implemented.
00054   void operator=(const vtkImplicitFunctionCollection&);  // Not implemented.
00055 };
00056 
00057 inline void vtkImplicitFunctionCollection::AddItem(vtkImplicitFunction *f) 
00058 {
00059   this->vtkCollection::AddItem((vtkObject *)f);
00060 }
00061 
00062 inline vtkImplicitFunction *vtkImplicitFunctionCollection::GetNextItem() 
00063 { 
00064   return static_cast<vtkImplicitFunction *>(this->GetNextItemAsObject());
00065 }
00066 
00067 #endif