101 #include "vtkRenderingCoreModule.h"
139 vtkGetMacro(KeyLightIntensity,
double);
155 vtkGetMacro(KeyToFillRatio,
double);
171 vtkGetMacro(KeyToHeadRatio,
double);
183 vtkGetMacro(KeyToBackRatio,
double);
200 vtkGetMacro(KeyLightWarmth,
double);
204 vtkGetMacro(FillLightWarmth,
double);
207 vtkGetMacro(HeadLightWarmth,
double);
210 vtkGetMacro(BackLightWarmth,
double);
216 vtkGetVectorMacro(KeyLightColor,
double, 3);
217 vtkGetVectorMacro(FillLightColor,
double, 3);
218 vtkGetVectorMacro(HeadLightColor,
double, 3);
219 vtkGetVectorMacro(BackLightColor,
double, 3);
229 vtkGetMacro(MaintainLuminance,
int);
246 void SetKeyLightAngle(
double elevation,
double azimuth);
248 { this->SetKeyLightAngle(angle[0], angle[1]); }
251 { this->SetKeyLightAngle(x, this->KeyLightAngle[1]); }
254 { this->SetKeyLightAngle(this->KeyLightAngle[0], x); }
256 vtkGetVectorMacro(KeyLightAngle,
double, 2);
258 {
double ang[2]; this->GetKeyLightAngle(ang);
return ang[0]; }
261 {
double ang[2]; this->GetKeyLightAngle(ang);
return ang[1]; }
263 void SetFillLightAngle(
double elevation,
double azimuth);
265 { this->SetFillLightAngle(angle[0], angle[1]); }
268 { this->SetFillLightAngle(x, this->FillLightAngle[1]); }
271 { this->SetFillLightAngle(this->FillLightAngle[0], x); }
273 vtkGetVectorMacro(FillLightAngle,
double, 2);
275 double ang[2]; this->GetFillLightAngle(ang);
return ang[0]; }
278 {
double ang[2]; this->GetFillLightAngle(ang);
return ang[1]; }
280 void SetBackLightAngle(
double elevation,
double azimuth);
282 { this->SetBackLightAngle(angle[0], angle[1]); }
285 { this->SetBackLightAngle(x, this->BackLightAngle[1]); }
288 { this->SetBackLightAngle(this->BackLightAngle[0], x); }
290 vtkGetVectorMacro(BackLightAngle,
double, 2);
292 {
double ang[2]; this->GetBackLightAngle(ang);
return ang[0]; }
295 {
double ang[2]; this->GetBackLightAngle(ang);
return ang[1]; }
303 void RemoveLightsFromRenderer(
vtkRenderer *renderer);
314 static const char *GetStringFromType(
int type);
319 static const char *GetStringFromSubType(
int type);
326 static const char *GetShortStringFromSubType(
int subtype);
332 static LightKitSubType GetSubType(LightKitType
type,
int i);
338 void WarmthToRGBI(
double w,
double rgb[3],
double& i);
339 void WarmthToRGB(
double w,
double rgb[3]);
340 void InitializeWarmthFunctions();
341 double WarmthToIntensity(
double w);
351 double KeyLightAngle[2];
352 double KeyLightColor[3];
356 double FillLightAngle[2];
357 double FillLightColor[3];
360 double BackLightColor[3];
365 double BackLightAngle[2];
369 double HeadLightColor[3];
377 void operator=(const
vtkLightKit&) VTK_DELETE_FUNCTION;
void SetFillLightAngle(double angle[2])
abstract base class for most VTK objects
double GetFillLightAzimuth()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Defines a 1D piecewise function.
double GetBackLightAzimuth()
void SetBackLightAzimuth(double x)
void SetBackLightElevation(double x)
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
abstract specification for renderers
virtual void Update()
Updates the extensions string.
a simple but quality lighting kit
void SetKeyLightAngle(double angle[2])
a simple class to control print indentation
double GetKeyLightElevation()
void SetKeyLightElevation(double x)
a virtual light for 3D rendering
void SetKeyLightAzimuth(double x)
double GetKeyLightAzimuth()
double GetBackLightElevation()
virtual void Modified()
Update the modification time for this object.
void SetFillLightElevation(double x)
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void SetBackLightAngle(double angle[2])
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
double GetFillLightElevation()
void SetFillLightAzimuth(double x)