VTK
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 "vtkRenderingCoreModule.h" // For export macro
44#include "vtkProp3D.h"
45
46class vtkLight;
47class vtkConeSource;
49class vtkActor;
50class vtkCamera;
51class vtkCameraActor;
52class vtkBoundingBox;
53
54class VTKRENDERINGCORE_EXPORT vtkLightActor : public vtkProp3D
55{
56public:
57 static vtkLightActor *New();
58 vtkTypeMacro(vtkLightActor, vtkProp3D);
59 void PrintSelf(ostream& os, vtkIndent indent);
60
62
65 void SetLight(vtkLight *light);
66 vtkGetObjectMacro(Light, vtkLight);
68
70
75 void SetClippingRange(double dNear, double dFar);
76 void SetClippingRange(const double a[2]);
77 vtkGetVector2Macro(ClippingRange, double);
79
83 virtual int RenderOpaqueGeometry(vtkViewport *viewport);
84
89
96
100 double *GetBounds();
101
106
107protected:
110
112
114 double ClippingRange[2];
115
119
122
124
125private:
126 vtkLightActor(const vtkLightActor&) VTK_DELETE_FUNCTION;
127 void operator=(const vtkLightActor&) VTK_DELETE_FUNCTION;
128};
129
130#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
Fast Simple Class for dealing with 3D bounds.
a frustum to represent a camera.
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
generate polygonal cone
Definition: vtkConeSource.h:45
a simple class to control print indentation
Definition: vtkIndent.h:40
a cone and a frustum to represent a spotlight.
Definition: vtkLightActor.h:55
vtkCamera * CameraLight
void SetClippingRange(double dNear, double dFar)
Set/Get the location of the near and far clipping planes along the direction of projection.
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
Support the standard render methods.
vtkLight * Light
void UpdateViewProps()
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
static vtkLightActor * New()
vtkCameraActor * FrustumActor
vtkPolyDataMapper * ConeMapper
vtkConeSource * ConeSource
void SetClippingRange(const double a[2])
vtkActor * ConeActor
void SetLight(vtkLight *light)
The spotlight to represent.
vtkMTimeType GetMTime()
Get the actors mtime plus consider its properties and texture if set.
double * GetBounds()
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkBoundingBox * BoundingBox
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry? No.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a virtual light for 3D rendering
Definition: vtkLight.h:62
map vtkPolyData to graphics primitives
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248