12 #ifndef CXVIEWWIDGET_H_
13 #define CXVIEWWIDGET_H_
15 #include "QVTKWidget.h"
29 class cxResourceVisualization_EXPORT
ViewWidget :
public QVTKWidget
32 typedef QVTKWidget inherited;
40 virtual vtkRenderWindowPtr getRenderWindow() {
return this->getView()->getRenderWindow(); }
41 virtual QSize
size()
const {
return inherited::size(); }
42 virtual void setZoomFactor(
double factor);
44 virtual double getZoomFactor()
const;
46 virtual double mmPerPix()
const;
54 void resized(QSize size);
55 void mouseMove(
int x,
int y, Qt::MouseButtons buttons);
56 void mousePress(
int x,
int y, Qt::MouseButtons buttons);
57 void mouseRelease(
int x,
int y, Qt::MouseButtons buttons);
58 void mouseWheel(
int x,
int y,
int delta,
int orientation, Qt::MouseButtons buttons);
60 void focusChange(
bool gotFocus, Qt::FocusReason reason);
61 void customContextMenuRequestedInGlobalPos(
const QPoint&);
64 void customContextMenuRequestedSlot(
const QPoint& point);
66 virtual void showEvent(QShowEvent* event);
67 virtual void wheelEvent(QWheelEvent*);
68 virtual void mouseMoveEvent(QMouseEvent *event);
69 virtual void mousePressEvent(QMouseEvent *event);
70 virtual void mouseReleaseEvent(QMouseEvent *event);
71 virtual void focusInEvent(QFocusEvent* event);
72 virtual void resizeEvent(QResizeEvent *event);
73 virtual void paintEvent(QPaintEvent *event);
76 boost::shared_ptr<class ViewRepCollection> mView;
77 unsigned long mMTimeHash;