VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkProperty Class Reference

represent surface properties of a geometric object More...

#include <vtkProperty.h>

Inheritance diagram for vtkProperty:
[legend]
Collaboration diagram for vtkProperty:
[legend]

Public Types

enum  VTKTextureUnit {
  VTK_TEXTURE_UNIT_0 = 0, VTK_TEXTURE_UNIT_1, VTK_TEXTURE_UNIT_2, VTK_TEXTURE_UNIT_3,
  VTK_TEXTURE_UNIT_4, VTK_TEXTURE_UNIT_5, VTK_TEXTURE_UNIT_6, VTK_TEXTURE_UNIT_7
}
 
typedef vtkObject Superclass
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkPropertyNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
void DeepCopy (vtkProperty *p)
 Assign one property to another. More...
 
virtual void Render (vtkActor *, vtkRenderer *)
 This method causes the property to set up whatever is required for its instance variables. More...
 
virtual void BackfaceRender (vtkActor *, vtkRenderer *)
 This method renders the property as a backface property. More...
 
virtual void PostRender (vtkActor *, vtkRenderer *)
 This method is called after the actor has been rendered. More...
 
virtual bool GetLighting ()
 Set/Get lighting flag for an object. More...
 
virtual void SetLighting (bool)
 
virtual void LightingOn ()
 
virtual void LightingOff ()
 
virtual bool GetRenderPointsAsSpheres ()
 Set/Get rendering of points as spheres. More...
 
virtual void SetRenderPointsAsSpheres (bool)
 
virtual void RenderPointsAsSpheresOn ()
 
virtual void RenderPointsAsSpheresOff ()
 
virtual bool GetRenderLinesAsTubes ()
 Set/Get rendering of lines as tubes. More...
 
virtual void SetRenderLinesAsTubes (bool)
 
virtual void RenderLinesAsTubesOn ()
 
virtual void RenderLinesAsTubesOff ()
 
virtual void SetInterpolation (int)
 Set the shading interpolation method for an object. More...
 
virtual int GetInterpolation ()
 
void SetInterpolationToFlat ()
 
void SetInterpolationToGouraud ()
 
void SetInterpolationToPhong ()
 
const char * GetInterpolationAsString ()
 Return the method of shading as a descriptive character string. More...
 
virtual void SetRepresentation (int)
 Control the surface geometry representation for the object. More...
 
virtual int GetRepresentation ()
 
void SetRepresentationToPoints ()
 
void SetRepresentationToWireframe ()
 
void SetRepresentationToSurface ()
 
const char * GetRepresentationAsString ()
 Return the method of shading as a descriptive character string. More...
 
virtual void SetColor (double r, double g, double b)
 Set the color of the object. More...
 
virtual void SetColor (double a[3])
 
doubleGetColor ()
 
void GetColor (double rgb[3])
 
void GetColor (double &r, double &g, double &b)
 
virtual void SetAmbient (double)
 Set/Get the ambient lighting coefficient. More...
 
virtual double GetAmbient ()
 
virtual void SetDiffuse (double)
 Set/Get the diffuse lighting coefficient. More...
 
virtual double GetDiffuse ()
 
virtual void SetSpecular (double)
 Set/Get the specular lighting coefficient. More...
 
virtual double GetSpecular ()
 
virtual void SetSpecularPower (double)
 Set/Get the specular power. More...
 
virtual double GetSpecularPower ()
 
virtual void SetOpacity (double)
 Set/Get the object's opacity. More...
 
virtual double GetOpacity ()
 
virtual void SetAmbientColor (double, double, double)
 Set/Get the ambient surface color. More...
 
virtual void SetAmbientColor (double[3])
 
virtual doubleGetAmbientColor ()
 
virtual void GetAmbientColor (double &, double &, double &)
 
virtual void GetAmbientColor (double[3])
 
virtual void SetDiffuseColor (double, double, double)
 Set/Get the diffuse surface color. More...
 
virtual void SetDiffuseColor (double[3])
 
virtual doubleGetDiffuseColor ()
 
virtual void GetDiffuseColor (double &, double &, double &)
 
virtual void GetDiffuseColor (double[3])
 
virtual void SetSpecularColor (double, double, double)
 Set/Get the specular surface color. More...
 
virtual void SetSpecularColor (double[3])
 
virtual doubleGetSpecularColor ()
 
