VTK
vtkOverrideInformationCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOverrideInformationCollection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef __vtkOverrideInformationCollection_h
28 #define __vtkOverrideInformationCollection_h
29 
30 #include "vtkCollection.h"
31 
32 #include "vtkOverrideInformation.h" // Needed for inline methods
33 
35 {
36 public:
39 
42 
44  vtkOverrideInformation *GetNextItem();
45 
46  //BTX
48 
52  return static_cast<vtkOverrideInformation *>(
53  this->GetNextItemAsObject(cookie));};
54  //ETX
56 
57 protected:
60 
61 
62 private:
63  // hide the standard AddItem from the user and the compiler.
64  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
65 
66 private:
68  void operator=(const vtkOverrideInformationCollection&); // Not implemented.
69 };
70 
72 {
73  this->vtkCollection::AddItem(f);
74 }
75 
77 {
78  return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject());
79 }
80 
81 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:46
maintain a list of override information objects
abstract base class for most VTK objects
Definition: vtkObject.h:60
static vtkCollection * New()
#define VTK_COMMON_EXPORT
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
Factory object override information.
vtkObject * GetNextItemAsObject()
vtkOverrideInformation * GetNextOverrideInformation(vtkCollectionSimpleIterator &cookie)