95 #include "vtkRenderingCoreModule.h" 133 vtkGetMacro(KeyLightIntensity,
double);
149 vtkGetMacro(KeyToFillRatio,
double);
165 vtkGetMacro(KeyToHeadRatio,
double);
177 vtkGetMacro(KeyToBackRatio,
double);
194 vtkGetMacro(KeyLightWarmth,
double);
198 vtkGetMacro(FillLightWarmth,
double);
201 vtkGetMacro(HeadLightWarmth,
double);
204 vtkGetMacro(BackLightWarmth,
double);
210 vtkGetVectorMacro(KeyLightColor,
double, 3);
211 vtkGetVectorMacro(FillLightColor,
double, 3);
212 vtkGetVectorMacro(HeadLightColor,
double, 3);
213 vtkGetVectorMacro(BackLightColor,
double, 3);
223 vtkGetMacro(MaintainLuminance,
int);
240 void SetKeyLightAngle(
double elevation,
double azimuth);
242 { this->SetKeyLightAngle(angle[0], angle[1]); }
245 { this->SetKeyLightAngle(x, this->KeyLightAngle[1]); }
248 { this->SetKeyLightAngle(this->KeyLightAngle[0], x); }
250 vtkGetVectorMacro(KeyLightAngle,
double, 2);
252 {
double ang[2]; this->GetKeyLightAngle(ang);
return ang[0]; }
255 {
double ang[2]; this->GetKeyLightAngle(ang);
return ang[1]; }
257 void SetFillLightAngle(
double elevation,
double azimuth);
259 { this->SetFillLightAngle(angle[0], angle[1]); }
262 { this->SetFillLightAngle(x, this->FillLightAngle[1]); }
265 { this->SetFillLightAngle(this->FillLightAngle[0], x); }
267 vtkGetVectorMacro(FillLightAngle,
double, 2);
269 double ang[2]; this->GetFillLightAngle(ang);
return ang[0]; }
272 {
double ang[2]; this->GetFillLightAngle(ang);
return ang[1]; }
274 void SetBackLightAngle(
double elevation,
double azimuth);
276 { this->SetBackLightAngle(angle[0], angle[1]); }
279 { this->SetBackLightAngle(x, this->BackLightAngle[1]); }
282 { this->SetBackLightAngle(this->BackLightAngle[0], x); }
284 vtkGetVectorMacro(BackLightAngle,
double, 2);
286 {
double ang[2]; this->GetBackLightAngle(ang);
return ang[0]; }
289 {
double ang[2]; this->GetBackLightAngle(ang);
return ang[1]; }
297 void RemoveLightsFromRenderer(
vtkRenderer *renderer);
308 static const
char *GetStringFromType(
int type);
313 static const
char *GetStringFromSubType(
int type);
320 static const
char *GetShortStringFromSubType(
int subtype);
326 static LightKitSubType GetSubType(LightKitType
type,
int i);
332 void WarmthToRGBI(
double w,
double rgb[3],
double& i);
333 void WarmthToRGB(
double w,
double rgb[3]);
334 void InitializeWarmthFunctions();
335 double WarmthToIntensity(
double w);
338 double KeyLightIntensity;
339 double KeyToFillRatio;
340 double KeyToHeadRatio;
341 double KeyToBackRatio;
344 double KeyLightWarmth;
345 double KeyLightAngle[2];
346 double KeyLightColor[3];
349 double FillLightWarmth;
350 double FillLightAngle[2];
351 double FillLightColor[3];
353 double BackLightWarmth;
354 double BackLightColor[3];
359 double BackLightAngle[2];
362 double HeadLightWarmth;
363 double HeadLightColor[3];
365 int MaintainLuminance;
371 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)
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)