12 #ifndef CXVIEWCONTAINERITEM_H_ 13 #define CXVIEWCONTAINERITEM_H_ 16 #include <boost/shared_ptr.hpp> 19 #include <QLayoutItem> 28 class DoubleBoundingBox3D;
29 typedef boost::shared_ptr<class Rep>
RepPtr;
38 class ViewItem :
public QObject,
public QLayoutItem
50 virtual QSize
size()
const {
return mGeometry.size(); }
61 virtual QRect
geometry()
const {
return mGeometry; }
62 virtual bool isEmpty()
const {
return false; }
73 void mouseWheelSlot(
int x,
int y,
int delta,
int orientation, Qt::MouseButtons buttons) { emit
mouseWheel(x, y, delta, orientation, buttons); }
79 void mouseMove(
int x,
int y, Qt::MouseButtons buttons);
80 void mousePress(
int x,
int y, Qt::MouseButtons buttons);
81 void mouseRelease(
int x,
int y, Qt::MouseButtons buttons);
82 void mouseWheel(
int x,
int y,
int delta,
int orientation, Qt::MouseButtons buttons);
84 void focusChange(
bool gotFocus, Qt::FocusReason reason);
88 double mmPerPix()
const;
93 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.