45 #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);
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);
211 void GetTransformedFocalPoint(
double& a0,
double& a1,
double& a2);
212 void GetTransformedFocalPoint(
double a[3]);
219 void TransformPoint(
double a[3],
double b[3]);
224 void TransformVector(
double a[3],
double b[3]);
233 void SetDirectionAngle(
double elevation,
double azimuth);
262 vtkGetMacro(LightType,
int);
285 vtkSetMacro(ShadowAttenuation,
float);
286 vtkGetMacro(ShadowAttenuation,
float);
301 double FocalPoint[3];
304 double AmbientColor[3];
305 double DiffuseColor[3];
306 double SpecularColor[3];
311 double AttenuationValues[3];
313 double TransformedFocalPointReturn[3];
314 double TransformedPositionReturn[3];
323 void operator=(
const vtkLight&) =
delete;
a simple class to control print indentation
a virtual light for 3D rendering
void SetDirectionAngle(const double ang[2])
int LightTypeIsHeadlight()
Query the type of the light.
static vtkLight * New()
Create a light with the focal point at the origin and its position set to (0,0,1).
double * GetTransformedPosition()
void SetLightTypeToHeadlight()
virtual void SetLightType(int)
Set/Get the type of the light.
virtual void SetTransformMatrix(vtkMatrix4x4 *)
Set/Get the light's transformation matrix.
void GetTransformedPosition(double &a0, double &a1, double &a2)
Get the position of the light, modified by the transformation matrix (if it exists).
void SetFocalPoint(const float *a)
void SetColor(const double a[3])
int LightTypeIsSceneLight()
void SetPosition(const float *a)
vtkInformation * Information
virtual void SetInformation(vtkInformation *)
void SetLightTypeToSceneLight()
vtkMatrix4x4 * TransformMatrix
void SetLightTypeToCameraLight()
virtual void Render(vtkRenderer *, int)
Abstract interface to renderer.
void DeepCopy(vtkLight *light)
Perform deep copy of this light.
virtual vtkLight * ShallowClone()
Create a new light object with the same light parameters than the current object (any ivar from the s...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetColor(double, double, double)
void GetTransformedPosition(double a[3])
int LightTypeIsCameraLight()
represent and manipulate 4x4 transformation matrices
abstract base class for most VTK objects
abstract specification for renderers
#define VTK_LIGHT_TYPE_SCENE_LIGHT
#define VTK_LIGHT_TYPE_CAMERA_LIGHT
#define VTK_LIGHT_TYPE_HEADLIGHT
#define VTK_SIZEHINT(...)