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

OpenGL property. More...

#include <vtkOpenGLProperty.h>

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

Public Types

typedef vtkProperty Superclass
 
typedef vtkProperty Superclass
 
- Public Types inherited from vtkProperty
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
}
 Used to specify which texture unit a texture will use. More...
 
typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkOpenGLPropertyNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
void Render (vtkActor *a, vtkRenderer *ren)
 Implement base class method. More...
 
void BackfaceRender (vtkActor *a, vtkRenderer *ren)
 Implement base class method. More...
 
virtual void PostRender (vtkActor *a, vtkRenderer *r)
 This method is called after the actor has been rendered. More...
 
virtual void ReleaseGraphicsResources (vtkWindow *win)
 Release any graphics resources that are being consumed by this property. More...
 
virtual vtkShaderDeviceAdapter2GetShaderDeviceAdapter2 ()
 Get the object that can pass vertex attribute to a vtkShaderProgram2. More...
 
virtual int IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkOpenGLPropertyNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
void Render (vtkActor *a, vtkRenderer *ren)
 Implement base class method. More...
 
void BackfaceRender (vtkActor *a, vtkRenderer *ren)
 Implement base class method. More...
 
virtual void PostRender (vtkActor *a, vtkRenderer *r)
 This method is called after the actor has been rendered. More...
 
virtual void ReleaseGraphicsResources (vtkWindow *win)
 Release any graphics resources that are being consumed by this property. More...
 
virtual vtkShaderProgram2GetPropProgram ()
 Set/Get the shader program of the vtkProp. More...
 
void SetPropProgram (vtkShaderProgram2 *)
 Set/Get the shader program of the vtkProp. More...
 
virtual vtkShaderProgram2GetCurrentShaderProgram2 ()
 Get the vtkShaderProgram2 object in use. 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)
 Provide values to initialize shader variables. More...
 
virtual void AddShaderVariable (const char *name, int numVars, double *x)
 Provide values to initialize shader variables. More...
 
- Public Member Functions inherited from vtkProperty
vtkPropertyNewInstance () const
 
void DeepCopy (vtkProperty *p)
 Assign one property to another. More...
 
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...
 
virtual bool GetLighting ()
 Set/Get lighting flag for an object. More...
 
virtual void SetLighting (bool)
 Set/Get lighting flag for an object. More...
 
virtual void LightingOn ()
 Set/Get lighting flag for an object. More...
 
virtual void LightingOff ()
 Set/Get lighting flag for an object. More...
 
virtual bool GetRenderPointsAsSpheres ()
 Set/Get rendering of points as spheres. More...
 
virtual void SetRenderPointsAsSpheres (bool)
 Set/Get rendering of points as spheres. More...
 
virtual void RenderPointsAsSpheresOn ()
 Set/Get rendering of points as spheres. More...
 
virtual void RenderPointsAsSpheresOff ()
 Set/Get rendering of points as spheres. More...
 
virtual bool GetRenderLinesAsTubes ()
 Set/Get rendering of lines as tubes. More...
 
virtual void SetRenderLinesAsTubes (bool)
 Set/Get rendering of lines as tubes. More...
 
virtual void RenderLinesAsTubesOn ()
 Set/Get rendering of lines as tubes. More...
 
virtual void RenderLinesAsTubesOff ()
 Set/Get rendering of lines as tubes. More...
 
virtual void SetInterpolation (int)
 Set the shading interpolation method for an object. More...
 
virtual int GetInterpolation ()
 Set the shading interpolation method for an object. More...
 
void SetInterpolationToFlat ()
 Set the shading interpolation method for an object. More...
 
void SetInterpolationToGouraud ()
 Set the shading interpolation method for an object. More...
 
void SetInterpolationToPhong ()
 Set the shading interpolation method for an object. More...
 
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 ()
 Control the surface geometry representation for the object. More...
 
void SetRepresentationToPoints ()
 Control the surface geometry representation for the object. More...
 
void SetRepresentationToWireframe ()
 Control the surface geometry representation for the object. More...
 
