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 //BTX 00045 00047 vtkImplicitFunction *GetNextImplicitFunction( 00048 vtkCollectionSimpleIterator &cookie) 00049 { 00050 return static_cast<vtkImplicitFunction *>( 00051 this->GetNextItemAsObject(cookie)); 00052 }; 00053 //ETX 00055 00056 protected: 00057 vtkImplicitFunctionCollection() {}; 00058 ~vtkImplicitFunctionCollection() {}; 00059 00060 00061 private: 00062 // hide the standard AddItem from the user and the compiler. 00063 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00064 00065 private: 00066 vtkImplicitFunctionCollection(const vtkImplicitFunctionCollection&); // Not implemented. 00067 void operator=(const vtkImplicitFunctionCollection&); // Not implemented. 00068 }; 00069 00070 inline void vtkImplicitFunctionCollection::AddItem(vtkImplicitFunction *f) 00071 { 00072 this->vtkCollection::AddItem((vtkObject *)f); 00073 } 00074 00075 inline vtkImplicitFunction *vtkImplicitFunctionCollection::GetNextItem() 00076 { 00077 return static_cast<vtkImplicitFunction *>(this->GetNextItemAsObject()); 00078 } 00079 00080 #endif