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 =========================================================================*/ 00028 #ifndef __vtkImplicitFunctionCollection_h 00029 #define __vtkImplicitFunctionCollection_h 00030 00031 #include "vtkCollection.h" 00032 00033 #include "vtkImplicitFunction.h" // Needed for inline methods 00034 00035 class VTK_COMMON_EXPORT vtkImplicitFunctionCollection : public vtkCollection 00036 { 00037 public: 00038 vtkTypeRevisionMacro(vtkImplicitFunctionCollection,vtkCollection); 00039 static vtkImplicitFunctionCollection *New(); 00040 00042 void AddItem(vtkImplicitFunction *); 00043 00045 vtkImplicitFunction *GetNextItem(); 00046 00047 protected: 00048 vtkImplicitFunctionCollection() {}; 00049 ~vtkImplicitFunctionCollection() {}; 00050 00051 00052 private: 00053 // hide the standard AddItem from the user and the compiler. 00054 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00055 00056 private: 00057 vtkImplicitFunctionCollection(const vtkImplicitFunctionCollection&); // Not implemented. 00058 void operator=(const vtkImplicitFunctionCollection&); // Not implemented. 00059 }; 00060 00061 inline void vtkImplicitFunctionCollection::AddItem(vtkImplicitFunction *f) 00062 { 00063 this->vtkCollection::AddItem((vtkObject *)f); 00064 } 00065 00066 inline vtkImplicitFunction *vtkImplicitFunctionCollection::GetNextItem() 00067 { 00068 return static_cast<vtkImplicitFunction *>(this->GetNextItemAsObject()); 00069 } 00070 00071 #endif