void SetRepresentationToSurface ()
 Control the surface geometry representation for the object. More...
 
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])
 Set the color of the object. More...
 
doubleGetColor ()
 Set the color of the object. More...
 
void GetColor (double rgb[3])
 Set the color of the object. More...
 
void GetColor (double &r, double &g, double &b)
 Set the color of the object. More...
 
virtual void SetAmbient (double)
 Set/Get the ambient lighting coefficient. More...
 
virtual double GetAmbient ()
 Set/Get the ambient lighting coefficient. More...
 
virtual void SetDiffuse (double)
 Set/Get the diffuse lighting coefficient. More...
 
virtual double GetDiffuse ()
 Set/Get the diffuse lighting coefficient. More...
 
virtual void SetSpecular (double)
 Set/Get the specular lighting coefficient. More...
 
virtual double GetSpecular ()
 Set/Get the specular lighting coefficient. More...
 
virtual void SetSpecularPower (double)
 Set/Get the specular power. More...
 
virtual double GetSpecularPower ()
 Set/Get the specular power. More...
 
virtual void SetOpacity (double)
 Set/Get the object's opacity. More...
 
virtual double GetOpacity ()
 Set/Get the object's opacity. More...
 
virtual void SetAmbientColor (double, double, double)
 Set/Get the ambient surface color. More...
 
virtual void SetAmbientColor (double[3])
 Set/Get the ambient surface color. More...
 
virtual doubleGetAmbientColor ()
 Set/Get the ambient surface color. More...
 
virtual void GetAmbientColor (double &, double &, double &)
 Set/Get the ambient surface color. More...
 
virtual void GetAmbientColor (double[3])
 Set/Get the ambient surface color. More...
 
virtual void SetDiffuseColor (double, double, double)
 Set/Get the diffuse surface color. More...
 
virtual void SetDiffuseColor (double[3])
 Set/Get the diffuse surface color. More...
 
virtual doubleGetDiffuseColor ()
 Set/Get the diffuse surface color. More...
 
virtual void GetDiffuseColor (double &, double &, double &)
 Set/Get the diffuse surface color. More...
 
virtual void GetDiffuseColor (double[3])
 Set/Get the diffuse surface color. More...
 
virtual void SetSpecularColor (double, double, double)
 Set/Get the specular surface color. More...
 
virtual void SetSpecularColor (double[3])
 Set/Get the specular surface color. More...
 
virtual doubleGetSpecularColor ()
 Set/Get the specular surface color. More...
 
virtual void GetSpecularColor (double &, double &, double &)
 Set/Get the specular surface color. More...
 
virtual void GetSpecularColor (double[3])
 Set/Get the specular surface color. More...
 
virtual int GetEdgeVisibility ()
 Turn on/off the visibility of edges. More...
 
virtual void SetEdgeVisibility (int)
 Turn on/off the visibility of edges. More...
 
virtual void EdgeVisibilityOn ()
 Turn on/off the visibility of edges. More...
 
virtual void EdgeVisibilityOff ()
 Turn on/off the visibility of edges. More...
 
virtual void SetEdgeColor (double, double, double)
 Set/Get the color of primitive edges (if edge visibility is enabled). More...
 
virtual void SetEdgeColor (double[3])
 Set/Get the color of primitive edges (if edge visibility is enabled). More...
 
virtual doubleGetEdgeColor ()
 Set/Get the color of primitive edges (if edge visibility is enabled). More...
 
virtual void GetEdgeColor (double &, double &, double &)
 Set/Get the color of primitive edges (if edge visibility is enabled). More...
 
virtual void GetEdgeColor (double[3])
 Set/Get the color of primitive edges (if edge visibility is enabled). More...
 
virtual void SetLineWidth (float)
 Set/Get the width of a Line. More...
 
virtual float GetLineWidth ()
 Set/Get the width of a Line. More...
 
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 ()
 Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). More...
 
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 ()
 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 void SetPointSize (float)
 Set/Get the diameter of a point. More...
 
virtual float GetPointSize ()
 Set/Get the diameter of a point. More...
 
