40 #include "vtkRenderingCoreModule.h"
51 #define VTK_WIREFRAME 1
64 class vtkPropertyInternals;
113 vtkGetMacro(Lighting,
bool);
114 vtkSetMacro(Lighting,
bool);
115 vtkBooleanMacro(Lighting,
bool);
125 vtkGetMacro(RenderPointsAsSpheres,
bool);
126 vtkSetMacro(RenderPointsAsSpheres,
bool);
127 vtkBooleanMacro(RenderPointsAsSpheres,
bool);
138 vtkGetMacro(RenderLinesAsTubes,
bool);
139 vtkSetMacro(RenderLinesAsTubes,
bool);
140 vtkBooleanMacro(RenderLinesAsTubes,
bool);
148 vtkGetMacro(Interpolation,
int);
150 { this->SetInterpolation(
VTK_FLAT); }
155 const char *GetInterpolationAsString();
163 vtkGetMacro(Representation,
int);
170 const char *GetRepresentationAsString();
179 virtual void SetColor(
double r,
double g,
double b);
180 virtual void SetColor(
double a[3]);
182 void GetColor(
double rgb[3]);
183 void GetColor(
double &r,
double &g,
double &b);
190 vtkSetClampMacro(Ambient,
double, 0.0, 1.0);
191 vtkGetMacro(Ambient,
double);
198 vtkSetClampMacro(Diffuse,
double, 0.0, 1.0);
199 vtkGetMacro(Diffuse,
double);
206 vtkSetClampMacro(Specular,
double, 0.0, 1.0);
207 vtkGetMacro(Specular,
double);
214 vtkSetClampMacro(SpecularPower,
double, 0.0, 128.0);
215 vtkGetMacro(SpecularPower,
double);
223 vtkSetClampMacro(Opacity,
double, 0.0, 1.0);
224 vtkGetMacro(Opacity,
double);
234 vtkSetVector3Macro(AmbientColor,
double);
235 vtkGetVector3Macro(AmbientColor,
double);
242 vtkSetVector3Macro(DiffuseColor,
double);
243 vtkGetVector3Macro(DiffuseColor,
double);
250 vtkSetVector3Macro(SpecularColor,
double);
251 vtkGetVector3Macro(SpecularColor,
double);
269 vtkSetVector3Macro(EdgeColor,
double);
270 vtkGetVector3Macro(EdgeColor,
double);
288 vtkSetVector3Macro(VertexColor,
double);
289 vtkGetVector3Macro(VertexColor,
double);
298 vtkGetMacro(LineWidth,
float);
307 vtkSetMacro(LineStipplePattern,
int);
308 vtkGetMacro(LineStipplePattern,
int);
317 vtkSetClampMacro(LineStippleRepeatFactor,
int, 1,
VTK_INT_MAX);
318 vtkGetMacro(LineStippleRepeatFactor,
int);
327 vtkGetMacro(PointSize,
float);
356 vtkSetStringMacro(MaterialName);
357 vtkGetStringMacro(MaterialName);
385 virtual void AddShaderVariable(
const char *
name,
int numVars,
int *x);
386 virtual void AddShaderVariable(
const char *
name,
int numVars,
float *x);
387 virtual void AddShaderVariable(
const char *
name,
int numVars,
double *x);
395 { this->AddShaderVariable(
name, 1, &v); }
397 { this->AddShaderVariable(
name, 1, &v); }
399 { this->AddShaderVariable(
name, 1, &v); }
403 this->AddShaderVariable(
name, 2, v);
407 float v[2] = {v1, v2};
408 this->AddShaderVariable(
name, 2, v);
412 double v[2] = {v1, v2};
413 this->AddShaderVariable(
name, 2, v);
417 int v[3] = {v1, v2, v3};
418 this->AddShaderVariable(
name, 3, v);
422 float v[3] = {v1, v2, v3};
423 this->AddShaderVariable(
name, 3, v);
427 double v[3] = {v1, v2, v3};
428 this->AddShaderVariable(
name, 3, v);
452 VTK_LEGACY(
void SetTexture(
int unit,
vtkTexture* texture));
454 VTK_LEGACY(
void RemoveTexture(
int unit));
460 void RemoveTexture(
const char*
name);
465 void RemoveAllTextures();
470 int GetNumberOfTextures();
476 return this->Textures; }
483 virtual void ReleaseGraphicsResources(
vtkWindow *win);
486 #ifndef VTK_LEGACY_REMOVE
490 VTK_TEXTURE_UNIT_0 = 0,
516 static void ComputeCompositeColor(
double result[3],
517 double ambient,
const double ambient_color[3],
518 double diffuse,
const double diffuse_color[3],
519 double specular,
const double specular_color[3]);
522 double AmbientColor[3];
523 double DiffuseColor[3];
524 double SpecularColor[3];
526 double VertexColor[3];