53 #include "QtGLGraphicsView.hh" 64 QtGLGraphicsView::QtGLGraphicsView(QtBaseViewer* _w, QWidget* _parent) :
65 QGraphicsView (_parent),
68 setFocusPolicy(Qt::StrongFocus);
69 setAcceptDrops (
true);
72 void QtGLGraphicsView::resizeEvent(QResizeEvent *_event) {
74 scene()->setSceneRect(QRect(QPoint(0, 0), _event->size()));
75 QGraphicsView::resizeEvent(_event);
76 w_->resizeGL (_event->size().width(), _event->size().height ());
Namespace providing different geometric functions concerning angles.