50 #include "vtkRenderingCoreModule.h"
57 #define VTK_LIGHT_TYPE_HEADLIGHT 1
58 #define VTK_LIGHT_TYPE_CAMERA_LIGHT 2
59 #define VTK_LIGHT_TYPE_SCENE_LIGHT 3
100 vtkSetVector3Macro(AmbientColor,
double);
101 vtkGetVectorMacro(AmbientColor,
double,3);
102 vtkSetVector3Macro(DiffuseColor,
double);
103 vtkGetVectorMacro(DiffuseColor,
double,3);
104 vtkSetVector3Macro(SpecularColor,
double);
105 vtkGetVectorMacro(SpecularColor,
double,3);
118 vtkSetVector3Macro(Position,
double);
119 vtkGetVectorMacro(Position,
double,3);
131 vtkSetVector3Macro(FocalPoint,
double);
132 vtkGetVectorMacro(FocalPoint,
double,3);
141 vtkGetMacro(Intensity,
double);
158 vtkGetMacro(Positional,
int);
166 vtkSetClampMacro(Exponent,
double,0.0,128.0);
167 vtkGetMacro(Exponent,
double);
179 vtkGetMacro(ConeAngle,
double);
187 vtkSetVector3Macro(AttenuationValues,
double);
188 vtkGetVectorMacro(AttenuationValues,
double,3);
230 this->SetDirectionAngle(ang[0], ang[1]); };
257 vtkGetMacro(LightType,
int);
262 this->SetTransformMatrix(NULL);
289 vtkGetMacro(ShadowAttenuation,
float);
297 double FocalPoint[3];
300 double AmbientColor[3];
301 double DiffuseColor[3];
302 double SpecularColor[3];
307 double AttenuationValues[3];
309 double TransformedFocalPointReturn[3];
310 double TransformedPositionReturn[3];
316 void operator=(
const vtkLight&) VTK_DELETE_FUNCTION;
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.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkLight * New()
Create a light with the focal point at the origin and its position set to (0,0,1).
double * GetTransformedPosition()
void GetTransformedFocalPoint(double &a0, double &a1, double &a2)
Get the focal point of the light, modified by the transformation matrix (if it exists).
void SetLightTypeToHeadlight()
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 ReadSelf(istream &is)
void SetPosition(const float *a)
void SetDirectionAngle(double elevation, double azimuth)
Set the position and focal point of a light based on elevation and azimuth.
double * GetTransformedFocalPoint()
void SetLightTypeToSceneLight()
void WriteSelf(ostream &os)
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 GetTransformedFocalPoint(double a[3])
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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.