VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkAssemblyPaths.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAssemblyPaths.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
=========================================================================*/
26
#ifndef __vtkAssemblyPaths_h
27
#define __vtkAssemblyPaths_h
28
29
#include "
vtkCollection.h
"
30
31
#include "
vtkAssemblyPath.h
"
// Needed for inline methods
32
33
class
vtkProp
;
34
35
class
VTK_COMMON_EXPORT
vtkAssemblyPaths
:
public
vtkCollection
36
{
37
public
:
38
static
vtkAssemblyPaths
*
New
();
39
vtkTypeMacro(
vtkAssemblyPaths
,
vtkCollection
);
40
42
void
AddItem
(
vtkAssemblyPath
*p);
43
45
void
RemoveItem
(
vtkAssemblyPath
*p);
46
49
int
IsItemPresent
(
vtkAssemblyPath
*p);
50
52
vtkAssemblyPath
*GetNextItem();
53
56
virtual
unsigned
long
GetMTime
();
57
58
//BTX
60
62
vtkAssemblyPath
*
GetNextPath
(
vtkCollectionSimpleIterator
&cookie) {
63
return
static_cast<
vtkAssemblyPath
*
>
(this->
GetNextItemAsObject
(cookie));};
64
//ETX
66
67
protected
:
68
vtkAssemblyPaths
() {};
69
~vtkAssemblyPaths
() {};
70
71
private
:
72
// hide the standard AddItem from the user and the compiler.
73
void
AddItem
(
vtkObject
*o) { this->
vtkCollection::AddItem
(o); };
74
void
RemoveItem
(
vtkObject
*o) { this->
vtkCollection::RemoveItem
(o); };
75
void
RemoveItem
(
int
i) { this->
vtkCollection::RemoveItem
(i); };
76
int
IsItemPresent
(
vtkObject
*o)
77
{
return
this->
vtkCollection::IsItemPresent
(o);};
78
private
:
79
vtkAssemblyPaths
(
const
vtkAssemblyPaths
&);
// Not implemented.
80
void
operator=(
const
vtkAssemblyPaths
&);
// Not implemented.
81
};
82
83
inline
void
vtkAssemblyPaths::AddItem
(
vtkAssemblyPath
*p)
84
{
85
this->
vtkCollection::AddItem
(p);
86
}
87
88
inline
void
vtkAssemblyPaths::RemoveItem
(
vtkAssemblyPath
*p)
89
{
90
this->
vtkCollection::RemoveItem
(p);
91
}
92
93
inline
int
vtkAssemblyPaths::IsItemPresent
(
vtkAssemblyPath
*p)
94
{
95
return
this->
vtkCollection::IsItemPresent
(p);
96
}
97
98
inline
vtkAssemblyPath
*
vtkAssemblyPaths::GetNextItem
()
99
{
100
return
static_cast<
vtkAssemblyPath
*
>
(this->
GetNextItemAsObject
());
101
}
102
103
#endif
Generated on Wed May 30 2012 13:21:50 for VTK by
1.8.1