 |
VTK
9.1.0
|
Go to the documentation of this file.
154 #include "vtkRenderingCoreModule.h"
161 #define VTK_LIGHT_TYPE_HEADLIGHT 1
162 #define VTK_LIGHT_TYPE_CAMERA_LIGHT 2
163 #define VTK_LIGHT_TYPE_SCENE_LIGHT 3
204 vtkSetVector3Macro(AmbientColor,
double);
205 vtkGetVectorMacro(AmbientColor,
double, 3);
206 vtkSetVector3Macro(DiffuseColor,
double);
207 vtkGetVectorMacro(DiffuseColor,
double, 3);
208 vtkSetVector3Macro(SpecularColor,
double);
209 vtkGetVectorMacro(SpecularColor,
double, 3);
235 vtkSetVector3Macro(FocalPoint,
double);
236 vtkGetVectorMacro(FocalPoint,
double, 3);
244 vtkSetMacro(Intensity,
double);
245 vtkGetMacro(Intensity,
double);
270 vtkSetClampMacro(Exponent,
double, 0.0, 128.0);
271 vtkGetMacro(Exponent,
double);
282 vtkSetMacro(ConeAngle,
double);
283 vtkGetMacro(ConeAngle,
double);
291 vtkSetVector3Macro(AttenuationValues,
double);
292 vtkGetVectorMacro(AttenuationValues,
double, 3);
320 void GetTransformedFocalPoint(
double& x,
double& y,
double& z);
321 void GetTransformedFocalPoint(
double a[3]);
328 void TransformPoint(
double a[3],
double b[3]);
333 void TransformVector(
double a[3],
double b[3]);
342 void SetDirectionAngle(
double elevation,
double azimuth);
371 vtkGetMacro(LightType,
int);
394 vtkSetMacro(ShadowAttenuation,
float);
395 vtkGetMacro(ShadowAttenuation,
float);
410 double FocalPoint[3];
413 double AmbientColor[3];
414 double DiffuseColor[3];
415 double SpecularColor[3];
420 double AttenuationValues[3];
422 double TransformedFocalPointReturn[3];
423 double TransformedPositionReturn[3];
432 void operator=(
const vtkLight&) =
delete;
virtual void SetLightType(int)
Set/Get the type of the light.
int LightTypeIsHeadlight()
Query the type of the light.
void SetLightTypeToHeadlight()
Set/Get the type of the light.
a virtual light for 3D rendering
void SetLightTypeToSceneLight()
Set/Get the type of the light.
void DeepCopy(vtkLight *light)
Perform deep copy of this light.
double * GetTransformedPosition()
Get the position of the light, modified by the transformation matrix (if it exists).
void SetColor(const double a[3])
Set/Get the color of the light.
virtual void SetTransformMatrix(vtkMatrix4x4 *)
Set/Get the light's transformation matrix.
void SetColor(double, double, double)
Set/Get the color of the light.
abstract base class for most VTK objects
vtkMatrix4x4 * TransformMatrix
static vtkLight * New()
Create a light with the focal point at the origin and its position set to (0,0,1).
void SetFocalPoint(const float *a)
Set/Get the point at which the light is shining.
int LightTypeIsCameraLight()
Query the type of the light.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_LIGHT_TYPE_CAMERA_LIGHT
virtual void SetInformation(vtkInformation *)
Set/Get the information object associated with the light.
#define VTK_SIZEHINT(...)
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
void GetTransformedPosition(double &x, double &y, double &z)
Get the position of the light, modified by the transformation matrix (if it exists).
int LightTypeIsSceneLight()
Query the type of the light.
virtual void Render(vtkRenderer *, int)
Abstract interface to renderer.
struct Position_t Position
void SetLightTypeToCameraLight()
Set/Get the type of the light.
abstract specification for renderers
void SetPosition(const float *a)
Set/Get the position of the light.
#define VTK_LIGHT_TYPE_HEADLIGHT
#define VTK_LIGHT_TYPE_SCENE_LIGHT
virtual vtkLight * ShallowClone()
Create a new light object with the same light parameters than the current object (any ivar from the s...
vtkInformation * Information
void GetTransformedPosition(double a[3])
Get the position of the light, modified by the transformation matrix (if it exists).
void SetDirectionAngle(const double ang[2])
Set the position and focal point of a light based on elevation and azimuth.