virtual void GetSpecularColor (double &, double &, double &)
 
virtual void GetSpecularColor (double[3])
 
virtual vtkTypeBool GetEdgeVisibility ()
 Turn on/off the visibility of edges. More...
 
virtual void SetEdgeVisibility (vtkTypeBool)
 
virtual void EdgeVisibilityOn ()
 
virtual void EdgeVisibilityOff ()
 
virtual void SetEdgeColor (double, double, double)
 Set/Get the color of primitive edges (if edge visibility is enabled). More...
 
virtual void SetEdgeColor (double[3])
 
virtual doubleGetEdgeColor ()
 
virtual void GetEdgeColor (double &, double &, double &)
 
virtual void GetEdgeColor (double[3])
 
virtual vtkTypeBool GetVertexVisibility ()
 Turn on/off the visibility of vertices. More...
 
virtual void SetVertexVisibility (vtkTypeBool)
 
virtual void VertexVisibilityOn ()
 
virtual void VertexVisibilityOff ()
 
virtual void SetVertexColor (double, double, double)
 Set/Get the color of primitive vertices (if vertex visibility is enabled). More...
 
virtual void SetVertexColor (double[3])
 
virtual doubleGetVertexColor ()
 
virtual void GetVertexColor (double &, double &, double &)
 
virtual void GetVertexColor (double[3])
 
virtual void SetLineWidth (float)
 Set/Get the width of a Line. More...
 
virtual float GetLineWidth ()
 
virtual void SetLineStipplePattern (int)
 Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). More...
 
virtual int GetLineStipplePattern ()
 
virtual void SetLineStippleRepeatFactor (int)
 Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. More...
 
virtual int GetLineStippleRepeatFactor ()
 
virtual void SetPointSize (float)
 Set/Get the diameter of a point. More...
 
virtual float GetPointSize ()
 
virtual vtkTypeBool GetBackfaceCulling ()
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual void SetBackfaceCulling (vtkTypeBool)
 
virtual void BackfaceCullingOn ()
 
virtual void BackfaceCullingOff ()
 
virtual vtkTypeBool GetFrontfaceCulling ()
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual void SetFrontfaceCulling (vtkTypeBool)
 
virtual void FrontfaceCullingOn ()
 
virtual void FrontfaceCullingOff ()
 
virtual void SetMaterialName (const char *)
 Returns the name of the material currently loaded, if any. More...
 
virtual char * GetMaterialName ()
 
virtual void SetShading (vtkTypeBool)
 Enable/Disable shading. More...
 
virtual vtkTypeBool GetShading ()
 
virtual void ShadingOn ()
 
virtual void ShadingOff ()
 
virtual vtkShaderDeviceAdapter2GetShaderDeviceAdapter2 ()
 Get the vtkShaderDeviceAdapter2 if set, returns null otherwise. More...
 
virtual void AddShaderVariable (const char *name, int numVars, int *x)
 Provide values to initialize shader variables. More...
 
virtual void AddShaderVariable (const char *name, int numVars, float *x)
 
virtual void AddShaderVariable (const char *name, int numVars, double *x)
 
void AddShaderVariable (const char *name, int v)
 Methods to provide to add shader variables from wrappers. More...
 
void AddShaderVariable (const char *name, float v)
 
void AddShaderVariable (const char *name, double v)
 
void AddShaderVariable (const char *name, int v1, int v2)
 
void AddShaderVariable (const char *name, float v1, float v2)
 
void AddShaderVariable (const char *name, double v1, double v2)
 
void AddShaderVariable (const char *name, int v1, int v2, int v3)
 
void AddShaderVariable (const char *name, float v1, float v2, float v3)
 
void AddShaderVariable (const char *name, double v1, double v2, double v3)
 
void SetTexture (const char *name, vtkTexture *texture)
 Set/Get the texture object to control rendering texture maps. More...
 
vtkTextureGetTexture (const char *name)
 
void SetTexture (int unit, vtkTexture *texture)
 Set/Get the texture object to control rendering texture maps. More...
 
vtkTextureGetTexture (int unit)
 
void RemoveTexture (int unit)
 
void RemoveTexture (const char *name)
 Remove a texture from the collection. More...
 
void RemoveAllTextures ()
 Remove all the textures. More...
 
int GetNumberOfTextures ()
 Returns the number of textures in this property. More...
 
