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];
void AddShaderVariable(const char *name, float v1, float v2, float v3)
Methods to provide to add shader variables from wrappers.
represents an object (geometry & properties) in a rendered scene
void SetInterpolationToPhong()
Set the shading interpolation method for an object.
abstract base class for most VTK objects
void AddShaderVariable(const char *name, double v)
Methods to provide to add shader variables from wrappers.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Represents an XML element and those nested inside.
vtkTypeBool EdgeVisibility
void AddShaderVariable(const char *name, double v1, double v2, double v3)
Methods to provide to add shader variables from wrappers.
represent surface properties of a geometric object
const char * GetRepresentationAsString()
Return the method of shading as a descriptive character string.
void SetInterpolationToFlat()
Set the shading interpolation method for an object.
void AddShaderVariable(const char *name, int v1, int v2, int v3)
Methods to provide to add shader variables from wrappers.
void AddShaderVariable(const char *name, float v)
Methods to provide to add shader variables from wrappers.
abstract specification for renderers
void AddShaderVariable(const char *name, double v1, double v2)
Methods to provide to add shader variables from wrappers.
std::map< std::string, vtkTexture * > MapOfTextures
void SetRepresentationToPoints()
Control the surface geometry representation for the object.
void SetInterpolationToGouraud()
Set the shading interpolation method for an object.
window superclass for vtkRenderWindow
void AddShaderVariable(const char *name, float v1, float v2)
Methods to provide to add shader variables from wrappers.
a simple class to control print indentation
void SetRepresentationToWireframe()
Control the surface geometry representation for the object.
handles properties associated with a texture map
void SetRepresentationToSurface()
Control the surface geometry representation for the object.
#define VTK_SIZEHINT(...)
void AddShaderVariable(const char *name, int v)
Methods to provide to add shader variables from wrappers.
std::map< std::string, vtkTexture * > & GetAllTextures()
Returns all the textures in this property and their names.
virtual void BackfaceRender(vtkActor *, vtkRenderer *)
This method renders the property as a backface property.
vtkTypeBool FrontfaceCulling
int LineStippleRepeatFactor
const char * GetInterpolationAsString()
Return the method of shading as a descriptive character string.
bool RenderPointsAsSpheres
vtkTypeBool VertexVisibility
void AddShaderVariable(const char *name, int v1, int v2)
Methods to provide to add shader variables from wrappers.
an adapter to pass generic vertex attributes to the rendering pipeline.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkInformation * Information
vtkTypeBool BackfaceCulling
The ShaderProgram uses one or more Shader objects.