sofa::component::visualmodel::OglModel Class Reference

Main class for rendering 3D model in SOFA. More...

#include <OglModel.h>

Inheritance diagram for sofa::component::visualmodel::OglModel:

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

Collaboration graph
[legend]

Public Member Functions

 OglModel ()
 ~OglModel ()
bool loadTexture (const std::string &filename)
void initTextures ()
 Initialize the textures, or other graphical resources.
void initVisual ()
 Initialize the textures, or other graphical resources.

Private Member Functions

void internalDraw ()

Private Attributes

Data< bool > premultipliedAlpha
helper::gl::Texture * tex

Detailed Description

Main class for rendering 3D model in SOFA.

This class implements VisuelModelImpl with rendering functions using OpenGL.

Definition at line 60 of file OglModel.h.


Constructor & Destructor Documentation

sofa::component::visualmodel::OglModel::OglModel (  ) 

Definition at line 53 of file OglModel.cpp.

sofa::component::visualmodel::OglModel::~OglModel (  ) 

Definition at line 59 of file OglModel.cpp.

References tex.


Member Function Documentation

void sofa::component::visualmodel::OglModel::initTextures (  )  [virtual]

Initialize the textures, or other graphical resources.

Deprecated:
Use initVisual() instead.

Reimplemented from sofa::core::VisualModel.

Definition at line 215 of file OglModel.cpp.

References sofa::helper::gl::Texture::init(), and tex.

void sofa::component::visualmodel::OglModel::initVisual (  )  [virtual]

Initialize the textures, or other graphical resources.

Called once before the first frame is drawn, and if the graphical context has been recreated.

Reimplemented from sofa::component::visualmodel::VisualModelImpl.

Definition at line 207 of file OglModel.cpp.

References sofa::helper::gl::Texture::init(), and tex.

void sofa::component::visualmodel::OglModel::internalDraw (  )  [private, virtual]

bool sofa::component::visualmodel::OglModel::loadTexture ( const std::string &  filename  )  [virtual]


Field Documentation

Definition at line 63 of file OglModel.h.

Referenced by internalDraw().

Definition at line 64 of file OglModel.h.

Referenced by initTextures(), initVisual(), internalDraw(), loadTexture(), and ~OglModel().


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

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