VTK  9.3.20241005
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
67#ifndef vtkLightActor_h
68#define vtkLightActor_h
69
70#include "vtkProp3D.h"
71#include "vtkRenderingCoreModule.h" // For export macro
72
73VTK_ABI_NAMESPACE_BEGIN
74class vtkLight;
75class vtkConeSource;
77class vtkActor;
78class vtkCamera;
79class vtkCameraActor;
80class vtkBoundingBox;
81class vtkProperty;
82
83class VTKRENDERINGCORE_EXPORT vtkLightActor : public vtkProp3D
84{
85public:
86 static vtkLightActor* New();
87 vtkTypeMacro(vtkLightActor, vtkProp3D);
88 void PrintSelf(ostream& os, vtkIndent indent) override;
89
91
94 void SetLight(vtkLight* light);
95 vtkGetObjectMacro(Light, vtkLight);
97
99
104 void SetClippingRange(double dNear, double dFar);
105 void SetClippingRange(const double a[2]);
106 vtkGetVector2Macro(ClippingRange, double);
108
110
117
121 int RenderOpaqueGeometry(vtkViewport* viewport) override;
122
127
134
138 double* GetBounds() override;
139
144
145protected:
147 ~vtkLightActor() override;
148
150
152 double ClippingRange[2];
153
157
160
162
163private:
164 vtkLightActor(const vtkLightActor&) = delete;
165 void operator=(const vtkLightActor&) = delete;
166};
167
168VTK_ABI_NAMESPACE_END
169#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
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:151
generate polygonal cone
a simple class to control print indentation
Definition vtkIndent.h:108
a cone and a frustum to represent a spotlight.
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:159
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:89
represent surface properties of a geometric object
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270