36 #ifndef __vtkProperty_h
37 #define __vtkProperty_h
48 #define VTK_WIREFRAME 1
60 class vtkPropertyInternals;
102 vtkGetMacro(Lighting,
bool);
103 vtkSetMacro(Lighting,
bool);
104 vtkBooleanMacro(Lighting,
bool);
110 vtkGetMacro(Interpolation,
int);
114 const char *GetInterpolationAsString();
120 vtkGetMacro(Representation,
int);
125 const char *GetRepresentationAsString();
132 void SetColor(
double r,
double g,
double b);
135 void GetColor(
double rgb[3]);
136 void GetColor(
double &r,
double &g,
double &b);
141 vtkSetClampMacro(Ambient,
double,0.0,1.0);
142 vtkGetMacro(Ambient,
double);
147 vtkSetClampMacro(Diffuse,
double,0.0,1.0);
148 vtkGetMacro(Diffuse,
double);
153 vtkSetClampMacro(Specular,
double,0.0,1.0);
154 vtkGetMacro(Specular,
double);
159 vtkSetClampMacro(SpecularPower,
double,0.0,128.0);
160 vtkGetMacro(SpecularPower,
double);
166 vtkSetClampMacro(Opacity,
double,0.0,1.0);
167 vtkGetMacro(Opacity,
double);
175 vtkSetVector3Macro(AmbientColor,
double);
176 vtkGetVector3Macro(AmbientColor,
double);
181 vtkSetVector3Macro(DiffuseColor,
double);
182 vtkGetVector3Macro(DiffuseColor,
double);
187 vtkSetVector3Macro(SpecularColor,
double);
188 vtkGetVector3Macro(SpecularColor,
double);
195 vtkGetMacro(EdgeVisibility,
int);
196 vtkSetMacro(EdgeVisibility,
int);
197 vtkBooleanMacro(EdgeVisibility,
int);
202 vtkSetVector3Macro(EdgeColor,
double);
203 vtkGetVector3Macro(EdgeColor,
double);
210 vtkGetMacro(LineWidth,
float);
217 vtkSetMacro(LineStipplePattern,
int);
218 vtkGetMacro(LineStipplePattern,
int);
226 vtkGetMacro(LineStippleRepeatFactor,
int);
233 vtkGetMacro(PointSize,
float);
240 vtkGetMacro(BackfaceCulling,
int);
241 vtkSetMacro(BackfaceCulling,
int);
242 vtkBooleanMacro(BackfaceCulling,
int);
249 vtkGetMacro(FrontfaceCulling,
int);
250 vtkSetMacro(FrontfaceCulling,
int);
251 vtkBooleanMacro(FrontfaceCulling,
int);
262 vtkGetStringMacro(MaterialName);
267 void LoadMaterial(
const char*
name);
270 void LoadMaterialFromString(
const char* materialxml);
278 vtkSetMacro(Shading,
int);
279 vtkGetMacro(Shading,
int);
280 vtkBooleanMacro(Shading,
int);
297 virtual void AddShaderVariable(
const char *
name,
int numVars,
int *x);
298 virtual void AddShaderVariable(
const char *
name,
int numVars,
float *x);
299 virtual void AddShaderVariable(
const char *
name,
int numVars,
double *x);
304 void AddShaderVariable(
const char*
name,
int v)
306 this->AddShaderVariable(name, 1, &v);
308 void AddShaderVariable(
const char*
name,
float v)
310 this->AddShaderVariable(name, 1, &v);
312 void AddShaderVariable(
const char*
name,
double v)
314 this->AddShaderVariable(name, 1, &v);
316 void AddShaderVariable(
const char*
name,
int v1,
int v2)
321 this->AddShaderVariable(name, 2, v);
323 void AddShaderVariable(
const char*
name,
float v1,
float v2)
328 this->AddShaderVariable(name, 2, v);
330 void AddShaderVariable(
const char*
name,
double v1,
double v2)
335 this->AddShaderVariable(name, 2, v);
337 void AddShaderVariable(
const char*
name,
int v1,
int v2,
int v3)
343 this->AddShaderVariable(name, 3, v);
345 void AddShaderVariable(
const char*
name,
float v1,
float v2,
float v3)
351 this->AddShaderVariable(name, 3, v);
353 void AddShaderVariable(
const char*
name,
double v1,
double v2,
double v3)
359 this->AddShaderVariable(name, 3, v);
377 void SetTexture(
int unit,
vtkTexture* texture);
379 void RemoveTexture(
int unit);
385 void RemoveTexture(
const char*
name);
388 void RemoveAllTextures();
391 int GetNumberOfTextures();
396 virtual void ReleaseGraphicsResources(
vtkWindow *win);
404 VTK_TEXTURE_UNIT_0 = 0,
430 double AmbientColor[3];
431 double DiffuseColor[3];
432 double SpecularColor[3];
453 vtkSetStringMacro(MaterialName);
462 virtual void ReadFrameworkMaterial();
473 int GetTextureUnitAtIndex(
int index);
474 int GetTextureUnit(
const char*
name);