represent surface properties of a geometric object
vtkProperty is an object that represents lighting and other surface properties of a geometric object. The primary properties that can be set are colors (overall, ambient, diffuse, specular, and edge color); specular power; opacity of the object; the representation of the object (points, wireframe, or surface); and the shading method to be used (flat, Gouraud, and Phong). Also, some special graphics features like backface properties can be set and manipulated with this object.
Construct object with object color, ambient color, diffuse color, specular color, and edge color white; ambient coefficient=0; diffuse coefficient=0; specular coefficient=0; specular power=1; Gouraud shading; and surface representation. Backface and frontface culling are off.
Set/Get lighting flag for an object. Initial value is true.
Set the shading interpolation method for an object.
Set interpolation to 0 => ‘FLAT’;
Set interpolation to 1 => ‘GOURAUD’;
Set interpolation to 2 => ‘PHONG’;
getInterpolationAsString() : String
Map the interpolation integer to the corresponding ShadingModel.
Set the color of the object. Has the side effect of setting the ambient diffuse and specular colors as well. This is basically a quick overall color setting method.
Set/Get the lighting coefficient.
Set/Get the diffuse lighting coefficient.
Set/Get the specular lighting coefficient.
Set/Get the specular power.
Set/Get the object’s opacity. 1.0 is totally opaque and 0.0 is completely transparent.
Set/Get the ambient surface color. Not all renderers support separate ambient and diffuse colors. From a physical standpoint it really doesn’t make too much sense to have both. For the rendering libraries that don’t support both, the diffuse color is used.
Set/Get the diffuse surface color.
Set/Get the specular surface color.
Turn on/off the visibility of edges. On some renderers it is possible to render the edges of geometric primitives separately from the interior.
Set/Get the color of primitive edges (if edge visibility is enabled).
Set/Get the width of a Line. The width is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.
Set/Get the diameter of a point. The size is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If backface culling is on, polygons facing away from camera are not drawn.
Turn on/off fast culling of polygons based on orientation of normal with respect to camera. If frontface culling is on, polygons facing towards camera are not drawn.