#include <vtkProperty.h>
Inheritance diagram for vtkProperty:
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.
Definition at line 54 of file vtkProperty.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | DeepCopy (vtkProperty *p) |
virtual void | Render (vtkActor *, vtkRenderer *) |
virtual void | BackfaceRender (vtkActor *, vtkRenderer *) |
virtual void | SetInterpolation (int) |
virtual int | GetInterpolation () |
void | SetInterpolationToFlat () |
void | SetInterpolationToGouraud () |
void | SetInterpolationToPhong () |
char * | GetInterpolationAsString () |
virtual void | SetRepresentation (int) |
virtual int | GetRepresentation () |
void | SetRepresentationToPoints () |
void | SetRepresentationToWireframe () |
void | SetRepresentationToSurface () |
char * | GetRepresentationAsString () |
void | SetColor (double r, double g, double b) |
void | SetColor (double a[3]) |
double * | GetColor () |
void | GetColor (double rgb[3]) |
virtual void | SetAmbient (double) |
virtual double | GetAmbient () |
virtual void | SetDiffuse (double) |
virtual double | GetDiffuse () |
virtual void | SetSpecular (double) |
virtual double | GetSpecular () |
virtual void | SetSpecularPower (double) |
virtual double | GetSpecularPower () |
virtual void | SetOpacity (double) |
virtual double | GetOpacity () |
virtual void | SetAmbientColor (double, double, double) |
virtual void | SetAmbientColor (double[3]) |
virtual double * | GetAmbientColor () |
virtual void | GetAmbientColor (double data[3]) |
virtual void | SetDiffuseColor (double, double, double) |
virtual void | SetDiffuseColor (double[3]) |
virtual double * | GetDiffuseColor () |
virtual void | GetDiffuseColor (double data[3]) |
virtual void | SetSpecularColor (double, double, double) |
virtual void | SetSpecularColor (double[3]) |
virtual double * | GetSpecularColor () |
virtual void | GetSpecularColor (double data[3]) |
virtual int | GetEdgeVisibility () |
virtual void | SetEdgeVisibility (int) |
virtual void | EdgeVisibilityOn () |
virtual void | EdgeVisibilityOff () |
virtual void | SetEdgeColor (double, double, double) |
virtual void | SetEdgeColor (double[3]) |
virtual double * | GetEdgeColor () |
virtual void | GetEdgeColor (double data[3]) |
virtual void | SetLineWidth (float) |
virtual float | GetLineWidth () |
virtual void | SetLineStipplePattern (int) |
virtual int | GetLineStipplePattern () |
virtual void | SetLineStippleRepeatFactor (int) |
virtual int | GetLineStippleRepeatFactor () |
virtual void | SetPointSize (float) |
virtual float | GetPointSize () |
virtual int | GetBackfaceCulling () |
virtual void | SetBackfaceCulling (int) |
virtual void | BackfaceCullingOn () |
virtual void | BackfaceCullingOff () |
virtual int | GetFrontfaceCulling () |
virtual void | SetFrontfaceCulling (int) |
virtual void | FrontfaceCullingOn () |
virtual void | FrontfaceCullingOff () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkProperty * | SafeDownCast (vtkObject *o) |
static vtkProperty * | New () |
Protected Member Functions | |
vtkProperty () | |
~vtkProperty () | |
Protected Attributes | |
double | Color [3] |
double | AmbientColor [3] |
double | DiffuseColor [3] |
double | SpecularColor [3] |
double | EdgeColor [3] |
double | Ambient |
double | Diffuse |
double | Specular |
double | SpecularPower |
double | Opacity |
float | PointSize |
float | LineWidth |
int | LineStipplePattern |
int | LineStippleRepeatFactor |
int | Interpolation |
int | Representation |
int | EdgeVisibility |
int | BackfaceCulling |
int | FrontfaceCulling |
|
Reimplemented from vtkObject. Reimplemented in vtkRIBProperty, vtkMesaProperty, and vtkOpenGLProperty. Definition at line 57 of file vtkProperty.h. |
|
|
|
Definition at line 232 of file vtkProperty.h. |
|
Reimplemented from vtkObject. Reimplemented in vtkRIBProperty, vtkMesaProperty, and vtkOpenGLProperty. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkRIBProperty, vtkMesaProperty, and vtkOpenGLProperty. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkRIBProperty, vtkMesaProperty, and vtkOpenGLProperty. |
|
Reimplemented from vtkObject. Reimplemented in vtkRIBProperty, vtkMesaProperty, and vtkOpenGLProperty. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkObject. Reimplemented in vtkRIBProperty, vtkMesaProperty, and vtkOpenGLProperty. |
|
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. Reimplemented from vtkObject. Reimplemented in vtkRIBProperty, vtkMesaProperty, and vtkOpenGLProperty. |
|
Assign one property to another. |
|
This method causes the property to set up whatever is required for its instance variables. This is actually handled by a subclass of vtkProperty, which is created automatically. This method includes the invoking actor as an argument which can be used by property devices that require the actor. Reimplemented in vtkRIBProperty, vtkMesaProperty, and vtkOpenGLProperty. Definition at line 75 of file vtkProperty.h. |
|
This method renders the property as a backface property. TwoSidedLighting must be turned off to see any backface properties. Note that only colors and opacity are used for backface properties. Other properties such as Representation, Culling are specified by the Property. Reimplemented in vtkMesaProperty, and vtkOpenGLProperty. Definition at line 82 of file vtkProperty.h. |
|
Set the shading interpolation method for an object. |
|
This method renders the property as a backface property. TwoSidedLighting must be turned off to see any backface properties. Note that only colors and opacity are used for backface properties. Other properties such as Representation, Culling are specified by the Property. |
|
This method renders the property as a backface property. TwoSidedLighting must be turned off to see any backface properties. Note that only colors and opacity are used for backface properties. Other properties such as Representation, Culling are specified by the Property. Definition at line 88 of file vtkProperty.h. References VTK_FLAT. |
|
This method renders the property as a backface property. TwoSidedLighting must be turned off to see any backface properties. Note that only colors and opacity are used for backface properties. Other properties such as Representation, Culling are specified by the Property. Definition at line 89 of file vtkProperty.h. References VTK_GOURAUD. |
|
This method renders the property as a backface property. TwoSidedLighting must be turned off to see any backface properties. Note that only colors and opacity are used for backface properties. Other properties such as Representation, Culling are specified by the Property. Definition at line 90 of file vtkProperty.h. References VTK_PHONG. |
|
Return the method of shading as a descriptive character string. Definition at line 259 of file vtkProperty.h. References VTK_FLAT, and VTK_GOURAUD. |
|
Control the surface geometry representation for the object. |
|
Control the surface geometry representation for the object. |
|
Control the surface geometry representation for the object. Definition at line 98 of file vtkProperty.h. References VTK_POINTS. |
|
Control the surface geometry representation for the object. Definition at line 99 of file vtkProperty.h. References VTK_WIREFRAME. |
|
Control the surface geometry representation for the object. Definition at line 101 of file vtkProperty.h. References VTK_SURFACE. |
|
Return the method of shading as a descriptive character string. Definition at line 277 of file vtkProperty.h. References VTK_POINTS, and VTK_WIREFRAME. |
|
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 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. Definition at line 110 of file vtkProperty.h. |
|
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 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 ambient lighting coefficient. |
|
Set/Get the ambient lighting coefficient. |
|
Set/Get the diffuse lighting coefficient. |
|
Set/Get the diffuse lighting coefficient. |
|
Set/Get the specular lighting coefficient. |
|
Set/Get the specular lighting coefficient. |
|
Set/Get the specular power. |
|
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 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 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 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 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 diffuse surface color. |
|
Set/Get the diffuse surface color. |
|
Set/Get the diffuse surface color. |
|
Set/Get the specular surface color. |
|
Set/Get the specular surface color. |
|
Set/Get the specular 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. |
|
Turn on/off the visibility of edges. On some renderers it is possible to render the edges of geometric primitives separately from the interior. |
|
Turn on/off the visibility of edges. On some renderers it is possible to render the edges of geometric primitives separately from the interior. |
|
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 color of primitive edges (if edge visibility is enabled). |
|
Set/Get the color of primitive edges (if edge visibility is enabled). |
|
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 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 stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). This is only implemented for OpenGL. The default is 0xFFFF. |
|
Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). This is only implemented for OpenGL. The default is 0xFFFF. |
|
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. This is only implemented for OpenGL. The default is 1. |
|
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. This is only implemented for OpenGL. The default is 1. |
|
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. |
|
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 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 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 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. |
|
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. |
|
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. |
|
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. |
|
Definition at line 232 of file vtkProperty.h. |
|
Definition at line 235 of file vtkProperty.h. |
|
Definition at line 236 of file vtkProperty.h. |
|
Definition at line 237 of file vtkProperty.h. |
|
Definition at line 238 of file vtkProperty.h. |
|
Definition at line 239 of file vtkProperty.h. |
|
Definition at line 240 of file vtkProperty.h. |
|
Definition at line 241 of file vtkProperty.h. |
|
Definition at line 242 of file vtkProperty.h. |
|
Definition at line 243 of file vtkProperty.h. |
|
Definition at line 244 of file vtkProperty.h. |
|
Definition at line 245 of file vtkProperty.h. |
|
Definition at line 246 of file vtkProperty.h. |
|
Definition at line 247 of file vtkProperty.h. |
|
Definition at line 248 of file vtkProperty.h. |
|
Definition at line 249 of file vtkProperty.h. |
|
Definition at line 250 of file vtkProperty.h. |
|
Definition at line 251 of file vtkProperty.h. |
|
Definition at line 252 of file vtkProperty.h. |