Files
cgal/GraphicsView/demo/Triangulation_2/Terrain/Viewer.h
T
Laurent Rineau e3b02d40c5 - MainWindow.ui: add shortcuts
- Terrain.cpp: let users pass a filepath as first argument.
- Viewer: 
   - draw constraints edges in red,
   - use lighting when needed.
2009-01-30 16:09:47 +00:00

43 lines
501 B
C++

#ifndef VIEWER_H
#define VIEWER_H
#include "typedefs.h"
#include <QGLViewer/qglviewer.h>
class Viewer : public QGLViewer {
Q_OBJECT
CGAL::Timer timer;
Scene* scene;
int nr_of_facets;
public:
Viewer(QWidget* parent)
: QGLViewer(parent)
{}
void setScene(Scene* scene_)
{
scene = scene_;
}
void clear();
public:
void draw();
void gl_draw_vertices();
void gl_draw_surface();
void gl_draw_constraints();
public slots :
void sceneChanged();
};
#endif