VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkIdListCollection.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkIdListCollection.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 __vtkIdListCollection_h
23
#define __vtkIdListCollection_h
24
25
#include "
vtkCollection.h
"
26
27
#include "
vtkIdList.h
"
// Needed for inline methods
28
29
class
VTK_COMMON_EXPORT
vtkIdListCollection
:
public
vtkCollection
30
{
31
public
:
32
static
vtkIdListCollection
*
New
();
33
vtkTypeMacro(
vtkIdListCollection
,
vtkCollection
);
34
36
37
void
AddItem
(
vtkIdList
*ds)
38
{
39
this->
vtkCollection::AddItem
(ds);
40
}
42
44
45
vtkIdList
*
GetNextItem
() {
46
return
static_cast<
vtkIdList
*
>
(this->
GetNextItemAsObject
());};
48
50
51
vtkIdList
*
GetItem
(
int
i) {
52
return
static_cast<
vtkIdList
*
>
(this->
GetItemAsObject
(i));};
54
55
//BTX
57
59
vtkIdList
*
GetNextIdList
(
vtkCollectionSimpleIterator
&cookie) {
60
return
static_cast<
vtkIdList
*
>
(this->
GetNextItemAsObject
(cookie));};
61
//ETX
63
64
protected
:
65
vtkIdListCollection
() {};
66
~vtkIdListCollection
() {};
67
68
69
private
:
70
// hide the standard AddItem from the user and the compiler.
71
void
AddItem
(
vtkObject
*o) { this->
vtkCollection::AddItem
(o); };
72
73
private
:
74
vtkIdListCollection
(
const
vtkIdListCollection
&);
// Not implemented.
75
void
operator=(
const
vtkIdListCollection
&);
// Not implemented.
76
};
77
78
79
#endif
Generated on Wed Nov 21 2012 21:33:39 for VTK by
1.8.2