VTK  9.2.6
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
56#ifndef vtkExternalLight_h
57#define vtkExternalLight_h
58
59#include "vtkLight.h"
60#include "vtkRenderingExternalModule.h" // For export macro
61
62class VTKRENDERINGEXTERNAL_EXPORT vtkExternalLight : public vtkLight
63{
64public:
65 vtkTypeMacro(vtkExternalLight, vtkLight);
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
78
80 {
81 INDIVIDUAL_PARAMS = 0, // default
83 };
84
86
91 vtkSetMacro(LightIndex, int);
92 vtkGetMacro(LightIndex, int);
94
96
109 vtkSetMacro(ReplaceMode, int);
110 vtkGetMacro(ReplaceMode, int);
112
116 void SetPosition(double, double, double) override;
118
122 void SetFocalPoint(double, double, double) override;
124
128 void SetAmbientColor(double, double, double) override;
130
134 void SetDiffuseColor(double, double, double) override;
136
140 void SetSpecularColor(double, double, double) override;
142
146 void SetIntensity(double) override;
147
151 void SetConeAngle(double) override;
152
156 void SetAttenuationValues(double, double, double) override;
158
162 void SetExponent(double) override;
163
168
170
173 vtkGetMacro(PositionSet, bool);
175
177
180 vtkGetMacro(FocalPointSet, bool);
182
184
187 vtkGetMacro(AmbientColorSet, bool);
189
191
194 vtkGetMacro(DiffuseColorSet, bool);
196
198
201 vtkGetMacro(SpecularColorSet, bool);
203
205
208 vtkGetMacro(IntensitySet, bool);
210
212
215 vtkGetMacro(ConeAngleSet, bool);
217
219
222 vtkGetMacro(AttenuationValuesSet, bool);
224
226
229 vtkGetMacro(ExponentSet, bool);
231
233
236 vtkGetMacro(PositionalSet, bool);
238
239protected:
242
245
256
257private:
258 vtkExternalLight(const vtkExternalLight&) = delete;
259 void operator=(const vtkExternalLight&) = delete;
260};
261
262#endif // vtkExternalLight_h
void SetAmbientColor(double, double, double) override
Override Set method to keep a record of changed value.
~vtkExternalLight() override
void SetPosition(double, double, double) override
Override Set method to keep a record of changed value.
void SetPositional(vtkTypeBool) override
Override Set method to keep a record of changed value.
void SetAttenuationValues(double, double, double) override
Override Set method to keep a record of changed value.
void SetExponent(double) override
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 SetSpecularColor(double, double, double) override
Override Set method to keep a record of changed value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetConeAngle(double) override
Override Set method to keep a record of changed value.
void SetDiffuseColor(double, double, double) override
Override Set method to keep a record of changed value.
void SetFocalPoint(double, double, double) override
Override Set method to keep a record of changed value.
void SetIntensity(double) override
Override Set method to keep a record of changed value.
a simple class to control print indentation
Definition vtkIndent.h:34
virtual void SetSpecularColor(double, double, double)
Set/Get the color of the light.
virtual void SetAmbientColor(double, double, double)
Set/Get the color of the light.
virtual void SetPosition(double, double, double)
Set/Get the position of the light.
virtual void SetDiffuseColor(double, double, double)
Set/Get the color of the light.
virtual void SetFocalPoint(double, double, double)
Set/Get the point at which the light is shining.
virtual void SetAttenuationValues(double, double, double)
Set/Get the quadratic attenuation constants.
int vtkTypeBool
Definition vtkABI.h:69