std::map< std::string, vtkTexture * > & GetAllTextures ()
 Returns all the textures in this property and their names. More...
 
virtual void ReleaseGraphicsResources (vtkWindow *win)
 Release any graphics resources that are being consumed by this property. More...
 
virtual vtkInformationGetInformation ()
 Set/Get the information object associated with the Property. More...
 
virtual void SetInformation (vtkInformation *)
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time. More...
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
vtkTypeBool HasObserver (unsigned long event)
 
vtkTypeBool HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
int InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
virtual void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 

Static Public Member Functions

static vtkTypeBool IsTypeOf (const char *type)
 
static vtkPropertySafeDownCast (vtkObjectBase *o)
 
static vtkPropertyNew ()
 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. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Types

typedef std::map< std::string, vtkTexture * > MapOfTextures
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkProperty ()
 
 ~vtkProperty () override
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Static Protected Member Functions

static void ComputeCompositeColor (double result[3], double ambient, const double ambient_color[3], double diffuse, const double diffuse_color[3], double specular, const double specular_color[3])
 Computes composite color. More...
 

Protected Attributes

double Color [3]
 
double AmbientColor [3]
 
double DiffuseColor [3]
 
double SpecularColor [3]
 
double EdgeColor [3]
 
double VertexColor [3]
 
double Ambient
 
double Diffuse
 
double Specular
 
double SpecularPower
 
double Opacity
 
float PointSize
 
float LineWidth
 
int LineStipplePattern
 
int LineStippleRepeatFactor
 
int Interpolation
 
int Representation
 
vtkTypeBool EdgeVisibility
 
vtkTypeBool VertexVisibility
 
vtkTypeBool BackfaceCulling
 
vtkTypeBool FrontfaceCulling
 
bool Lighting
 
bool RenderPointsAsSpheres
 
bool RenderLinesAsTubes
 
vtkTypeBool Shading
 
char * MaterialName
 
MapOfTextures Textures
 
vtkInformationInformation
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

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.

See also
vtkActor vtkPropertyDevice
Examples:
vtkProperty (Examples)
Tests:
vtkProperty (Tests)

Definition at line 66 of file vtkProperty.h.

Member Typedef Documentation

◆ Superclass

Definition at line 69 of file vtkProperty.h.

◆ MapOfTextures

typedef std::map<std::string, vtkTexture*> vtkProperty::MapOfTextures
protected

Definition at line 550 of file vtkProperty.h.

Member Enumeration Documentation

◆ VTKTextureUnit

Enumerator
VTK_TEXTURE_UNIT_0 
VTK_TEXTURE_UNIT_1 
VTK_TEXTURE_UNIT_2 
VTK_TEXTURE_UNIT_3 
VTK_TEXTURE_UNIT_4 
VTK_TEXTURE_UNIT_5 
VTK_TEXTURE_UNIT_6 
VTK_TEXTURE_UNIT_7 

Definition at line 488 of file vtkProperty.h.

Constructor & Destructor Documentation

◆ vtkProperty()

vtkProperty::vtkProperty ( )
protected

◆ ~vtkProperty()

vtkProperty::~vtkProperty ( )
overrideprotected

Member Function Documentation

◆ IsTypeOf()

static vtkTypeBool vtkProperty::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual vtkTypeBool vtkProperty::IsA ( const char *  name)
virtual

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 vtkObjectBase.

Reimplemented in vtkRIBProperty, and vtkOpenGLProperty.

◆ SafeDownCast()

