94 #ifndef __vtkLightKit_h
95 #define __vtkLightKit_h
228 void SetKeyLightAngle(
double elevation,
double azimuth);
230 { this->SetKeyLightAngle(angle[0], angle[1]); }
234 { this->SetKeyLightAngle(x, this->KeyLightAngle[1]); }
237 { this->SetKeyLightAngle(this->KeyLightAngle[0], x); }
241 {
double ang[2]; this->GetKeyLightAngle(ang);
return ang[0]; }
244 {
double ang[2]; this->GetKeyLightAngle(ang);
return ang[1]; }
246 void SetFillLightAngle(
double elevation,
double azimuth);
248 { this->SetFillLightAngle(angle[0], angle[1]); }
251 { this->SetFillLightAngle(x, this->FillLightAngle[1]); }
254 { this->SetFillLightAngle(this->FillLightAngle[0], x); }
258 double ang[2]; this->GetFillLightAngle(ang);
return ang[0]; }
261 {
double ang[2]; this->GetFillLightAngle(ang);
return ang[1]; }
263 void SetBackLightAngle(
double elevation,
double azimuth);
265 { this->SetBackLightAngle(angle[0], angle[1]); }
268 { this->SetBackLightAngle(x, this->BackLightAngle[1]); }
271 { this->SetBackLightAngle(this->BackLightAngle[0], x); }
275 {
double ang[2]; this->GetBackLightAngle(ang);
return ang[0]; }
278 {
double ang[2]; this->GetBackLightAngle(ang);
return ang[1]; }
284 void RemoveLightsFromRenderer(
vtkRenderer *renderer);
293 static const char *GetStringFromType(
int type);
296 static const char *GetStringFromSubType(
int type);
301 static const char *GetShortStringFromSubType(
int subtype);
305 static LightKitSubType GetSubType(LightKitType
type,
int i);
311 void WarmthToRGBI(
double w,
double rgb[3],
double& i);
312 void WarmthToRGB(
double w,
double rgb[3]);
313 void InitializeWarmthFunctions();
314 double WarmthToIntensity(
double w);
324 double KeyLightAngle[2];
325 double KeyLightColor[3];
329 double FillLightAngle[2];
330 double FillLightColor[3];
333 double BackLightColor[3];
338 double BackLightAngle[2];
342 double HeadLightColor[3];
void SetFillLightAngle(double angle[2])
GLuint GLuint GLsizei GLenum type
abstract base class for most VTK objects
double GetFillLightAzimuth()
Defines a 1D piecewise function.
double GetBackLightAzimuth()
void SetBackLightAzimuth(double x)
#define vtkGetMacro(name, type)
void SetBackLightElevation(double x)
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
abstract specification for renderers
#define vtkSetClampMacro(name, type, min, max)
a simple but quality lighting kit
void SetKeyLightAngle(double angle[2])
#define vtkTypeMacro(thisClass, superclass)
GLint GLint GLint GLint GLint x
GLubyte GLubyte GLubyte GLubyte w
virtual void PrintSelf(ostream &os, vtkIndent indent)
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()
void SetFillLightElevation(double x)
void SetBackLightAngle(double angle[2])
#define VTKRENDERINGCORE_EXPORT
#define vtkBooleanMacro(name, type)
#define vtkGetVectorMacro(name, type, count)
double GetFillLightElevation()
#define vtkSetMacro(name, type)
void SetFillLightAzimuth(double x)