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 =========================================================================*/ 00027 #ifndef __vtkOverrideInformationCollection_h 00028 #define __vtkOverrideInformationCollection_h 00029 00030 #include "vtkCollection.h" 00031 00032 #include "vtkOverrideInformation.h" // Needed for inline methods 00033 00034 class VTK_COMMON_EXPORT vtkOverrideInformationCollection : public vtkCollection 00035 { 00036 public: 00037 vtkTypeRevisionMacro(vtkOverrideInformationCollection,vtkCollection); 00038 static vtkOverrideInformationCollection *New(); 00039 00041 void AddItem(vtkOverrideInformation *); 00042 00044 vtkOverrideInformation *GetNextItem(); 00045 00046 //BTX 00048 00050 vtkOverrideInformation *GetNextOverrideInformation( 00051 vtkCollectionSimpleIterator &cookie) { 00052 return static_cast<vtkOverrideInformation *>( 00053 this->GetNextItemAsObject(cookie));}; 00054 //ETX 00056 00057 protected: 00058 vtkOverrideInformationCollection() {}; 00059 ~vtkOverrideInformationCollection() {}; 00060 00061 00062 private: 00063 // hide the standard AddItem from the user and the compiler. 00064 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00065 00066 private: 00067 vtkOverrideInformationCollection(const vtkOverrideInformationCollection&); // Not implemented. 00068 void operator=(const vtkOverrideInformationCollection&); // Not implemented. 00069 }; 00070 00071 inline void vtkOverrideInformationCollection::AddItem(vtkOverrideInformation *f) 00072 { 00073 this->vtkCollection::AddItem(f); 00074 } 00075 00076 inline vtkOverrideInformation *vtkOverrideInformationCollection::GetNextItem() 00077 { 00078 return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject()); 00079 } 00080 00081 #endif