VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkPropCollection.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPropCollection.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
=========================================================================*/
32
#ifndef __vtkPropCollection_h
33
#define __vtkPropCollection_h
34
35
#include "
vtkCollection.h
"
36
37
#include "
vtkProp.h
"
// Needed for inline methods
38
39
class
VTK_COMMON_EXPORT
vtkPropCollection
:
public
vtkCollection
40
{
41
public
:
42
static
vtkPropCollection
*
New
();
43
vtkTypeMacro(
vtkPropCollection
,
vtkCollection
);
44
46
void
AddItem
(
vtkProp
*a);
47
49
vtkProp
*GetNextProp();
50
52
vtkProp
*GetLastProp();
53
58
int
GetNumberOfPaths();
59
60
//BTX
62
64
vtkProp
*
GetNextProp
(
vtkCollectionSimpleIterator
&cookie) {
65
return
static_cast<
vtkProp
*
>
(this->
GetNextItemAsObject
(cookie));};
66
//ETX
68
69
protected
:
70
vtkPropCollection
() {};
71
~vtkPropCollection
() {};
72
73
74
private
:
75
// hide the standard AddItem from the user and the compiler.
76
void
AddItem
(
vtkObject
*o) { this->
vtkCollection::AddItem
(o); };
77
78
private
:
79
vtkPropCollection
(
const
vtkPropCollection
&);
// Not implemented.
80
void
operator=(
const
vtkPropCollection
&);
// Not implemented.
81
};
82
83
inline
void
vtkPropCollection::AddItem
(
vtkProp
*a)
84
{
85
this->
vtkCollection::AddItem
(a);
86
}
87
88
inline
vtkProp
*
vtkPropCollection::GetNextProp
()
89
{
90
return
static_cast<
vtkProp
*
>
(this->
GetNextItemAsObject
());
91
}
92
93
inline
vtkProp
*
vtkPropCollection::GetLastProp
()
94
{
95
if
( this->
Bottom
== NULL )
96
{
97
return
NULL;
98
}
99
else
100
{
101
return
static_cast<
vtkProp
*
>
(this->
Bottom
->
Item
);
102
}
103
}
104
105
#endif
106
107
108
109
110
Generated on Wed May 30 2012 13:21:52 for VTK by
1.8.1