33 #ifndef CXVIEWLINKINGVIEWWIDGET_H_
34 #define CXVIEWLINKINGVIEWWIDGET_H_
56 retval->mSelf = retval;
65 connect(base, SIGNAL(
resized(QSize)),
this, SIGNAL(
resized(QSize)));
66 connect(base, SIGNAL(
mouseMove(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseMove(
int,
int, Qt::MouseButtons)));
67 connect(base, SIGNAL(
mousePress(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mousePress(
int,
int, Qt::MouseButtons)));
68 connect(base, SIGNAL(
mouseRelease(
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseRelease(
int,
int, Qt::MouseButtons)));
69 connect(base, SIGNAL(
mouseWheel(
int,
int,
int,
int, Qt::MouseButtons)),
this, SIGNAL(
mouseWheel(
int,
int,
int,
int, Qt::MouseButtons)));
70 connect(base, SIGNAL(
shown()),
this, SIGNAL(
shown()));
71 connect(base, SIGNAL(
focusChange(
bool, Qt::FocusReason)),
this, SIGNAL(
focusChange(
bool, Qt::FocusReason)));
72 connect(base, SIGNAL(customContextMenuRequestedInGlobalPos(
const QPoint &)),
this, SIGNAL(
customContextMenuRequested(
const QPoint &)));
86 mBase->setZoomFactor(factor);
91 return mBase->getZoomFactor();
97 return mBase->get_vpMs();
98 return Transform3D::Identity();
103 return mBase->getViewport();
109 return mBase->getViewport_s();
114 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)