94 #ifndef __vtkLightKit_h
95 #define __vtkLightKit_h
134 vtkSetMacro(KeyLightIntensity,
double);
135 vtkGetMacro(KeyLightIntensity,
double);
148 vtkGetMacro(KeyToFillRatio,
double);
162 vtkGetMacro(KeyToHeadRatio,
double);
172 vtkGetMacro(KeyToBackRatio,
double);
185 vtkSetMacro(KeyLightWarmth,
double);
186 vtkGetMacro(KeyLightWarmth,
double);
189 vtkSetMacro(FillLightWarmth,
double);
190 vtkGetMacro(FillLightWarmth,
double);
192 vtkSetMacro(HeadLightWarmth,
double);
193 vtkGetMacro(HeadLightWarmth,
double);
195 vtkSetMacro(BackLightWarmth,
double);
196 vtkGetMacro(BackLightWarmth,
double);
200 vtkGetVectorMacro(KeyLightColor,
double, 3);
201 vtkGetVectorMacro(FillLightColor,
double, 3);
202 vtkGetVectorMacro(HeadLightColor,
double, 3);
203 vtkGetVectorMacro(BackLightColor,
double, 3);
208 VTK_LEGACY(
void SetHeadlightWarmth(
double v));
209 VTK_LEGACY(
double GetHeadlightWarmth());
210 VTK_LEGACY(
void GetHeadlightColor(
double *
color));
217 vtkBooleanMacro(MaintainLuminance,
int);
218 vtkGetMacro(MaintainLuminance,
int);
219 vtkSetMacro(MaintainLuminance,
int);
234 void SetKeyLightAngle(
double elevation,
double azimuth);
236 this->SetKeyLightAngle(angle[0], angle[1]); };
240 this->SetKeyLightAngle(x, this->KeyLightAngle[1]); };
243 this->SetKeyLightAngle(this->KeyLightAngle[0], x); };
245 vtkGetVectorMacro(KeyLightAngle,
double, 2);
247 double ang[2]; this->GetKeyLightAngle(ang);
return ang[0]; };
250 double ang[2]; this->GetKeyLightAngle(ang);
return ang[1]; };
252 void SetFillLightAngle(
double elevation,
double azimuth);
254 this->SetFillLightAngle(angle[0], angle[1]); };
257 this->SetFillLightAngle(x, this->FillLightAngle[1]); };
260 this->SetFillLightAngle(this->FillLightAngle[0], x); };
262 vtkGetVectorMacro(FillLightAngle,
double, 2);
264 double ang[2]; this->GetFillLightAngle(ang);
return ang[0]; };
267 double ang[2]; this->GetFillLightAngle(ang);
return ang[1]; };
269 void SetBackLightAngle(
double elevation,
double azimuth);
271 this->SetBackLightAngle(angle[0], angle[1]); };
274 this->SetBackLightAngle(x, this->BackLightAngle[1]); };
277 this->SetBackLightAngle(this->BackLightAngle[0], x); };
279 vtkGetVectorMacro(BackLightAngle,
double, 2);
281 double ang[2]; this->GetBackLightAngle(ang);
return ang[0]; };
284 double ang[2]; this->GetBackLightAngle(ang);
return ang[1]; };
290 void RemoveLightsFromRenderer(
vtkRenderer *renderer);
299 static const char *GetStringFromType(
int type);
302 static const char *GetStringFromSubType(
int type);
307 static const char *GetShortStringFromSubType(
int subtype);
311 static LightKitSubType GetSubType(LightKitType
type,
int i);
317 void WarmthToRGBI(
double w,
double rgb[3],
double& i);
318 void WarmthToRGB(
double w,
double rgb[3]);
319 void InitializeWarmthFunctions();
320 double WarmthToIntensity(
double w);
330 double KeyLightAngle[2];
331 double KeyLightColor[3];
335 double FillLightAngle[2];
336 double FillLightColor[3];
339 double BackLightColor[3];
344 double BackLightAngle[2];
348 double HeadLightColor[3];