20 retval->mSelf = retval;
29 connect(base, SIGNAL(
resized(QSize)),
this, SIGNAL(
resized(QSize)));
30 connect(base, SIGNAL(
mouseMove(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseMove(
int,
int, Qt::MouseButtons)));
31 connect(base, SIGNAL(
mousePress(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mousePress(
int,
int, Qt::MouseButtons)));
32 connect(base, SIGNAL(
mouseRelease(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseRelease(
int,
int, Qt::MouseButtons)));
33 connect(base, SIGNAL(
mouseWheel(
int,
int,
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseWheel(
int,
int,
int,
int, Qt::MouseButtons)));
34 connect(base, SIGNAL(
shown()),
this, SIGNAL(
shown()));
35 connect(base, SIGNAL(
focusChange(
bool, Qt::FocusReason)),
this, SIGNAL(
focusChange(
bool, Qt::FocusReason)));
36 connect(base, SIGNAL(customContextMenuRequestedInGlobalPos(
const QPoint &)),
this, SIGNAL(
customContextMenuRequested(
const QPoint &)));
50 mBase->setZoomFactor(factor);
55 return mBase->getZoomFactor();
61 return mBase->get_vpMs();
62 return Transform3D::Identity();
67 return mBase->getViewport();
73 return mBase->getViewport_s();
void customContextMenuRequested(const QPoint &)
virtual double getZoomFactor() const
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
ViewLinkingViewContainerItem(ViewItem *base, vtkRenderWindowPtr renderWindow)
virtual DoubleBoundingBox3D getViewport() const
virtual Transform3D get_vpMs() const
static ViewRepCollectionPtr create(ViewItem *base, vtkRenderWindowPtr renderWindow)
virtual void setZoomFactor(double factor)
void mouseRelease(int x, int y, Qt::MouseButtons buttons)
void mousePress(int x, int y, Qt::MouseButtons buttons)
virtual ~ViewLinkingViewContainerItem()
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.
virtual QSize size() const
void mouseMove(int x, int y, Qt::MouseButtons buttons)
virtual DoubleBoundingBox3D getViewport_s() const
Namespace for all CustusX production code.