virtual int GetBackfaceCulling ()
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual void SetBackfaceCulling (int)
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual void BackfaceCullingOn ()
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual void BackfaceCullingOff ()
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual int GetFrontfaceCulling ()
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual void SetFrontfaceCulling (int)
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual void FrontfaceCullingOn ()
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual void FrontfaceCullingOff ()
 Turn on/off fast culling of polygons based on orientation of normal with respect to camera. More...
 
virtual char * GetMaterialName ()
 Returns the name of the material currently loaded, if any. More...
 
virtual void SetShading (int)
 Enable/Disable shading. More...
 
virtual int GetShading ()
 Enable/Disable shading. More...
 
virtual void ShadingOn ()
 Enable/Disable shading. More...
 
virtual void ShadingOff ()
 Enable/Disable shading. More...
 
void AddShaderVariable (const char *name, int v)
 Methods to provide to add shader variables from tcl. More...
 
void AddShaderVariable (const char *name, float v)
 Methods to provide to add shader variables from tcl. More...
 
void AddShaderVariable (const char *name, double v)
 Methods to provide to add shader variables from tcl. More...
 
void AddShaderVariable (const char *name, int v1, int v2)
 Methods to provide to add shader variables from tcl. More...
 
void AddShaderVariable (const char *name, float v1, float v2)
 Methods to provide to add shader variables from tcl. More...
 
void AddShaderVariable (const char *name, double v1, double v2)
 Methods to provide to add shader variables from tcl. More...
 
void AddShaderVariable (const char *name, int v1, int v2, int v3)
 Methods to provide to add shader variables from tcl. More...
 
void AddShaderVariable (const char *name, float v1, float v2, float v3)
 Methods to provide to add shader variables from tcl. More...
 
void AddShaderVariable (const char *name, double v1, double v2, double v3)
 Methods to provide to add shader variables from tcl. More...
 
void SetTexture (const char *name, vtkTexture *texture)
 Set/Get the texture object to control rendering texture maps. More...
 
vtkTextureGetTexture (const char *name)
 Set/Get the texture object to control rendering texture maps. More...
 
void SetTexture (int unit, vtkTexture *texture)
 Set/Get the texture object to control rendering texture maps. More...
 
vtkTextureGetTexture (int unit)
 Set/Get the texture object to control rendering texture maps. More...
 
void RemoveTexture (int unit)
 Set/Get the texture object to control rendering texture maps. More...
 
- 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...
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
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)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
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)
 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, 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)
 This method invokes an event and return whether the event was aborted or not. More...
 
- 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 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...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 

Static Public Member Functions

static vtkOpenGLPropertyNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLPropertySafeDownCast (vtkObjectBase *o)
 
static void SetMaterialProperties (unsigned int face, double ambient, const double ambient_color[3], double diffuse, const double diffuse_color[3], double specular, const double specular_color[3], double specular_power, double opacity, vtkOpenGLRenderWindow *context)
 Helper method to set OpenGL material properties. More...
 
static vtkOpenGLPropertyNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLPropertySafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkProperty
static int 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 ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- 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 Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkOpenGLProperty ()
 
 ~vtkOpenGLProperty ()
 
bool RenderShaders (vtkActor *actor, vtkRenderer *renderer)
 Method called in vtkOpenGLProperty::Render() to render shaders and/or related entities like shader variables. More...
 
bool RenderTextures (vtkActor *actor, vtkRenderer *renderer, bool using_shader_program2)
 Method called in vtkOpenGLProperty::Render() to render textures. More...
 
void LoadMultiTexturingExtensions (vtkRenderer *ren)
 Load OpenGL extensions for multi texturing. More...
 
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkOpenGLProperty ()
 
 ~vtkOpenGLProperty ()
 
bool RenderTextures (vtkActor *actor, vtkRenderer *renderer)
 Method called in vtkOpenGLProperty::Render() to render textures. More...
 
- Protected Member Functions inherited from vtkProperty
 vtkProperty ()
 
 ~vtkProperty ()
 
virtual void SetMaterialName (const char *)
 
