VTK  9.2.6
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 =========================================================================*/
40 #ifndef vtkLightActor_h
41 #define vtkLightActor_h
42 
43 #include "vtkProp3D.h"
44 #include "vtkRenderingCoreModule.h" // For export macro
45 
46 class vtkLight;
47 class vtkConeSource;
48 class vtkPolyDataMapper;
49 class vtkActor;
50 class vtkCamera;
51 class vtkCameraActor;
52 class vtkBoundingBox;
53 class vtkProperty;
54 
55 class VTKRENDERINGCORE_EXPORT vtkLightActor : public vtkProp3D
56 {
57 public:
58  static vtkLightActor* New();
59  vtkTypeMacro(vtkLightActor, vtkProp3D);
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
63 
66  void SetLight(vtkLight* light);
67  vtkGetObjectMacro(Light, vtkLight);
69 
71 
76  void SetClippingRange(double dNear, double dFar);
77  void SetClippingRange(const double a[2]);
78  vtkGetVector2Macro(ClippingRange, double);
80 
82 
86  vtkProperty* GetConeProperty();
87  vtkProperty* GetFrustumProperty();
89 
93  int RenderOpaqueGeometry(vtkViewport* viewport) override;
94 
99 
105  void ReleaseGraphicsResources(vtkWindow*) override;
106 
110  double* GetBounds() override;
111 
115  vtkMTimeType GetMTime() override;
116 
117 protected:
118  vtkLightActor();
119  ~vtkLightActor() override;
120 
121  void UpdateViewProps();
122 
124  double ClippingRange[2];
125 
129 
132 
134 
135 private:
136  vtkLightActor(const vtkLightActor&) = delete;
137  void operator=(const vtkLightActor&) = delete;
138 };
139 
140 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkCameraActor * FrustumActor
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
abstract specification for Viewports
Definition: vtkViewport.h:55
represent surface properties of a geometric object
Definition: vtkProperty.h:67
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:224
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:288
vtkConeSource * ConeSource
vtkLight * Light
generate polygonal cone
Definition: vtkConeSource.h:44
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:49
a frustum to represent a camera.
vtkBoundingBox * BoundingBox
int vtkTypeBool
Definition: vtkABI.h:69
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:309
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
a simple class to control print indentation
Definition: vtkIndent.h:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
a virtual light for 3D rendering
Definition: vtkLight.h:59
a cone and a frustum to represent a spotlight.
Definition: vtkLightActor.h:55
vtkActor * ConeActor
vtkPolyDataMapper * ConeMapper
map vtkPolyData to graphics primitives
vtkCamera * CameraLight
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkMTimeType GetMTime() override
Get the vtkProp3D's mtime.
Fast, simple class for representing and operating on 3D bounds.