21 #include <QHBoxLayout>
23 #include <QVBoxLayout>
28 QVBoxLayout *vlayout =
new QVBoxLayout(
this);
29 QWidget *labelContainer =
new QWidget(
this);
30 vlayout->addStretch(1);
31 vlayout->addWidget(labelContainer);
32 vlayout->addStretch(1);
34 QHBoxLayout *hlayout =
new QHBoxLayout(labelContainer);
37 QPixmap pixmap(
":QmitkStandardViews.png");
59 hlayout->addStretch(1);
61 hlayout->addStretch(1);
83 std::cerr <<
"Warning in " << __FILE__ <<
", " << __LINE__ <<
": render window is NULL!" << std::endl;
94 else if (s ==
"Right")
98 else if (s ==
"Bottom")
100 else if (s ==
"Front")
102 else if (s ==
"Back")
106 std::cerr <<
"Warning in " << __FILE__ <<
", " << __LINE__ <<
": unknown standard view '" << s.toStdString() <<
"'"
QmitkStandardViews(QWidget *parent=0, Qt::WindowFlags f=0)
static BaseRenderer * GetInstance(vtkRenderWindow *renWin)
mitk::CameraController::Pointer m_CameraController
virtual ~QmitkStandardViews()
A QLabel with multiple hotspots, that can be clicked.
void AddHotspot(const QString &name, const QRect position)
void hotspotClicked(const QString &s)
void SetCameraController(mitk::CameraController *controller)
virtual CameraController * GetCameraController()
void StandardViewDefined(mitk::CameraController::StandardView view)
void SetCameraControllerFromRenderWindow(vtkRenderWindow *window)
QClickableLabel * m_ClickablePicture
controls the camera used by the associated BaseRenderer