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;