sofa::component::visualmodel::OglShaderElement Class Reference

Abstract class which defines a element to be used with a OglShader. More...

#include <OglShader.h>

Inheritance diagram for sofa::component::visualmodel::OglShaderElement:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::visualmodel::OglShaderElement:

Collaboration graph
[legend]

Public Member Functions

 OglShaderElement ()
virtual ~OglShaderElement ()
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.

Protected Attributes

Data< std::string > id
 Name of element (corresponding with the shader).
OglShader * shader
 Shader to use the element with.

Detailed Description

Abstract class which defines a element to be used with a OglShader.

This is only an partial implementation of the interface ShaderElement which adds a pointer to its corresponding shader (where it will be used) and the id (or name) of the element.

Definition at line 144 of file OglShader.h.


Constructor & Destructor Documentation

sofa::component::visualmodel::OglShaderElement::OglShaderElement (  ) 

Definition at line 308 of file OglShader.cpp.

virtual sofa::component::visualmodel::OglShaderElement::~OglShaderElement (  )  [inline, virtual]

Definition at line 152 of file OglShader.h.


Member Function Documentation

void sofa::component::visualmodel::OglShaderElement::init ( void   )  [virtual]


Field Documentation

Name of element (corresponding with the shader).

Definition at line 147 of file OglShader.h.


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

Generated on Sun Nov 23 04:21:45 2008 for Sofa by  doxygen 1.5.7.1