12 #ifndef CXVIEWLINKINGVIEWWIDGET_H_ 13 #define CXVIEWLINKINGVIEWWIDGET_H_ 35 retval->mSelf = retval;
44 connect(base, SIGNAL(
resized(QSize)),
this, SIGNAL(
resized(QSize)));
45 connect(base, SIGNAL(
mouseMove(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseMove(
int,
int, Qt::MouseButtons)));
46 connect(base, SIGNAL(
mousePress(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mousePress(
int,
int, Qt::MouseButtons)));
47 connect(base, SIGNAL(
mouseRelease(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseRelease(
int,
int, Qt::MouseButtons)));
48 connect(base, SIGNAL(
mouseWheel(
int,
int,
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseWheel(
int,
int,
int,
int, Qt::MouseButtons)));
49 connect(base, SIGNAL(
shown()),
this, SIGNAL(
shown()));
50 connect(base, SIGNAL(
focusChange(
bool, Qt::FocusReason)),
this, SIGNAL(
focusChange(
bool, Qt::FocusReason)));
51 connect(base, SIGNAL(customContextMenuRequestedInGlobalPos(
const QPoint &)),
this, SIGNAL(
customContextMenuRequested(
const QPoint &)));
65 mBase->setZoomFactor(factor);
70 return mBase->getZoomFactor();
76 return mBase->get_vpMs();
77 return Transform3D::Identity();
82 return mBase->getViewport();
88 return mBase->getViewport_s();
93 QPointer<ViewWidget> mBase;
void customContextMenuRequested(const QPoint &)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
void focusChange(bool gotFocus, Qt::FocusReason reason)
void mouseWheel(int x, int y, int delta, int orientation, Qt::MouseButtons buttons)
vtkSmartPointer< class vtkRenderWindow > vtkRenderWindowPtr
void mouseRelease(int x, int y, Qt::MouseButtons buttons)
void mousePress(int x, int y, Qt::MouseButtons buttons)
static DoubleBoundingBox3D zero()
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.
void mouseMove(int x, int y, Qt::MouseButtons buttons)
Namespace for all CustusX production code.