vtkOpenGLProperty Class Reference

#include <vtkOpenGLProperty.h>

Inheritance diagram for vtkOpenGLProperty:

Inheritance graph
[legend]
Collaboration diagram for vtkOpenGLProperty:

Collaboration graph
[legend]

List of all members.


Detailed Description

OpenGL property.

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

Definition at line 33 of file vtkOpenGLProperty.h.


Public Types

typedef vtkProperty Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
void Render (vtkActor *a, vtkRenderer *ren)
void BackfaceRender (vtkActor *a, vtkRenderer *ren)
virtual void ReleaseGraphicsResources (vtkWindow *win)
virtual void PostRender (vtkActor *a, vtkRenderer *r)
virtual vtkShaderProgram2GetPropProgram ()
void SetPropProgram (vtkShaderProgram2 *)
virtual
vtkGLSLShaderDeviceAdapter2
GetShaderDeviceAdapter2 ()
virtual vtkShaderProgram2GetCurrentShaderProgram2 ()
virtual void AddShaderVariable (const char *name, int numVars, int *x)
virtual void AddShaderVariable (const char *name, int numVars, float *x)
virtual void AddShaderVariable (const char *name, int numVars, double *x)

Static Public Member Functions

static vtkOpenGLPropertyNew ()
static int IsTypeOf (const char *type)
static vtkOpenGLPropertySafeDownCast (vtkObject *o)

Protected Member Functions

 vtkOpenGLProperty ()
 ~vtkOpenGLProperty ()
void LoadMultiTexturingExtensions (vtkRenderer *ren)
virtual void ReadFrameworkMaterial ()

Protected Attributes

vtkShaderProgram2CachedShaderProgram2
vtkShaderProgram2LastRendererShaderProgram2
vtkShaderProgram2LastPropProgram
vtkShaderProgram2PropProgram
vtkShaderProgram2CurrentShaderProgram2
vtkShader2DefaultMainVS
vtkShader2DefaultMainFS
vtkShader2DefaultPropVS
vtkShader2DefaultPropFS
bool UseDefaultMainVS
bool UseDefaultMainFS
bool UseDefaultPropVS
bool UseDefaultPropFS
vtkGLSLShaderDeviceAdapter2ShaderDeviceAdapter2

Member Typedef Documentation

Reimplemented from vtkProperty.

Definition at line 37 of file vtkOpenGLProperty.h.


Constructor & Destructor Documentation

vtkOpenGLProperty::vtkOpenGLProperty (  )  [protected]

vtkOpenGLProperty::~vtkOpenGLProperty (  )  [protected]


Member Function Documentation

static vtkOpenGLProperty* vtkOpenGLProperty::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.

Reimplemented from vtkProperty.

virtual const char* vtkOpenGLProperty::GetClassName (  )  [virtual]

Reimplemented from vtkProperty.

static int vtkOpenGLProperty::IsTypeOf ( const char *  name  )  [static]

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

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 ( vtkObject o  )  [static]

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

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 vtkGLSLShaderDeviceAdapter2* vtkOpenGLProperty::GetShaderDeviceAdapter2 (  )  [virtual]

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

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.

void vtkOpenGLProperty::LoadMultiTexturingExtensions ( vtkRenderer ren  )  [protected]

Load OpenGL extensions for multi texturing.

virtual void vtkOpenGLProperty::ReadFrameworkMaterial (  )  [protected, virtual]

Read this->Material from new style shaders.

Reimplemented from vtkProperty.


Member Data Documentation

Definition at line 99 of file vtkOpenGLProperty.h.

Definition at line 101 of file vtkOpenGLProperty.h.

Definition at line 102 of file vtkOpenGLProperty.h.

Definition at line 103 of file vtkOpenGLProperty.h.

Definition at line 107 of file vtkOpenGLProperty.h.

Definition at line 109 of file vtkOpenGLProperty.h.

Definition at line 110 of file vtkOpenGLProperty.h.

Definition at line 111 of file vtkOpenGLProperty.h.

Definition at line 112 of file vtkOpenGLProperty.h.

Definition at line 113 of file vtkOpenGLProperty.h.

Definition at line 114 of file vtkOpenGLProperty.h.

Definition at line 115 of file vtkOpenGLProperty.h.

Definition at line 116 of file vtkOpenGLProperty.h.

Definition at line 117 of file vtkOpenGLProperty.h.


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

Generated on Mon Sep 27 18:37:19 2010 for VTK by  doxygen 1.5.6