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 =========================================================================*/ 00037 #ifndef __vtkImplicitFunctionCollection_h 00038 #define __vtkImplicitFunctionCollection_h 00039 00040 #include "vtkCollection.h" 00041 00042 #include "vtkImplicitFunction.h" // Needed for inline methods 00043 00044 class VTK_COMMON_EXPORT vtkImplicitFunctionCollection : public vtkCollection 00045 { 00046 public: 00047 vtkTypeRevisionMacro(vtkImplicitFunctionCollection,vtkCollection); 00048 static vtkImplicitFunctionCollection *New(); 00049 00051 void AddItem(vtkImplicitFunction *); 00052 00054 vtkImplicitFunction *GetNextItem(); 00055 00056 //BTX 00058 00060 vtkImplicitFunction *GetNextImplicitFunction( 00061 vtkCollectionSimpleIterator &cookie) 00062 { 00063 return static_cast<vtkImplicitFunction *>( 00064 this->GetNextItemAsObject(cookie)); 00065 }; 00066 //ETX 00068 00069 protected: 00070 vtkImplicitFunctionCollection() {}; 00071 ~vtkImplicitFunctionCollection() {}; 00072 00073 00074 private: 00075 // hide the standard AddItem from the user and the compiler. 00076 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00077 00078 private: 00079 vtkImplicitFunctionCollection(const vtkImplicitFunctionCollection&); // Not implemented. 00080 void operator=(const vtkImplicitFunctionCollection&); // Not implemented. 00081 }; 00082 00083 inline void vtkImplicitFunctionCollection::AddItem(vtkImplicitFunction *f) 00084 { 00085 this->vtkCollection::AddItem((vtkObject *)f); 00086 } 00087 00088 inline vtkImplicitFunction *vtkImplicitFunctionCollection::GetNextItem() 00089 { 00090 return static_cast<vtkImplicitFunction *>(this->GetNextItemAsObject()); 00091 } 00092 00093 #endif