33 #ifndef CXVIEWCONTAINERITEM_H_ 34 #define CXVIEWCONTAINERITEM_H_ 37 #include <boost/shared_ptr.hpp> 40 #include <QLayoutItem> 49 class DoubleBoundingBox3D;
50 typedef boost::shared_ptr<class Rep>
RepPtr;
59 class ViewItem :
public QObject,
public QLayoutItem
71 virtual QSize
size()
const {
return mGeometry.size(); }
82 virtual QRect
geometry()
const {
return mGeometry; }
83 virtual bool isEmpty()
const {
return false; }
94 void mouseWheelSlot(
int x,
int y,
int delta,
int orientation, Qt::MouseButtons buttons) { emit
mouseWheel(x, y, delta, orientation, buttons); }
100 void mouseMove(
int x,
int y, Qt::MouseButtons buttons);
101 void mousePress(
int x,
int y, Qt::MouseButtons buttons);
102 void mouseRelease(
int x,
int y, Qt::MouseButtons buttons);
103 void mouseWheel(
int x,
int y,
int delta,
int orientation, Qt::MouseButtons buttons);
105 void focusChange(
bool gotFocus, Qt::FocusReason reason);
109 double mmPerPix()
const;
114 boost::shared_ptr<class ViewRepCollection> mView;
virtual QSize sizeHint() const
void mouseWheelSlot(int x, int y, int delta, int orientation, Qt::MouseButtons buttons)
void mouseMove(int x, int y, Qt::MouseButtons buttons)
virtual void setModified()
virtual DoubleBoundingBox3D getViewport_s() const
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
void mouseRelease(int x, int y, Qt::MouseButtons buttons)
void mousePress(int x, int y, Qt::MouseButtons buttons)
virtual void setGeometry(const QRect &r)
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
virtual void setZoomFactor(double factor)
virtual QSize maximumSize() const
virtual bool isEmpty() const
void mouseReleaseSlot(int x, int y, Qt::MouseButtons buttons)
virtual Qt::Orientations expandingDirections() const
void mousePressSlot(int x, int y, Qt::MouseButtons buttons)
void focusChange(bool gotFocus, Qt::FocusReason reason)
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
ViewItem(QString uid, QString name, QWidget *parent, vtkRenderWindowPtr renderWindow, QRect rect)
void mouseWheel(int x, int y, int delta, int orientation, Qt::MouseButtons buttons)
virtual vtkRendererPtr getRenderer()
void mouseMoveSlot(int x, int y, Qt::MouseButtons buttons)
virtual QSize minimumSize() const
boost::shared_ptr< class ViewRepCollection > ViewRepCollectionPtr
virtual DoubleBoundingBox3D getViewport() const
virtual Transform3D get_vpMs() const
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.
void customContextMenuRequestedInGlobalPos(const QPoint &)
virtual vtkRenderWindowPtr getRenderWindow()
void resizedSlot(QSize size)
void customContextMenuRequestedGlobalSlot(const QPoint &point)
virtual double getZoomFactor() const
boost::shared_ptr< class Rep > RepPtr
ViewRepCollectionPtr getView()
virtual QSize size() const
virtual QRect geometry() const
Namespace for all CustusX production code.