|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
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;
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,...
virtual double getZoomFactor() const
virtual vtkRendererPtr getRenderer()
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
Namespace for all CustusX production code.
void mouseWheel(int x, int y, int delta, int orientation, Qt::MouseButtons buttons)
void customContextMenuRequestedInGlobalPos(const QPoint &)
virtual bool isEmpty() const
virtual QSize size() const
virtual QSize maximumSize() const
virtual vtkRenderWindowPtr getRenderWindow()
virtual DoubleBoundingBox3D getViewport_s() const
boost::shared_ptr< class ViewRepCollection > ViewRepCollectionPtr
virtual QSize sizeHint() const
ViewRepCollectionPtr getView()
void mouseMove(int x, int y, Qt::MouseButtons buttons)
void resizedSlot(QSize size)
boost::shared_ptr< class Rep > RepPtr
void customContextMenuRequestedGlobalSlot(const QPoint &point)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
virtual Transform3D get_vpMs() const
virtual Qt::Orientations expandingDirections() const
void mouseWheelSlot(int x, int y, int delta, int orientation, Qt::MouseButtons buttons)
virtual void setModified()
virtual void setGeometry(const QRect &r)
void mouseRelease(int x, int y, Qt::MouseButtons buttons)
virtual void setZoomFactor(double factor)
void mouseReleaseSlot(int x, int y, Qt::MouseButtons buttons)
void mousePress(int x, int y, Qt::MouseButtons buttons)
virtual QSize minimumSize() const
void focusChange(bool gotFocus, Qt::FocusReason reason)
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
void mouseMoveSlot(int x, int y, Qt::MouseButtons buttons)
virtual DoubleBoundingBox3D getViewport() const
ViewItem(QString uid, QString name, QWidget *parent, vtkRenderWindowPtr renderWindow, QRect rect)
virtual QRect geometry() const
void mousePressSlot(int x, int y, Qt::MouseButtons buttons)