VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkDataSetCollection.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDataSetCollection.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
=========================================================================*/
22
#ifndef __vtkDataSetCollection_h
23
#define __vtkDataSetCollection_h
24
25
#include "
vtkCollection.h
"
26
27
#include "
vtkDataSet.h
"
// Needed for inline methods.
28
29
class
VTK_FILTERING_EXPORT
vtkDataSetCollection
:
public
vtkCollection
30
{
31
public
:
32
static
vtkDataSetCollection
*
New
();
33
vtkTypeMacro(
vtkDataSetCollection
,
vtkCollection
);
34
36
37
void
AddItem
(
vtkDataSet
*ds)
38
{
39
this->
vtkCollection::AddItem
(ds);
40
}
42
44
45
vtkDataSet
*
GetNextItem
() {
46
return
static_cast<
vtkDataSet
*
>
(this->
GetNextItemAsObject
());};
47
vtkDataSet
*
GetNextDataSet
() {
48
return
static_cast<
vtkDataSet
*
>
(this->
GetNextItemAsObject
());};
50
52
53
vtkDataSet
*
GetItem
(
int
i) {
54
return
static_cast<
vtkDataSet
*
>
(this->
GetItemAsObject
(i));};
55
vtkDataSet
*
GetDataSet
(
int
i) {
56
return
static_cast<
vtkDataSet
*
>
(this->
GetItemAsObject
(i));};
58
59
//BTX
61
63
vtkDataSet
*
GetNextDataSet
(
vtkCollectionSimpleIterator
&cookie) {
64
return
static_cast<
vtkDataSet
*
>
(this->
GetNextItemAsObject
(cookie));};
65
//ETX
67
68
protected
:
69
vtkDataSetCollection
() {};
70
~vtkDataSetCollection
() {};
71
72
private
:
73
// hide the standard AddItem from the user and the compiler.
74
void
AddItem
(
vtkObject
*o) { this->
vtkCollection::AddItem
(o); };
75
76
private
:
77
vtkDataSetCollection
(
const
vtkDataSetCollection
&);
// Not implemented.
78
void
operator=(
const
vtkDataSetCollection
&);
// Not implemented.
79
};
80
81
82
#endif
Generated on Sun Sep 9 2012 13:03:28 for VTK by
1.8.1.2