VTK
vtkObjectFactoryCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkObjectFactoryCollection.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 =========================================================================*/
25 #ifndef __vtkObjectFactoryCollection_h
26 #define __vtkObjectFactoryCollection_h
27 
28 #include "vtkCollection.h"
29 
30 #include "vtkObjectFactory.h" // Needed for inline methods
31 
33 {
34 public:
37 
39 
41  {
42  this->vtkCollection::AddItem(t);
43  }
45 
47 
50  { return static_cast<vtkObjectFactory *>(this->GetNextItemAsObject());}
52 
53  //BTX
55 
58  return static_cast<vtkObjectFactory *>(
59  this->GetNextItemAsObject(cookie));};
60  //ETX
62 
63 protected:
66 
67 
68 private:
69  // hide the standard AddItem from the user and the compiler.
70  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
71 
72 private:
73  vtkObjectFactoryCollection(const vtkObjectFactoryCollection&); // Not implemented.
74  void operator=(const vtkObjectFactoryCollection&); // Not implemented.
75 };
76 
77 
78 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:46
vtkObjectFactory * GetNextObjectFactory(vtkCollectionSimpleIterator &cookie)
abstract base class for most VTK objects
Definition: vtkObject.h:60
static vtkCollection * New()
#define VTK_COMMON_EXPORT
maintain a list of object factories
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
void AddItem(vtkObjectFactory *t)
abstract base class for vtkObjectFactories
vtkObject * GetNextItemAsObject()