mirror of https://github.com/CGAL/cgal
40 lines
671 B
C++
40 lines
671 B
C++
#ifndef VIEWER_H
|
|
#define VIEWER_H
|
|
|
|
#include <QGLViewer/qglviewer.h>
|
|
|
|
// forward declarations
|
|
class QWidget;
|
|
class Scene;
|
|
|
|
class Viewer : public QGLViewer {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Viewer(QWidget * parent, bool antialiasing = false);
|
|
|
|
// overload several QGLViewer virtual functions
|
|
void draw();
|
|
void initializeGL();
|
|
void drawWithNames();
|
|
void postSelection(const QPoint&);
|
|
|
|
void setScene(Scene* scene);
|
|
bool antiAliasing() const { return antialiasing; }
|
|
|
|
signals:
|
|
void selected(int);
|
|
|
|
public slots:
|
|
void setAntiAliasing(bool b);
|
|
|
|
private:
|
|
void draw_aux(bool with_names);
|
|
|
|
Scene* scene;
|
|
bool antialiasing;
|
|
}; // end class Viewer
|
|
|
|
#endif // VIEWER_H
|