VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkLODActor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLODActor.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
=========================================================================*/
61
#ifndef __vtkLODActor_h
62
#define __vtkLODActor_h
63
64
#include "
vtkActor.h
"
65
66
class
vtkMapper
;
67
class
vtkMapperCollection
;
68
class
vtkPolyDataAlgorithm
;
69
class
vtkPolyDataMapper
;
70
class
vtkRenderer
;
71
class
vtkViewport
;
72
class
vtkWindow
;
73
74
class
VTK_RENDERING_EXPORT
vtkLODActor
:
public
vtkActor
75
{
76
public
:
77
vtkTypeMacro(
vtkLODActor
,
vtkActor
);
78
void
PrintSelf
(ostream& os,
vtkIndent
indent);
79
83
static
vtkLODActor
*
New
();
84
87
virtual
void
Render
(
vtkRenderer
*,
vtkMapper
*);
88
91
int
RenderOpaqueGeometry
(
vtkViewport
*viewport);
92
96
void
ReleaseGraphicsResources
(
vtkWindow
*);
97
100
void
AddLODMapper(
vtkMapper
*mapper);
101
103
106
virtual
void
SetLowResFilter(
vtkPolyDataAlgorithm
* );
107
virtual
void
SetMediumResFilter(
vtkPolyDataAlgorithm
* );
108
vtkGetObjectMacro( LowResFilter,
vtkPolyDataAlgorithm
);
109
vtkGetObjectMacro( MediumResFilter,
vtkPolyDataAlgorithm
);
111
113
114
vtkGetMacro(NumberOfCloudPoints,
int
);
115
vtkSetMacro(NumberOfCloudPoints,
int
);
117
119
121
vtkGetObjectMacro(LODMappers,
vtkMapperCollection
);
123
126
void
Modified
();
127
129
void
ShallowCopy
(
vtkProp
*prop);
130
131
protected
:
132
vtkLODActor
();
133
~
vtkLODActor
();
134
135
vtkActor
*
Device
;
136
vtkMapperCollection
*
LODMappers
;
137
138
// We can create our own LOD filters. The default is to use a
139
//
140
vtkPolyDataAlgorithm
*
LowResFilter
;
141
vtkPolyDataAlgorithm
*
MediumResFilter
;
142
vtkPolyDataMapper
*
LowMapper
;
143
vtkPolyDataMapper
*
MediumMapper
;
144
145
vtkTimeStamp
BuildTime
;
146
int
NumberOfCloudPoints
;
147
148
virtual
void
CreateOwnLODs();
149
virtual
void
UpdateOwnLODs();
150
virtual
void
DeleteOwnLODs();
151
152
private
:
153
vtkLODActor
(
const
vtkLODActor
&);
// Not implemented.
154
void
operator=(
const
vtkLODActor
&);
// Not implemented.
155
};
156
157
#endif
158
159
Generated on Fri Aug 2 2013 12:20:02 for VTK by
1.8.4