vtkTextureGetTextureAtIndex (int index)
 
int GetTextureUnitAtIndex (int index)
 
int GetTextureUnit (const char *name)
 
- 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=NULL)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkShaderProgram2CachedShaderProgram2
 
vtkShaderProgram2LastRendererShaderProgram2
 
vtkShaderProgram2LastPropProgram
 
vtkShaderProgram2PropProgram
 
vtkShaderProgram2CurrentShaderProgram2
 
vtkShader2DefaultMainVS
 
vtkShader2DefaultMainFS
 
vtkShader2DefaultPropVS
 
vtkShader2DefaultPropFS
 
bool UseDefaultMainVS
 
bool UseDefaultMainFS
 
bool UseDefaultPropVS
 
bool UseDefaultPropFS
 
vtkGLSLShaderDeviceAdapter2ShaderDeviceAdapter2
 
- Protected Attributes inherited from vtkProperty
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
 
bool Lighting
 
bool RenderPointsAsSpheres
 
bool RenderLinesAsTubes
 
int Shading
 
char * MaterialName
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkProperty
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...
 

Detailed Description

OpenGL property.

vtkOpenGLProperty is a concrete implementation of the abstract class vtkProperty. vtkOpenGLProperty interfaces to the OpenGL rendering library.

Definition at line 37 of file vtkOpenGLProperty.h.

Member Typedef Documentation

Definition at line 41 of file vtkOpenGLProperty.h.

Definition at line 33 of file vtkOpenGLProperty.h.

Constructor & Destructor Documentation

vtkOpenGLProperty::vtkOpenGLProperty ( )
protected
vtkOpenGLProperty::~vtkOpenGLProperty ( )
protected
vtkOpenGLProperty::vtkOpenGLProperty ( )
protected
vtkOpenGLProperty::~vtkOpenGLProperty ( )
protected

Member Function Documentation

static vtkOpenGLProperty* vtkOpenGLProperty::New ( )
static
static int vtkOpenGLProperty::IsTypeOf ( const char *  type)
static
virtual int vtkOpenGLProperty::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 vtkProperty.

static vtkOpenGLProperty* vtkOpenGLProperty::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkOpenGLProperty::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkProperty.

vtkOpenGLProperty* vtkOpenGLProperty::NewInstance ( ) const
void vtkOpenGLProperty::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 vtkProperty.

void vtkOpenGLProperty::Render ( vtkActor a,
vtkRenderer ren 
)
virtual

Implement base class method.

Reimplemented from vtkProperty.

void vtkOpenGLProperty::BackfaceRender ( vtkActor a,
vtkRenderer ren 
)
virtual

Implement base class method.

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::PostRender ( vtkActor a,
vtkRenderer r 
)
virtual

This method is called after the actor has been rendered.

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

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::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 from vtkProperty.

virtual vtkShaderProgram2* vtkOpenGLProperty::GetPropProgram ( )
virtual

Set/Get the shader program of the vtkProp.

It can be set directly or by defining a Material.

void vtkOpenGLProperty::SetPropProgram ( vtkShaderProgram2 )

Set/Get the shader program of the vtkProp.

It can be set directly or by defining a Material.

virtual vtkShaderDeviceAdapter2* vtkOpenGLProperty::GetShaderDeviceAdapter2 ( )
virtual

Get the object that can pass vertex attribute to a vtkShaderProgram2.

Reimplemented from vtkProperty.

virtual vtkShaderProgram2* vtkOpenGLProperty::GetCurrentShaderProgram2 ( )
virtual

Get the vtkShaderProgram2 object in use.

