VTK  9.3.0
vtkLightActor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
28 #ifndef vtkLightActor_h
29 #define vtkLightActor_h
30 
31 #include "vtkProp3D.h"
32 #include "vtkRenderingCoreModule.h" // For export macro
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 class vtkLight;
36 class vtkConeSource;
37 class vtkPolyDataMapper;
38 class vtkActor;
39 class vtkCamera;
40 class vtkCameraActor;
41 class vtkBoundingBox;
42 class vtkProperty;
43 
44 class VTKRENDERINGCORE_EXPORT vtkLightActor : public vtkProp3D
45 {
46 public:
47  static vtkLightActor* New();
48  vtkTypeMacro(vtkLightActor, vtkProp3D);
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  void SetLight(vtkLight* light);
56  vtkGetObjectMacro(Light, vtkLight);
58 
60 
65  void SetClippingRange(double dNear, double dFar);
66  void SetClippingRange(const double a[2]);
67  vtkGetVector2Macro(ClippingRange, double);
69 
71 
78 
82  int RenderOpaqueGeometry(vtkViewport* viewport) override;
83 
88 
95 
99  double* GetBounds() override;
100 
104  vtkMTimeType GetMTime() override;
105 
106 protected:
108  ~vtkLightActor() override;
109 
111 
113  double ClippingRange[2];
114 
118 
121 
123 
124 private:
125  vtkLightActor(const vtkLightActor&) = delete;
126  void operator=(const vtkLightActor&) = delete;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
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:41
generate polygonal cone
Definition: vtkConeSource.h:34
a simple class to control print indentation
Definition: vtkIndent.h:29
a cone and a frustum to represent a spotlight.
Definition: vtkLightActor.h:45
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()
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
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
vtkProperty * GetConeProperty()
Set/Get properties of the different actors used to represent the camera.
~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.
vtkBoundingBox * BoundingBox
static vtkLightActor * New()
vtkProperty * GetFrustumProperty()
Set/Get properties of the different actors used to represent the camera.
a virtual light for 3D rendering
Definition: vtkLight.h:49
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:39
represent surface properties of a geometric object
Definition: vtkProperty.h:57
abstract specification for Viewports
Definition: vtkViewport.h:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:28
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270