ViewerNS::BaseViewer Class Reference

The base class responsible for displaying 3D informations (such as mesh). More...

#include <base_viewer.h>

Inheritance diagram for ViewerNS::BaseViewer:

Inheritance graph
[legend]

Public Slots

void invertSmooth ()
 Invert the rendering (from smooth to wireframe or wrireframe to smooth).
void swapSnapshot ()
 Activate/Desactivate snaphot.
QString helpString () const
 Get the help string associated to the BaseViewer.
virtual void load (const QString &basename)=0
 Load a new mesh from basename.

Public Member Functions

 BaseViewer (QWidget *parent=0)
 Constructor.
virtual void displayMesh (const MeshNS::Polyhedron &polyhedron)
 Display a polyhedron.

Protected Attributes

MeshNS::RenderMode _renderMode
bool _snapshot

Detailed Description

The base class responsible for displaying 3D informations (such as mesh).

This class is the base class for displaying 3D informations. If you want to provide a new kind of display, you should inherit this class and either overload the displayMesh (to add a new mesh display technic) and (later or) overload draw().

Warning:
draw will provide a basic display in BaseViewer.
Todo:
the MeshSequence should be in this class
Todo:
add osd information display

Constructor & Destructor Documentation

ViewerNS::BaseViewer::BaseViewer ( QWidget *  parent = 0  ) 

Constructor.

Parameters:
parent : the parent widget (0 if there is no parent).


Member Function Documentation

void ViewerNS::BaseViewer::displayMesh ( const MeshNS::Polyhedron polyhedron  )  [virtual]

Display a polyhedron.

Parameters:
polyhedron : the polyhedron to render

QString ViewerNS::BaseViewer::helpString (  )  const [slot]

Get the help string associated to the BaseViewer.

Returns:
a Qstring containing help.

virtual void ViewerNS::BaseViewer::load ( const QString &  basename  )  [pure virtual, slot]

Load a new mesh from basename.

Parameters:
basename : the file to load.
Todo:
Is this still necessary.


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

Generated on Fri Jan 16 13:05:58 2009 by  doxygen 1.5.5