VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
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
32
class
VTK_COMMON_EXPORT
vtkObjectFactoryCollection
:
public
vtkCollection
33
{
34
public
:
35
vtkTypeMacro(
vtkObjectFactoryCollection
,
vtkCollection
);
36
static
vtkObjectFactoryCollection
*
New
();
37
39
40
void
AddItem
(
vtkObjectFactory
*t)
41
{
42
this->
vtkCollection::AddItem
(t);
43
}
45
47
49
vtkObjectFactory
*
GetNextItem
()
50
{
return
static_cast<
vtkObjectFactory
*
>
(this->
GetNextItemAsObject
());}
52
53
//BTX
55
57
vtkObjectFactory
*
GetNextObjectFactory
(
vtkCollectionSimpleIterator
&cookie) {
58
return
static_cast<
vtkObjectFactory
*
>
(
59
this->
GetNextItemAsObject
(cookie));};
60
//ETX
62
63
protected
:
64
vtkObjectFactoryCollection
() {};
65
~vtkObjectFactoryCollection
() {};
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
Generated on Sun Sep 15 2013 03:44:20 for VTK by
1.8.4