VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkLightActor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLightActor.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
=========================================================================*/
39
#ifndef __vtkLightActor_h
40
#define __vtkLightActor_h
41
42
#include "
vtkProp3D.h
"
43
44
class
vtkLight
;
45
class
vtkConeSource
;
46
class
vtkPolyDataMapper
;
47
class
vtkActor
;
48
class
vtkCamera
;
49
class
vtkCameraActor
;
50
class
vtkBoundingBox
;
51
52
class
VTK_RENDERING_EXPORT
vtkLightActor
:
public
vtkProp3D
53
{
54
public
:
55
static
vtkLightActor
*
New
();
56
vtkTypeMacro(
vtkLightActor
,
vtkProp3D
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent);
58
60
61
void
SetLight(
vtkLight
*light);
62
vtkGetObjectMacro(Light,
vtkLight
);
64
66
69
void
SetClippingRange(
double
dNear,
70
double
dFar);
71
void
SetClippingRange(
const
double
a[2]);
72
vtkGetVector2Macro(ClippingRange,
double
);
74
76
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*viewport);
77
79
virtual
int
HasTranslucentPolygonalGeometry
();
80
84
void
ReleaseGraphicsResources
(
vtkWindow
*);
85
87
double
*
GetBounds
();
88
90
unsigned
long
int
GetMTime
();
91
92
protected
:
93
vtkLightActor
();
94
~
vtkLightActor
();
95
96
void
UpdateViewProps();
97
98
vtkLight
*
Light
;
99
double
ClippingRange[2];
100
101
vtkConeSource
*
ConeSource
;
102
vtkPolyDataMapper
*
ConeMapper
;
103
vtkActor
*
ConeActor
;
104
105
vtkCamera
*
CameraLight
;
106
vtkCameraActor
*
FrustumActor
;
107
108
vtkBoundingBox
*
BoundingBox
;
109
110
private
:
111
vtkLightActor
(
const
vtkLightActor
&);
// Not implemented.
112
void
operator=(
const
vtkLightActor
&);
// Not implemented.
113
};
114
115
#endif
Generated on Fri Aug 2 2013 12:20:02 for VTK by
1.8.4