VTK  9.1.0
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=========================================================================*/
76#ifndef vtkLightActor_h
77#define vtkLightActor_h
78
79#include "vtkProp3D.h"
80#include "vtkRenderingCoreModule.h" // For export macro
81
82class vtkLight;
83class vtkConeSource;
85class vtkActor;
86class vtkCamera;
87class vtkCameraActor;
88class vtkBoundingBox;
89class vtkProperty;
90
91class VTKRENDERINGCORE_EXPORT vtkLightActor : public vtkProp3D
92{
93public:
94 static vtkLightActor* New();
95 vtkTypeMacro(vtkLightActor, vtkProp3D);
96 void PrintSelf(ostream& os, vtkIndent indent) override;
97
99
102 void SetLight(vtkLight* light);
103 vtkGetObjectMacro(Light, vtkLight);
105
107
112 void SetClippingRange(double dNear, double dFar);
113 void SetClippingRange(const double a[2]);
114 vtkGetVector2Macro(ClippingRange, double);
116
118
125
129 int RenderOpaqueGeometry(vtkViewport* viewport) override;
130
135
142
146 double* GetBounds() override;
147
152
153protected:
155 ~vtkLightActor() override;
156
158
160 double ClippingRange[2];
161
165
168
170
171private:
172 vtkLightActor(const vtkLightActor&) = delete;
173 void operator=(const vtkLightActor&) = delete;
174};
175
176#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
Fast, simple class for representing and operating on 3D bounds.
a frustum to represent a camera.
a virtual camera for 3D rendering
Definition: vtkCamera.h:155
generate polygonal cone
a simple class to control print indentation
Definition: vtkIndent.h:113
a cone and a frustum to represent a spotlight.
Definition: vtkLightActor.h:92
vtkCamera * CameraLight
vtkMTimeType GetMTime() override
Get the actors mtime plus consider its properties and texture if set.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
void SetClippingRange(double dNear, double dFar)
Set/Get the location of the near and far clipping planes along the direction of projection.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry? No.
vtkLight * Light
void UpdateViewProps()
static vtkLightActor * New()
vtkCameraActor * FrustumActor
vtkPolyDataMapper * ConeMapper
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkConeSource * ConeSource
~vtkLightActor() override
void SetClippingRange(const double a[2])
Set/Get the location of the near and far clipping planes along the direction of projection.
vtkActor * ConeActor
void SetLight(vtkLight *light)
The spotlight to represent.
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkBoundingBox * BoundingBox
vtkProperty * GetConeProperty()
Set/Get properties of the different actors used to represent the camera.
vtkProperty * GetFrustumProperty()
Set/Get properties of the different actors used to represent the camera.
a virtual light for 3D rendering
Definition: vtkLight.h:166
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:93
represent surface properties of a geometric object
Definition: vtkProperty.h:171
abstract specification for Viewports
Definition: vtkViewport.h:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287