VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkDataObjectCollection.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDataObjectCollection.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
=========================================================================*/
28
#ifndef __vtkDataObjectCollection_h
29
#define __vtkDataObjectCollection_h
30
31
#include "
vtkCollection.h
"
32
33
#include "
vtkDataObject.h
"
// Needed for inline methods
34
35
class
VTK_FILTERING_EXPORT
vtkDataObjectCollection
:
public
vtkCollection
36
{
37
public
:
38
static
vtkDataObjectCollection
*
New
();
39
vtkTypeMacro(
vtkDataObjectCollection
,
vtkCollection
);
40
42
43
void
AddItem
(
vtkDataObject
*ds)
44
{
45
this->
vtkCollection::AddItem
(ds);
46
}
48
50
51
vtkDataObject
*
GetNextItem
()
52
{
53
return
static_cast<
vtkDataObject
*
>
(this->
GetNextItemAsObject
());
54
}
56
58
59
vtkDataObject
*
GetItem
(
int
i)
60
{
61
return
static_cast<
vtkDataObject
*
>
(this->
GetItemAsObject
(i));
62
}
64
65
//BTX
67
69
vtkDataObject
*
GetNextDataObject
(
vtkCollectionSimpleIterator
&cookie)
70
{
71
return
static_cast<
vtkDataObject
*
>
(this->
GetNextItemAsObject
(cookie));
72
}
73
//ETX
75
76
protected
:
77
vtkDataObjectCollection
() {};
78
~vtkDataObjectCollection
() {};
79
80
81
private
:
82
// hide the standard AddItem from the user and the compiler.
83
void
AddItem
(
vtkObject
*o) { this->
vtkCollection::AddItem
(o); };
84
85
private
:
86
vtkDataObjectCollection
(
const
vtkDataObjectCollection
&);
// Not implemented.
87
void
operator=(
const
vtkDataObjectCollection
&);
// Not implemented.
88
};
89
90
91
#endif
Generated on Sun Sep 15 2013 03:44:21 for VTK by
1.8.4