56 #define VTK_LIGHT_TYPE_HEADLIGHT 1
57 #define VTK_LIGHT_TYPE_CAMERA_LIGHT 2
58 #define VTK_LIGHT_TYPE_SCENE_LIGHT 3
91 vtkSetVector3Macro(AmbientColor,
double);
92 vtkGetVectorMacro(AmbientColor,
double,3);
93 vtkSetVector3Macro(DiffuseColor,
double);
94 vtkGetVectorMacro(DiffuseColor,
double,3);
95 vtkSetVector3Macro(SpecularColor,
double);
96 vtkGetVectorMacro(SpecularColor,
double,3);
97 void SetColor(
double,
double,
double);
106 vtkSetVector3Macro(Position,
double);
107 vtkGetVectorMacro(Position,
double,3);
117 vtkSetVector3Macro(FocalPoint,
double);
118 vtkGetVectorMacro(FocalPoint,
double,3);
124 vtkSetMacro(Intensity,
double);
125 vtkGetMacro(Intensity,
double);
132 vtkBooleanMacro(
Switch,
int);
137 vtkSetMacro(Positional,
int);
138 vtkGetMacro(Positional,
int);
139 vtkBooleanMacro(Positional,
int);
144 vtkSetClampMacro(Exponent,
double,0.0,128.0);
145 vtkGetMacro(Exponent,
double);
153 vtkSetMacro(ConeAngle,
double);
154 vtkGetMacro(ConeAngle,
double);
160 vtkSetVector3Macro(AttenuationValues,
double);
161 vtkGetVectorMacro(AttenuationValues,
double,3);
175 void GetTransformedPosition(
double &a0,
double &a1,
double &a2);
176 void GetTransformedPosition(
double a[3]);
177 double *GetTransformedPosition();
183 void GetTransformedFocalPoint(
double &a0,
double &a1,
double &a2);
184 void GetTransformedFocalPoint(
double a[3]);
185 double *GetTransformedFocalPoint();
193 void SetDirectionAngle(
double elevation,
double azimuth);
195 this->SetDirectionAngle(ang[0], ang[1]); };
213 vtkSetMacro(LightType,
int);
214 vtkGetMacro(LightType,
int);
219 this->SetTransformMatrix(NULL);
228 int LightTypeIsHeadlight();
229 int LightTypeIsSceneLight();
230 int LightTypeIsCameraLight();
233 void ReadSelf(istream& is);
234 void WriteSelf(ostream& os);
240 double FocalPoint[3];
243 double AmbientColor[3];
244 double DiffuseColor[3];
245 double SpecularColor[3];
250 double AttenuationValues[3];
252 double TransformedFocalPointReturn[3];
253 double TransformedPositionReturn[3];
abstract base class for most VTK objects
represent and manipulate 4x4 transformation matrices
vtkMatrix4x4 * TransformMatrix
#define VTK_LIGHT_TYPE_SCENE_LIGHT
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
abstract specification for renderers
void SetLightTypeToHeadlight()
#define VTK_LIGHT_TYPE_CAMERA_LIGHT
#define VTK_LIGHT_TYPE_HEADLIGHT
void SetColor(const double a[3])
virtual void PrintSelf(ostream &os, vtkIndent indent)
void SetLightTypeToCameraLight()
a simple class to control print indentation
a virtual light for 3D rendering
void SetFocalPoint(const float *a)
void SetDirectionAngle(const double ang[2])
#define VTKRENDERINGCORE_EXPORT
void SetLightTypeToSceneLight()
virtual void Render(vtkRenderer *, int)
void SetPosition(const float *a)