34 #include "vtkRenderingCoreModule.h"
45 #define VTK_WIREFRAME 1
58 class vtkPropertyInternals;
107 vtkGetMacro(Lighting,
bool);
108 vtkSetMacro(Lighting,
bool);
109 vtkBooleanMacro(Lighting,
bool);
119 vtkGetMacro(RenderPointsAsSpheres,
bool);
120 vtkSetMacro(RenderPointsAsSpheres,
bool);
121 vtkBooleanMacro(RenderPointsAsSpheres,
bool);
132 vtkGetMacro(RenderLinesAsTubes,
bool);
133 vtkSetMacro(RenderLinesAsTubes,
bool);
134 vtkBooleanMacro(RenderLinesAsTubes,
bool);
142 vtkGetMacro(Interpolation,
int);
144 { this->SetInterpolation(
VTK_FLAT); }
149 const char *GetInterpolationAsString();
157 vtkGetMacro(Representation,
int);
164 const char *GetRepresentationAsString();
173 virtual void SetColor(
double r,
double g,
double b);
174 virtual void SetColor(
double a[3]);
176 void GetColor(
double rgb[3]);
177 void GetColor(
double &r,
double &g,
double &b);
184 vtkSetClampMacro(Ambient,
double, 0.0, 1.0);
185 vtkGetMacro(Ambient,
double);
192 vtkSetClampMacro(Diffuse,
double, 0.0, 1.0);
193 vtkGetMacro(Diffuse,
double);
200 vtkSetClampMacro(Specular,
double, 0.0, 1.0);
201 vtkGetMacro(Specular,
double);
208 vtkSetClampMacro(SpecularPower,
double, 0.0, 128.0);
209 vtkGetMacro(SpecularPower,
double);
217 vtkSetClampMacro(Opacity,
double, 0.0, 1.0);
218 vtkGetMacro(Opacity,
double);
228 vtkSetVector3Macro(AmbientColor,
double);
229 vtkGetVector3Macro(AmbientColor,
double);
236 vtkSetVector3Macro(DiffuseColor,
double);
237 vtkGetVector3Macro(DiffuseColor,
double);
244 vtkSetVector3Macro(SpecularColor,
double);
245 vtkGetVector3Macro(SpecularColor,
double);
263 vtkSetVector3Macro(EdgeColor,
double);
264 vtkGetVector3Macro(EdgeColor,
double);
282 vtkSetVector3Macro(VertexColor,
double);
283 vtkGetVector3Macro(VertexColor,
double);
292 vtkGetMacro(LineWidth,
float);
301 vtkSetMacro(LineStipplePattern,
int);
302 vtkGetMacro(LineStipplePattern,
int);
311 vtkSetClampMacro(LineStippleRepeatFactor,
int, 1,
VTK_INT_MAX);
312 vtkGetMacro(LineStippleRepeatFactor,
int);
321 vtkGetMacro(PointSize,
float);
350 vtkSetStringMacro(MaterialName);
351 vtkGetStringMacro(MaterialName);
379 virtual void AddShaderVariable(
const char *
name,
int numVars,
int *x);
380 virtual void AddShaderVariable(
const char *
name,
int numVars,
float *x);
381 virtual void AddShaderVariable(
const char *
name,
int numVars,
double *x);
389 { this->AddShaderVariable(
name, 1, &v); }
391 { this->AddShaderVariable(
name, 1, &v); }
393 { this->AddShaderVariable(
name, 1, &v); }
397 this->AddShaderVariable(
name, 2, v);
401 float v[2] = {v1, v2};
402 this->AddShaderVariable(
name, 2, v);
406 double v[2] = {v1, v2};
407 this->AddShaderVariable(
name, 2, v);
411 int v[3] = {v1, v2, v3};
412 this->AddShaderVariable(
name, 3, v);
416 float v[3] = {v1, v2, v3};
417 this->AddShaderVariable(
name, 3, v);
421 double v[3] = {v1, v2, v3};
422 this->AddShaderVariable(
name, 3, v);
446 VTK_LEGACY(
void SetTexture(
int unit,
vtkTexture* texture));
448 VTK_LEGACY(
void RemoveTexture(
int unit));
454 void RemoveTexture(
const char*
name);
459 void RemoveAllTextures();
464 int GetNumberOfTextures();
470 return this->Textures; }
477 virtual void ReleaseGraphicsResources(
vtkWindow *win);
480 #ifndef VTK_LEGACY_REMOVE
484 VTK_TEXTURE_UNIT_0 = 0,
510 static void ComputeCompositeColor(
double result[3],
511 double ambient,
const double ambient_color[3],
512 double diffuse,
const double diffuse_color[3],
513 double specular,
const double specular_color[3]);
516 double AmbientColor[3];
517 double DiffuseColor[3];
518 double SpecularColor[3];
520 double VertexColor[3];