VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkTransformCollection.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTransformCollection.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 __vtkTransformCollection_h
27
#define __vtkTransformCollection_h
28
29
#include "
vtkCollection.h
"
30
31
#include "
vtkTransform.h
"
// Needed for inline methods
32
33
class
VTK_COMMON_EXPORT
vtkTransformCollection
:
public
vtkCollection
34
{
35
public
:
36
vtkTypeMacro(
vtkTransformCollection
,
vtkCollection
);
37
static
vtkTransformCollection
*
New
();
38
40
void
AddItem
(
vtkTransform
*);
41
44
vtkTransform
*GetNextItem();
45
46
//BTX
48
50
vtkTransform
*
GetNextTransform
(
vtkCollectionSimpleIterator
&cookie) {
51
return
static_cast<
vtkTransform
*
>
(this->
GetNextItemAsObject
(cookie));};
52
//ETX
54
55
protected
:
56
vtkTransformCollection
() {};
57
~vtkTransformCollection
() {};
58
59
60
private
:
61
// hide the standard AddItem from the user and the compiler.
62
void
AddItem
(
vtkObject
*o)
63
{
64
this->
vtkCollection::AddItem
(o);
65
}
66
67
private
:
68
vtkTransformCollection
(
const
vtkTransformCollection
&);
// Not implemented.
69
void
operator=(
const
vtkTransformCollection
&);
// Not implemented.
70
};
71
72
//----------------------------------------------------------------------------
73
inline
void
vtkTransformCollection::AddItem
(
vtkTransform
*t)
74
{
75
this->
vtkCollection::AddItem
(t);
76
}
77
78
//----------------------------------------------------------------------------
79
inline
vtkTransform
*
vtkTransformCollection::GetNextItem
()
80
{
81
return
static_cast<
vtkTransform
*
>
(this->
GetNextItemAsObject
());
82
}
83
84
#endif
Generated on Fri Aug 2 2013 12:19:47 for VTK by
1.8.4