VTK
vtkExternalLight.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkExternalLight.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=========================================================================*/
55#ifndef vtkExternalLight_h
56#define vtkExternalLight_h
57
58#include "vtkRenderingExternalModule.h" // For export macro
59#include "vtkLight.h"
60
61class VTKRENDERINGEXTERNAL_EXPORT vtkExternalLight : public vtkLight
62{
63public:
64 vtkTypeMacro(vtkExternalLight, vtkLight);
65 void PrintSelf(ostream& os, vtkIndent indent);
66
77
79 {
80 INDIVIDUAL_PARAMS = 0, // default
81 ALL_PARAMS = 1
82 };
83
85
90 vtkSetMacro(LightIndex, int);
91 vtkGetMacro(LightIndex, int);
93
95
108 vtkSetMacro(ReplaceMode, int);
109 vtkGetMacro(ReplaceMode, int);
111
115 void SetPosition(double, double, double);
116
120 void SetFocalPoint(double, double, double);
121
125 void SetAmbientColor(double, double, double);
126
130 void SetDiffuseColor(double, double, double);
131
135 void SetSpecularColor(double, double, double);
136
140 void SetIntensity(double);
141
145 void SetConeAngle(double);
146
150 void SetAttenuationValues(double, double, double);
151
155 void SetExponent(double);
156
160 void SetPositional(int);
161
163
166 vtkGetMacro(PositionSet, bool);
168
170
173 vtkGetMacro(FocalPointSet, bool);
175
177
180 vtkGetMacro(AmbientColorSet, bool);
182
184
187 vtkGetMacro(DiffuseColorSet, bool);
189
191
194 vtkGetMacro(SpecularColorSet, bool);
196
198
201 vtkGetMacro(IntensitySet, bool);
203
205
208 vtkGetMacro(ConeAngleSet, bool);
210
212
215 vtkGetMacro(AttenuationValuesSet, bool);
217
219
222 vtkGetMacro(ExponentSet, bool);
224
226
229 vtkGetMacro(PositionalSet, bool);
231
232protected:
235
238
249
250private:
251 vtkExternalLight(const vtkExternalLight&) VTK_DELETE_FUNCTION;
252 void operator=(const vtkExternalLight&) VTK_DELETE_FUNCTION;
253};
254
255#endif // vtkExternalLight_h
a virtual light object for tweaking existing lights in an external 3D rendering context
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetFocalPoint(double, double, double)
Override Set method to keep a record of changed value.
void SetConeAngle(double)
Override Set method to keep a record of changed value.
void SetPositional(int)
Override Set method to keep a record of changed value.
static vtkExternalLight * New()
Create an external light object with the focal point at the origin and its position set to (0,...
void SetIntensity(double)
Override Set method to keep a record of changed value.
void SetDiffuseColor(double, double, double)
Override Set method to keep a record of changed value.
void SetExponent(double)
Override Set method to keep a record of changed value.
void SetAmbientColor(double, double, double)
Override Set method to keep a record of changed value.
void SetPosition(double, double, double)
Override Set method to keep a record of changed value.
void SetAttenuationValues(double, double, double)
Override Set method to keep a record of changed value.
void SetSpecularColor(double, double, double)
Override Set method to keep a record of changed value.
a simple class to control print indentation
Definition: vtkIndent.h:40
a virtual light for 3D rendering
Definition: vtkLight.h:62
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.