#include <vtkProperty.h>
Inheritance diagram for vtkProperty:
Public Methods | |
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 (float r, float g, float b) |
void | SetColor (float a[3]) |
float * | GetColor () |
void | GetColor (float rgb[3]) |
virtual void | SetAmbient (float) |
virtual float | GetAmbient () |
virtual void | SetDiffuse (float) |
virtual float | GetDiffuse () |
virtual void | SetSpecular (float) |
virtual float | GetSpecular () |
virtual void | SetSpecularPower (float) |
virtual float | GetSpecularPower () |
virtual void | SetOpacity (float) |
virtual float | GetOpacity () |
virtual void | SetAmbientColor (float, float, float) |
virtual void | SetAmbientColor (float[3]) |
virtual float * | GetAmbientColor () |
virtual void | GetAmbientColor (float data[3]) |
virtual void | SetDiffuseColor (float, float, float) |
virtual void | SetDiffuseColor (float[3]) |
virtual float * | GetDiffuseColor () |
virtual void | GetDiffuseColor (float data[3]) |
virtual void | SetSpecularColor (float, float, float) |
virtual void | SetSpecularColor (float[3]) |
virtual float * | GetSpecularColor () |
virtual void | GetSpecularColor (float data[3]) |
virtual int | GetEdgeVisibility () |
virtual void | SetEdgeVisibility (int) |
virtual void | EdgeVisibilityOn () |
virtual void | EdgeVisibilityOff () |
virtual void | SetEdgeColor (float, float, float) |
virtual void | SetEdgeColor (float[3]) |
virtual float * | GetEdgeColor () |
virtual void | GetEdgeColor (float data[3]) |
virtual void | SetLineWidth (float) |
virtual float | GetLineWidth () |
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 Methods | |
int | IsTypeOf (const char *type) |
vtkProperty * | SafeDownCast (vtkObject *o) |
vtkProperty * | New () |
Protected Methods | |
vtkProperty () | |
~vtkProperty () | |
vtkProperty (const vtkProperty &) | |
void | operator= (const vtkProperty &) |
Protected Attributes | |
float | Color [3] |
float | AmbientColor [3] |
float | DiffuseColor [3] |
float | SpecularColor [3] |
float | EdgeColor [3] |
float | Ambient |
float | Diffuse |
float | Specular |
float | SpecularPower |
float | Opacity |
float | PointSize |
float | LineWidth |
int | Interpolation |
int | Representation |
int | EdgeVisibility |
int | BackfaceCulling |
int | FrontfaceCulling |
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.
|
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. |
|
Assign one property to another. |
|
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. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkRIBProperty. |
|
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 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. |
|
Return the method of shading as a descriptive character string. |
|
Return the method of shading as a descriptive character string. |
|
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 vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkRIBProperty. |
|
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 vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkRIBProperty. |
|
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. |
|
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. |
|
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. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkRIBProperty. |
|
Set/Get the ambient lighting coefficient. |
|
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 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 diffuse lighting coefficient. |
|
Set/Get the diffuse surface color. |
|
Set/Get the color of primitive edges (if edge visibility is enabled). |
|
Set the shading interpolation method for an object. |
|
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 object's opacity. 1.0 is totally opaque and 0.0 is completely transparent. |
|
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. |
|
Control the surface geometry representation for the object. |
|
Set/Get the specular lighting coefficient. |
|
Set/Get the specular surface color. |
|
Set/Get the specular power. |