static vtkProperty* vtkProperty::SafeDownCast ( vtkObjectBase o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkProperty::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented in vtkRIBProperty, and vtkOpenGLProperty.

◆ NewInstance()

vtkProperty* vtkProperty::NewInstance ( ) const

◆ PrintSelf()

void vtkProperty::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

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 vtkOpenGLProperty.

◆ New()

static vtkProperty* vtkProperty::New ( )
static

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.

◆ DeepCopy()

void vtkProperty::DeepCopy ( vtkProperty p)

Assign one property to another.

◆ Render()

virtual void vtkProperty::Render ( vtkActor ,
vtkRenderer  
)
virtual

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, and vtkOpenGLProperty.

◆ BackfaceRender()

virtual void vtkProperty::BackfaceRender ( vtkActor ,
vtkRenderer  
)
inlinevirtual

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 vtkOpenGLProperty.

Definition at line 100 of file vtkProperty.h.

◆ PostRender()

virtual void vtkProperty::PostRender ( vtkActor ,
vtkRenderer  
)
virtual

This method is called after the actor has been rendered.

Don't call this directly. This method cleans up any shaders allocated.

Reimplemented in vtkOpenGLProperty.

◆ GetLighting()

virtual bool vtkProperty::GetLighting ( )
virtual

Set/Get lighting flag for an object.

Initial value is true.

◆ SetLighting()

virtual void vtkProperty::SetLighting ( bool  )
virtual

◆ LightingOn()

virtual void vtkProperty::LightingOn ( )
virtual

◆ LightingOff()

virtual void vtkProperty::LightingOff ( )
virtual

◆ GetRenderPointsAsSpheres()

virtual bool vtkProperty::GetRenderPointsAsSpheres ( )
virtual

Set/Get rendering of points as spheres.

The size of the sphere in pixels is controlled by the PointSize attribute. Note that half spheres may be rendered instead of spheres.

◆ SetRenderPointsAsSpheres()

virtual void vtkProperty::SetRenderPointsAsSpheres ( bool  )
virtual

◆ RenderPointsAsSpheresOn()

virtual void vtkProperty::RenderPointsAsSpheresOn ( )
virtual

◆ RenderPointsAsSpheresOff()

virtual void vtkProperty::RenderPointsAsSpheresOff ( )
virtual

◆ GetRenderLinesAsTubes()

virtual bool vtkProperty::GetRenderLinesAsTubes ( )
virtual

Set/Get rendering of lines as tubes.

The width of the line in pixels is controlled by the LineWidth attribute. May not be supported on every platform and the implementation may be half tubes, or something only tube like in appearance.

◆ SetRenderLinesAsTubes()

virtual void vtkProperty::SetRenderLinesAsTubes ( bool  )
virtual

◆ RenderLinesAsTubesOn()

virtual void vtkProperty::RenderLinesAsTubesOn ( )
virtual

◆ RenderLinesAsTubesOff()

virtual void vtkProperty::RenderLinesAsTubesOff ( )
virtual

◆ SetInterpolation()

virtual void vtkProperty::SetInterpolation ( int  )
virtual

Set the shading interpolation method for an object.

◆ GetInterpolation()

virtual int vtkProperty::GetInterpolation ( )
virtual

◆ SetInterpolationToFlat()

void vtkProperty::SetInterpolationToFlat ( )
inline

Definition at line 149 of file vtkProperty.h.

◆ SetInterpolationToGouraud()

void vtkProperty::SetInterpolationToGouraud ( )
inline

Definition at line 151 of file vtkProperty.h.

◆ SetInterpolationToPhong()

void vtkProperty::SetInterpolationToPhong ( )
inline

Definition at line 153 of file vtkProperty.h.

◆ GetInterpolationAsString()

const char * vtkProperty::GetInterpolationAsString ( void  )
inline

Return the method of shading as a descriptive character string.

Definition at line 565 of file vtkProperty.h.

◆ SetRepresentation()

virtual void vtkProperty::SetRepresentation ( int  )
virtual

Control the surface geometry representation for the object.

◆ GetRepresentation()

virtual int vtkProperty::GetRepresentation ( )
virtual

◆ SetRepresentationToPoints()

void vtkProperty::SetRepresentationToPoints ( )
inline

Definition at line 164 of file vtkProperty.h.

◆ SetRepresentationToWireframe()

void vtkProperty::SetRepresentationToWireframe ( )
inline

Definition at line 166 of file vtkProperty.h.

◆ SetRepresentationToSurface()

void vtkProperty::SetRepresentationToSurface ( )
inline

Definition at line 168 of file vtkProperty.h.

◆ GetRepresentationAsString()

const char * vtkProperty::GetRepresentationAsString ( void  )
inline

Return the method of shading as a descriptive character string.

Definition at line 586 of file vtkProperty.h.

◆ SetColor() [1/2]

virtual void vtkProperty::SetColor ( double  r,
double  g,
double  b 
)
virtual

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.

◆ SetColor() [2/2]

virtual void vtkProperty::SetColor ( double  a[3])
virtual

◆ GetColor() [1/3]

double* vtkProperty::GetColor ( )

◆ GetColor() [2/3]

void vtkProperty::GetColor ( double  rgb[3])

◆ GetColor() [3/3]

void vtkProperty::GetColor ( double r,
double g,
double b 
)

◆ SetAmbient()

virtual void vtkProperty::SetAmbient ( double  )
virtual

Set/Get the ambient lighting coefficient.

◆ GetAmbient()

virtual double vtkProperty::GetAmbient ( )
virtual

◆ SetDiffuse()

virtual void vtkProperty::SetDiffuse ( double  )
virtual

Set/Get the diffuse lighting coefficient.

◆ GetDiffuse()

virtual double vtkProperty::GetDiffuse ( )
virtual

◆ SetSpecular()

virtual void vtkProperty::SetSpecular ( double  )
virtual

Set/Get the specular lighting coefficient.

◆ GetSpecular()

virtual double vtkProperty::GetSpecular ( )
virtual

◆ SetSpecularPower()

virtual void vtkProperty::SetSpecularPower ( double  )
virtual

Set/Get the specular power.

◆ GetSpecularPower()

virtual double vtkProperty::GetSpecularPower ( )
virtual

◆ SetOpacity()

virtual void vtkProperty::SetOpacity ( double  )
virtual

Set/Get the object's opacity.

1.0 is totally opaque and 0.0 is completely transparent.

◆ GetOpacity()

virtual double vtkProperty::GetOpacity ( )
virtual

◆ SetAmbientColor() [1/2]

virtual void vtkProperty::SetAmbientColor ( double  ,
double  ,
double   
)
virtual

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.

◆ SetAmbientColor() [2/2]

virtual void vtkProperty::SetAmbientColor ( double  [3])
virtual

◆ GetAmbientColor() [1/3]

virtual double* vtkProperty::GetAmbientColor ( )
virtual

◆ GetAmbientColor() [2/3]

virtual void vtkProperty::GetAmbientColor ( double ,
double ,
double  
)
virtual

◆ GetAmbientColor() [3/3]

virtual void vtkProperty::GetAmbientColor ( double  [3])
virtual

◆ SetDiffuseColor() [1/2]

virtual void vtkProperty::SetDiffuseColor ( double  ,
double  ,
double   
)
virtual

Set/Get the diffuse surface color.

◆ SetDiffuseColor() [2/2]

virtual void vtkProperty::SetDiffuseColor ( double  [3])
virtual

◆ GetDiffuseColor() [1/3]

virtual double* vtkProperty::GetDiffuseColor ( )
virtual

◆ GetDiffuseColor() [2/3]

virtual void vtkProperty::GetDiffuseColor ( double ,
double ,
double  
)
virtual

◆ GetDiffuseColor() [3/3]

virtual void vtkProperty::GetDiffuseColor ( double  [3])
virtual

◆ SetSpecularColor() [1/2]

virtual void vtkProperty::SetSpecularColor ( double  ,
double  ,
double   
)
virtual

Set/Get the specular surface color.

◆ SetSpecularColor() [2/2]

virtual void vtkProperty::SetSpecularColor ( double  [3])
virtual

◆ GetSpecularColor() [1/3]

virtual double* vtkProperty::GetSpecularColor ( )
virtual

◆ GetSpecularColor() [2/3]

virtual void vtkProperty::GetSpecularColor ( double ,
double ,
double  
)
virtual

◆ GetSpecularColor() [3/3]

virtual void vtkProperty::GetSpecularColor ( double  [3])
virtual

◆ GetEdgeVisibility()

virtual vtkTypeBool vtkProperty::GetEdgeVisibility ( )
virtual

Turn on/off the visibility of edges.

On some renderers it is possible to render the edges of geometric primitives separately from the interior.

◆ SetEdgeVisibility()

virtual void vtkProperty::SetEdgeVisibility ( vtkTypeBool  )
virtual

◆ EdgeVisibilityOn()

virtual void vtkProperty::EdgeVisibilityOn ( )
virtual

◆ EdgeVisibilityOff()

virtual void vtkProperty::EdgeVisibilityOff ( )
virtual

◆ SetEdgeColor() [1/2]

virtual void vtkProperty::SetEdgeColor ( double  ,
double  ,
double   
)
virtual

Set/Get the color of primitive edges (if edge visibility is enabled).

◆ SetEdgeColor() [2/2]

virtual void vtkProperty::SetEdgeColor ( double  [3])
virtual

◆ GetEdgeColor() [1/3]

virtual double* vtkProperty::GetEdgeColor ( )
virtual

◆ GetEdgeColor() [2/3]

virtual void vtkProperty::GetEdgeColor ( double ,
double ,
double  
)
virtual

◆ GetEdgeColor() [3/3]

virtual void vtkProperty::GetEdgeColor ( double  [3])
virtual

◆ GetVertexVisibility()

virtual vtkTypeBool vtkProperty::GetVertexVisibility ( )
virtual

Turn on/off the visibility of vertices.

On some renderers it is possible to render the vertices of geometric primitives separately from the interior.

◆ SetVertexVisibility()

virtual void vtkProperty::SetVertexVisibility ( vtkTypeBool  )
virtual

◆ VertexVisibilityOn()

virtual void vtkProperty::VertexVisibilityOn ( )
virtual

◆ VertexVisibilityOff()

virtual void vtkProperty::VertexVisibilityOff ( )
virtual

◆ SetVertexColor() [1/2]

virtual void vtkProperty::SetVertexColor ( double  ,
double  ,
double   
)
virtual

Set/Get the color of primitive vertices (if vertex visibility is enabled).

◆ SetVertexColor() [2/2]

virtual void vtkProperty::SetVertexColor ( double  [3])
virtual

◆ GetVertexColor() [1/3]

virtual double* vtkProperty::GetVertexColor ( )
virtual

◆ GetVertexColor() [2/3]

virtual void vtkProperty::GetVertexColor ( double ,
double ,
double  
)
virtual

◆ GetVertexColor() [3/3]

virtual void vtkProperty::GetVertexColor ( double  [3])
virtual

◆ SetLineWidth()

virtual void vtkProperty::SetLineWidth ( float  )
virtual

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.

◆ GetLineWidth()

virtual float vtkProperty::GetLineWidth ( )
virtual

◆ SetLineStipplePattern()

virtual void vtkProperty::SetLineStipplePattern ( int  )
virtual

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, not OpenGL2. The default is 0xFFFF.

◆ GetLineStipplePattern()

virtual int vtkProperty::GetLineStipplePattern ( )
virtual

◆ SetLineStippleRepeatFactor()

virtual void vtkProperty::SetLineStippleRepeatFactor ( int  )
virtual

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, not OpenGL2. The default is 1.

◆ GetLineStippleRepeatFactor()

virtual int vtkProperty::GetLineStippleRepeatFactor ( )
virtual

◆ SetPointSize()

virtual void vtkProperty::SetPointSize ( float  )
virtual

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.

◆ GetPointSize()

virtual float vtkProperty::GetPointSize ( )
virtual

◆ GetBackfaceCulling()

virtual vtkTypeBool vtkProperty::GetBackfaceCulling ( )
virtual

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.

◆ SetBackfaceCulling()

virtual void vtkProperty::SetBackfaceCulling ( vtkTypeBool  )
virtual

◆ BackfaceCullingOn()

virtual void vtkProperty::BackfaceCullingOn ( )
virtual

◆ BackfaceCullingOff()

virtual void vtkProperty::BackfaceCullingOff ( )
virtual

◆ GetFrontfaceCulling()

virtual vtkTypeBool vtkProperty::GetFrontfaceCulling ( )
virtual

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.

◆ SetFrontfaceCulling()

virtual void vtkProperty::SetFrontfaceCulling ( vtkTypeBool  )
virtual

◆ FrontfaceCullingOn()

virtual void vtkProperty::FrontfaceCullingOn ( )
virtual

◆ FrontfaceCullingOff()

virtual void vtkProperty::FrontfaceCullingOff ( )
virtual

◆ SetMaterialName()

virtual void vtkProperty::SetMaterialName ( const char *  )
virtual

Returns the name of the material currently loaded, if any.

◆ GetMaterialName()

virtual char* vtkProperty::GetMaterialName ( )
virtual

◆ SetShading()

virtual void vtkProperty::SetShading ( vtkTypeBool  )
virtual

Enable/Disable shading.

When shading is enabled, the Material must be set.

◆ GetShading()

virtual vtkTypeBool vtkProperty::GetShading ( )
virtual

◆ ShadingOn()

virtual void vtkProperty::ShadingOn ( )
virtual

◆ ShadingOff()

virtual void vtkProperty::ShadingOff ( )
virtual

◆ GetShaderDeviceAdapter2()

virtual vtkShaderDeviceAdapter2* vtkProperty::GetShaderDeviceAdapter2 ( )
inlinevirtual

Get the vtkShaderDeviceAdapter2 if set, returns null otherwise.

Definition at line 373 of file vtkProperty.h.

◆ AddShaderVariable() [1/12]

virtual void vtkProperty::AddShaderVariable ( const char *  name,
int  numVars,
int x 
)
virtual

Provide values to initialize shader variables.

Useful to initialize shader variables that change over time (animation, GUI widgets inputs, etc. )

  • name - hardware name of the uniform variable
  • numVars - number of variables being set
  • x - values

◆ AddShaderVariable() [2/12]

virtual void vtkProperty::AddShaderVariable ( const char *  name,
int  numVars,
float x 
)
virtual

◆ AddShaderVariable() [3/12]

virtual void vtkProperty::AddShaderVariable ( const char *  name,
int  numVars,
double x 
)
virtual

◆ AddShaderVariable() [4/12]

void vtkProperty::AddShaderVariable ( const char *  name,
int  v 
)
inline

Methods to provide to add shader variables from wrappers.

Definition at line 394 of file vtkProperty.h.

◆ AddShaderVariable() [5/12]

void vtkProperty::AddShaderVariable ( const char *  name,
float  v 
)
inline

Definition at line 396 of file vtkProperty.h.

◆ AddShaderVariable() [6/12]

void vtkProperty::AddShaderVariable ( const char *  name,
double  v 
)
inline

Definition at line 398 of file vtkProperty.h.

◆ AddShaderVariable() [7/12]

void vtkProperty::AddShaderVariable ( const char *  name,
int  v1,
int  v2 
)
inline

Definition at line 400 of file vtkProperty.h.

◆ AddShaderVariable() [8/12]

void vtkProperty::AddShaderVariable ( const char *  name,
float  v1,
float  v2 
)
inline

Definition at line 405 of file vtkProperty.h.

◆ AddShaderVariable() [9/12]

void vtkProperty::AddShaderVariable ( const char *  name,
double  v1,
double  v2 
)
inline

Definition at line 410 of file vtkProperty.h.

◆ AddShaderVariable() [10/12]

void vtkProperty::AddShaderVariable ( const char *  name,
int  v1,
int  v2,
int  v3 
)
inline

Definition at line 415 of file vtkProperty.h.

◆ AddShaderVariable() [11/12]

void vtkProperty::AddShaderVariable ( const char *  name,
float  v1,
float  v2,
float  v3 
)
inline

Definition at line 420 of file vtkProperty.h.

◆ AddShaderVariable() [12/12]

void vtkProperty::AddShaderVariable ( const char *  name,
double  v1,
double  v2,
double  v3 
)
inline

Definition at line 425 of file vtkProperty.h.

◆ SetTexture() [1/2]

void vtkProperty::SetTexture ( const char *  name,
vtkTexture texture 
)

Set/Get the texture object to control rendering texture maps.

This will be a vtkTexture object. A property does not need to have an associated texture map and multiple properties can share one texture. Textures must be assigned unique names. Note that for texture blending the textures will be rendering is alphabetical order and after any texture defined in the actor.

◆ GetTexture() [1/2]

vtkTexture* vtkProperty::GetTexture ( const char *  name)

◆ SetTexture() [2/2]

void vtkProperty::SetTexture ( int  unit,
vtkTexture texture 
)

Set/Get the texture object to control rendering texture maps.

This will be a vtkTexture object. A property does not need to have an associated texture map and multiple properties can share one texture. Textures must be assigned unique names.

◆ GetTexture() [2/2]

vtkTexture* vtkProperty::GetTexture ( int  unit)

◆ RemoveTexture() [1/2]

void vtkProperty::RemoveTexture ( int  unit)

◆ RemoveTexture() [2/2]

void vtkProperty::RemoveTexture ( const char *  name)

Remove a texture from the collection.

◆ RemoveAllTextures()

void vtkProperty::RemoveAllTextures ( )

Remove all the textures.

◆ GetNumberOfTextures()

int vtkProperty::GetNumberOfTextures ( )

Returns the number of textures in this property.

◆ GetAllTextures()

std::map<std::string, vtkTexture *>& vtkProperty::GetAllTextures ( )
inline

Returns all the textures in this property and their names.

Definition at line 475 of file vtkProperty.h.

◆ ReleaseGraphicsResources()

virtual void vtkProperty::ReleaseGraphicsResources ( vtkWindow win)
virtual

Release any graphics resources that are being consumed by this property.

The parameter window could be used to determine which graphic resources to release.

Reimplemented in vtkOpenGLProperty.

◆ GetInformation()

virtual vtkInformation* vtkProperty::GetInformation ( )
virtual

Set/Get the information object associated with the Property.

◆ SetInformation()

virtual void vtkProperty::SetInformation ( vtkInformation )
virtual

◆ ComputeCompositeColor()

static void vtkProperty::ComputeCompositeColor ( double  result[3],
double  ambient,
const double  ambient_color[3],
double  diffuse,
const double  diffuse_color[3],
double  specular,
const double  specular_color[3] 
)
staticprotected

Computes composite color.

Used by GetColor().

Member Data Documentation

◆ Color

double vtkProperty::Color[3]
protected

Definition at line 521 of file vtkProperty.h.

◆ AmbientColor

double vtkProperty::AmbientColor[3]
protected

Definition at line 522 of file vtkProperty.h.

◆ DiffuseColor

double vtkProperty::DiffuseColor[3]
protected

Definition at line 523 of file vtkProperty.h.

◆ SpecularColor

double vtkProperty::SpecularColor[3]
protected

Definition at line 524 of file vtkProperty.h.

◆ EdgeColor

double vtkProperty::EdgeColor[3]
protected

Definition at line 525 of file vtkProperty.h.

◆ VertexColor

double vtkProperty::VertexColor[3]
protected

Definition at line 526 of file vtkProperty.h.

◆ Ambient

double vtkProperty::Ambient
protected

Definition at line 527 of file vtkProperty.h.

◆ Diffuse

double vtkProperty::Diffuse
protected

Definition at line 528 of file vtkProperty.h.

◆ Specular

double vtkProperty::Specular
protected

Definition at line 529 of file vtkProperty.h.

◆ SpecularPower

double vtkProperty::SpecularPower
protected

Definition at line 530 of file vtkProperty.h.

◆ Opacity

double vtkProperty::Opacity
protected

Definition at line 531 of file vtkProperty.h.

◆ PointSize

float vtkProperty::PointSize
protected

Definition at line 532 of file vtkProperty.h.

◆ LineWidth

float vtkProperty::LineWidth
protected

Definition at line 533 of file vtkProperty.h.

◆ LineStipplePattern

int vtkProperty::LineStipplePattern
protected

Definition at line 534 of file vtkProperty.h.

◆ LineStippleRepeatFactor

int vtkProperty::LineStippleRepeatFactor
protected

Definition at line 535 of file vtkProperty.h.

◆ Interpolation

int vtkProperty::Interpolation
protected

Definition at line 536 of file vtkProperty.h.

◆ Representation

int vtkProperty::Representation
protected

Definition at line 537 of file vtkProperty.h.

◆ EdgeVisibility

vtkTypeBool vtkProperty::EdgeVisibility
protected

Definition at line 538 of file vtkProperty.h.

◆ VertexVisibility

vtkTypeBool vtkProperty::VertexVisibility
protected

Definition at line 539 of file vtkProperty.h.

◆ BackfaceCulling

vtkTypeBool vtkProperty::BackfaceCulling
protected

Definition at line 540 of file vtkProperty.h.

◆ FrontfaceCulling

vtkTypeBool vtkProperty::FrontfaceCulling
protected

Definition at line 541 of file vtkProperty.h.

◆ Lighting

bool vtkProperty::Lighting
protected

Definition at line 542 of file vtkProperty.h.

◆ RenderPointsAsSpheres

bool vtkProperty::RenderPointsAsSpheres
protected

Definition at line 543 of file vtkProperty.h.

◆ RenderLinesAsTubes

bool vtkProperty::RenderLinesAsTubes
protected

Definition at line 544 of file vtkProperty.h.

◆ Shading

vtkTypeBool vtkProperty::Shading
protected

Definition at line 546 of file vtkProperty.h.

◆ MaterialName

char* vtkProperty::MaterialName
protected

Definition at line 548 of file vtkProperty.h.

◆ Textures

MapOfTextures vtkProperty::Textures
protected

Definition at line 551 of file vtkProperty.h.

◆ Information

vtkInformation* vtkProperty::Information
protected

Definition at line 554 of file vtkProperty.h.


The documentation for this class was generated from the following file: