VTK  9.0.1
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 =========================================================================*/
37 #ifndef vtkLightActor_h
38 #define vtkLightActor_h
39 
40 #include "vtkProp3D.h"
41 #include "vtkRenderingCoreModule.h" // For export macro
42 
43 class vtkLight;
44 class vtkConeSource;
45 class vtkPolyDataMapper;
46 class vtkActor;
47 class vtkCamera;
48 class vtkCameraActor;
49 class vtkBoundingBox;
50 
51 class VTKRENDERINGCORE_EXPORT vtkLightActor : public vtkProp3D
52 {
53 public:
54  static vtkLightActor* New();
55  vtkTypeMacro(vtkLightActor, vtkProp3D);
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
62  void SetLight(vtkLight* light);
63  vtkGetObjectMacro(Light, vtkLight);
65 
67 
72  void SetClippingRange(double dNear, double dFar);
73  void SetClippingRange(const double a[2]);
74  vtkGetVector2Macro(ClippingRange, double);
76 
80  int RenderOpaqueGeometry(vtkViewport* viewport) override;
81 
86 
92  void ReleaseGraphicsResources(vtkWindow*) override;
93 
97  double* GetBounds() override;
98 
102  vtkMTimeType GetMTime() override;
103 
104 protected:
105  vtkLightActor();
106  ~vtkLightActor() override;
107 
108  void UpdateViewProps();
109 
111  double ClippingRange[2];
112 
116 
119 
121 
122 private:
123  vtkLightActor(const vtkLightActor&) = delete;
124  void operator=(const vtkLightActor&) = delete;
125 };
126 
127 #endif
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:36
vtkLightActor::BoundingBox
vtkBoundingBox * BoundingBox
Definition: vtkLightActor.h:120
vtkLight
a virtual light for 3D rendering
Definition: vtkLight.h:56
vtkLightActor
a cone and a frustum to represent a spotlight.
Definition: vtkLightActor.h:51
vtkLightActor::ConeActor
vtkActor * ConeActor
Definition: vtkLightActor.h:115
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkProp3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkLightActor::FrustumActor
vtkCameraActor * FrustumActor
Definition: vtkLightActor.h:118
vtkProp::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:221
vtkConeSource
generate polygonal cone
Definition: vtkConeSource.h:38
vtkProp3D::GetBounds
double * GetBounds() override=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkProp::HasTranslucentPolygonalGeometry
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:285
vtkBoundingBox
Fast, simple class for dealing with 3D bounds.
Definition: vtkBoundingBox.h:34
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkLightActor::ConeMapper
vtkPolyDataMapper * ConeMapper
Definition: vtkLightActor.h:114
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:45
vtkProp3D::GetMTime
vtkMTimeType GetMTime() override
Get the vtkProp3D's mtime.
vtkLightActor::CameraLight
vtkCamera * CameraLight
Definition: vtkLightActor.h:117
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkCameraActor
a frustum to represent a camera.
Definition: vtkCameraActor.h:38
vtkLightActor::Light
vtkLight * Light
Definition: vtkLightActor.h:110
vtkLightActor::ConeSource
vtkConeSource * ConeSource
Definition: vtkLightActor.h:113
vtkProp::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:306
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293
vtkProp3D.h