12 #ifndef CXVIEWWIDGET_H_ 13 #define CXVIEWWIDGET_H_ 15 #include "QVTKWidget.h" 29 class cxResourceVisualization_EXPORT
ViewWidget :
public QVTKWidget
32 typedef QVTKWidget inherited;
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;
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
boost::shared_ptr< class ViewRepCollection > ViewRepCollectionPtr
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
boost::shared_ptr< class RenderWindowFactory > RenderWindowFactoryPtr
Namespace for all CustusX production code.