VTK  9.6.1
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
27
28#ifndef vtkLightActor_h
29#define vtkLightActor_h
30
31#include "vtkProp3D.h"
32#include "vtkRenderingCoreModule.h" // For export macro
33#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkLight;
37class vtkConeSource;
39class vtkActor;
40class vtkCamera;
41class vtkCameraActor;
42class vtkBoundingBox;
43class vtkProperty;
44
45class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkLightActor : public vtkProp3D
46{
47public:
48 static vtkLightActor* New();
49 vtkTypeMacro(vtkLightActor, vtkProp3D);
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
56 void SetLight(vtkLight* light);
57 vtkGetObjectMacro(Light, vtkLight);
59
61
66 void SetClippingRange(double dNear, double dFar);
67 void SetClippingRange(const double a[2]);
68 vtkGetVector2Macro(ClippingRange, double);
70
72
79
83 int RenderOpaqueGeometry(vtkViewport* viewport) override;
84
89
96
100 double* GetBounds() override;
101
106
107protected:
109 ~vtkLightActor() override;
110
112
114 double ClippingRange[2];
115
119
122
124
125private:
126 vtkLightActor(const vtkLightActor&) = delete;
127 void operator=(const vtkLightActor&) = delete;
128};
129
130VTK_ABI_NAMESPACE_END
131#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:42
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:42
generate polygonal cone
a simple class to control print indentation
Definition vtkIndent.h:29
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?
vtkLight * Light
void UpdateViewProps()
static vtkLightActor * New()
vtkCameraActor * FrustumActor
vtkPolyDataMapper * ConeMapper
double ClippingRange[2]
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:50
map vtkPolyData to graphics primitives
represent surface properties of a geometric object
Definition vtkProperty.h:60
abstract specification for Viewports
Definition vtkViewport.h:47
window superclass for vtkRenderWindow
Definition vtkWindow.h:29
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:323
#define VTK_MARSHALAUTO