VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkRendererCollection.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkRendererCollection.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 __vtkRendererCollection_h
27
#define __vtkRendererCollection_h
28
29
#include "
vtkCollection.h
"
30
#include "
vtkRenderer.h
"
// Needed for static cast
31
32
class
VTK_RENDERING_EXPORT
vtkRendererCollection
:
public
vtkCollection
33
{
34
public
:
35
static
vtkRendererCollection
*
New
();
36
vtkTypeMacro(
vtkRendererCollection
,
vtkCollection
);
37
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
38
40
41
void
AddItem
(
vtkRenderer
*a)
42
{
43
this->
vtkCollection::AddItem
(a);
44
}
46
47
49
51
vtkRenderer
*
GetNextItem
() {
52
return
static_cast<
vtkRenderer
*
>
(this->
GetNextItemAsObject
());};
54
56
void
Render();
57
60
vtkRenderer
*GetFirstRenderer();
61
62
//BTX
64
66
vtkRenderer
*
GetNextRenderer
(
vtkCollectionSimpleIterator
&cookie) {
67
return
static_cast<
vtkRenderer
*
>
(this->
GetNextItemAsObject
(cookie));};
68
//ETX
70
71
protected
:
72
vtkRendererCollection
() {};
73
~vtkRendererCollection
() {};
74
75
private
:
76
// hide the standard AddItem from the user and the compiler.
77
void
AddItem
(
vtkObject
*o) { this->
vtkCollection::AddItem
(o); };
78
79
private
:
80
vtkRendererCollection
(
const
vtkRendererCollection
&);
// Not implemented.
81
void
operator=(
const
vtkRendererCollection
&);
// Not implemented.
82
};
83
84
85
#endif
Generated on Fri Aug 2 2013 12:20:02 for VTK by
1.8.4