#include <base_viewer.h>
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 |
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().
ViewerNS::BaseViewer::BaseViewer | ( | QWidget * | parent = 0 |
) |
Constructor.
parent | : the parent widget (0 if there is no parent). |
void ViewerNS::BaseViewer::displayMesh | ( | const MeshNS::Polyhedron & | polyhedron | ) | [virtual] |
Display a polyhedron.
polyhedron | : the polyhedron to render |
QString ViewerNS::BaseViewer::helpString | ( | ) | const [slot] |
virtual void ViewerNS::BaseViewer::load | ( | const QString & | basename | ) | [pure virtual, slot] |
Load a new mesh from basename.
basename | : the file to load. |