44 #include "vtkRenderingCoreModule.h" 52 #define VTK_LIGHT_TYPE_HEADLIGHT 1 53 #define VTK_LIGHT_TYPE_CAMERA_LIGHT 2 54 #define VTK_LIGHT_TYPE_SCENE_LIGHT 3 95 vtkSetVector3Macro(AmbientColor,
double);
96 vtkGetVectorMacro(AmbientColor,
double,3);
97 vtkSetVector3Macro(DiffuseColor,
double);
98 vtkGetVectorMacro(DiffuseColor,
double,3);
99 vtkSetVector3Macro(SpecularColor,
double);
100 vtkGetVectorMacro(SpecularColor,
double,3);
101 void SetColor(
double,
double,
double);
113 vtkSetVector3Macro(Position,
double);
114 vtkGetVectorMacro(Position,
double,3);
126 vtkSetVector3Macro(FocalPoint,
double);
127 vtkGetVectorMacro(FocalPoint,
double,3);
135 vtkSetMacro(Intensity,
double);
136 vtkGetMacro(Intensity,
double);
161 vtkSetClampMacro(Exponent,
double,0.0,128.0);
162 vtkGetMacro(Exponent,
double);
173 vtkSetMacro(ConeAngle,
double);
174 vtkGetMacro(ConeAngle,
double);
182 vtkSetVector3Macro(AttenuationValues,
double);
183 vtkGetVectorMacro(AttenuationValues,
double,3);
201 void GetTransformedPosition(
double &a0,
double &a1,
double &a2);
202 void GetTransformedPosition(
double a[3]);
211 void GetTransformedFocalPoint(
double &a0,
double &a1,
double &a2);
212 void GetTransformedFocalPoint(
double a[3]);
223 void SetDirectionAngle(
double elevation,
double azimuth);
224 void SetDirectionAngle(const
double ang[2]) {
225 this->SetDirectionAngle(ang[0], ang[1]); };
252 virtual void SetLightType(
int);
253 vtkGetMacro(LightType,
int);
267 int LightTypeIsHeadlight();
268 int LightTypeIsSceneLight();
269 int LightTypeIsCameraLight();
279 vtkSetMacro(ShadowAttenuation,
float);
280 vtkGetMacro(ShadowAttenuation,
float);
295 double FocalPoint[3];
298 double AmbientColor[3];
299 double DiffuseColor[3];
300 double SpecularColor[3];
305 double AttenuationValues[3];
307 double TransformedFocalPointReturn[3];
308 double TransformedPositionReturn[3];
317 void operator=(
const vtkLight&) =
delete;
vtkInformation * Information
abstract base class for most VTK objects
represent and manipulate 4x4 transformation matrices
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMatrix4x4 * TransformMatrix
#define VTK_LIGHT_TYPE_SCENE_LIGHT
abstract specification for renderers
void SetLightTypeToHeadlight()
Set/Get the type of the light.
#define VTK_LIGHT_TYPE_CAMERA_LIGHT
#define VTK_LIGHT_TYPE_HEADLIGHT
void SetColor(const double a[3])
Set/Get the color of the light.
void SetLightTypeToCameraLight()
Set/Get the type of the light.
a simple class to control print indentation
a virtual light for 3D rendering
#define VTK_SIZEHINT(...)
void SetFocalPoint(const float *a)
Set/Get the point at which the light is shining.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void SetLightTypeToSceneLight()
Set/Get the type of the light.
virtual void Render(vtkRenderer *, int)
Abstract interface to renderer.
void SetPosition(const float *a)
Set/Get the position of the light.