00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOverrideInformationCollection.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 =========================================================================*/ 00039 #ifndef __vtkOverrideInformationCollection_h 00040 #define __vtkOverrideInformationCollection_h 00041 00042 #include "vtkCollection.h" 00043 00044 #include "vtkOverrideInformation.h" // Needed for inline methods 00045 00046 class VTK_COMMON_EXPORT vtkOverrideInformationCollection : public vtkCollection 00047 { 00048 public: 00049 vtkTypeRevisionMacro(vtkOverrideInformationCollection,vtkCollection); 00050 static vtkOverrideInformationCollection *New(); 00051 00053 void AddItem(vtkOverrideInformation *); 00054 00056 vtkOverrideInformation *GetNextItem(); 00057 00058 //BTX 00060 00062 vtkOverrideInformation *GetNextOverrideInformation( 00063 vtkCollectionSimpleIterator &cookie) { 00064 return static_cast<vtkOverrideInformation *>( 00065 this->GetNextItemAsObject(cookie));}; 00066 //ETX 00068 00069 protected: 00070 vtkOverrideInformationCollection() {}; 00071 ~vtkOverrideInformationCollection() {}; 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 vtkOverrideInformationCollection(const vtkOverrideInformationCollection&); // Not implemented. 00080 void operator=(const vtkOverrideInformationCollection&); // Not implemented. 00081 }; 00082 00083 inline void vtkOverrideInformationCollection::AddItem(vtkOverrideInformation *f) 00084 { 00085 this->vtkCollection::AddItem((vtkObject *)f); 00086 } 00087 00088 inline vtkOverrideInformation *vtkOverrideInformationCollection::GetNextItem() 00089 { 00090 return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject()); 00091 } 00092 00093 #endif