virtual void vtkOpenGLProperty::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

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::AddShaderVariable ( const char *  name,
int  numVars,
float 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

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::AddShaderVariable ( const char *  name,
int  numVars,
double 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

Reimplemented from vtkProperty.

static void vtkOpenGLProperty::SetMaterialProperties ( unsigned int  face,
double  ambient,
const double  ambient_color[3],
double  diffuse,
const double  diffuse_color[3],
double  specular,
const double  specular_color[3],
double  specular_power,
double  opacity,
vtkOpenGLRenderWindow context 
)
static

Helper method to set OpenGL material properties.

bool vtkOpenGLProperty::RenderShaders ( vtkActor actor,
vtkRenderer renderer 
)
protected

Method called in vtkOpenGLProperty::Render() to render shaders and/or related entities like shader variables.

Returns true if any shaders were rendered.

bool vtkOpenGLProperty::RenderTextures ( vtkActor actor,
vtkRenderer renderer,
bool  using_shader_program2 
)
protected

Method called in vtkOpenGLProperty::Render() to render textures.

Last argument is the value returned from RenderShaders() call.

void vtkOpenGLProperty::LoadMultiTexturingExtensions ( vtkRenderer ren)
protected

Load OpenGL extensions for multi texturing.

static vtkOpenGLProperty* vtkOpenGLProperty::New ( )
static
static int vtkOpenGLProperty::IsTypeOf ( const char *  type)
static
virtual int vtkOpenGLProperty::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 vtkProperty.

static vtkOpenGLProperty* vtkOpenGLProperty::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkOpenGLProperty::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkProperty.

vtkOpenGLProperty* vtkOpenGLProperty::NewInstance ( ) const
void vtkOpenGLProperty::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 vtkProperty.

void vtkOpenGLProperty::Render ( vtkActor a,
vtkRenderer ren 
)
virtual

Implement base class method.

Reimplemented from vtkProperty.

void vtkOpenGLProperty::BackfaceRender ( vtkActor a,
vtkRenderer ren 
)
virtual

Implement base class method.

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::PostRender ( vtkActor a,
vtkRenderer r 
)
virtual

This method is called after the actor has been rendered.

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

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::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 from vtkProperty.

bool vtkOpenGLProperty::RenderTextures ( vtkActor actor,
vtkRenderer renderer 
)
protected

Method called in vtkOpenGLProperty::Render() to render textures.

Last argument is the value returned from RenderShaders() call.

Member Data Documentation

vtkShaderProgram2* vtkOpenGLProperty::CachedShaderProgram2
protected

Definition at line 138 of file vtkOpenGLProperty.h.

vtkShaderProgram2* vtkOpenGLProperty::LastRendererShaderProgram2
protected

Definition at line 140 of file vtkOpenGLProperty.h.

vtkShaderProgram2* vtkOpenGLProperty::LastPropProgram
protected

Definition at line 141 of file vtkOpenGLProperty.h.

vtkShaderProgram2* vtkOpenGLProperty::PropProgram
protected

Definition at line 142 of file vtkOpenGLProperty.h.

vtkShaderProgram2* vtkOpenGLProperty::CurrentShaderProgram2
protected

Definition at line 146 of file vtkOpenGLProperty.h.

vtkShader2* vtkOpenGLProperty::DefaultMainVS
protected

Definition at line 148 of file vtkOpenGLProperty.h.

vtkShader2* vtkOpenGLProperty::DefaultMainFS
protected

Definition at line 149 of file vtkOpenGLProperty.h.

vtkShader2* vtkOpenGLProperty::DefaultPropVS
protected

Definition at line 150 of file vtkOpenGLProperty.h.

vtkShader2* vtkOpenGLProperty::DefaultPropFS
protected

Definition at line 151 of file vtkOpenGLProperty.h.

bool vtkOpenGLProperty::UseDefaultMainVS
protected

Definition at line 152 of file vtkOpenGLProperty.h.

bool vtkOpenGLProperty::UseDefaultMainFS
protected

Definition at line 153 of file vtkOpenGLProperty.h.

bool vtkOpenGLProperty::UseDefaultPropVS
protected

Definition at line 154 of file vtkOpenGLProperty.h.

bool vtkOpenGLProperty::UseDefaultPropFS
protected

Definition at line 155 of file vtkOpenGLProperty.h.

vtkGLSLShaderDeviceAdapter2* vtkOpenGLProperty::ShaderDeviceAdapter2
protected

Definition at line 156 of file vtkOpenGLProperty.h.


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