17 #include <QHBoxLayout> 19 #include <QVBoxLayout> 24 QVBoxLayout *vlayout =
new QVBoxLayout(
this);
25 QWidget *labelContainer =
new QWidget(
this);
26 vlayout->addStretch(1);
27 vlayout->addWidget(labelContainer);
28 vlayout->addStretch(1);
30 QHBoxLayout *hlayout =
new QHBoxLayout(labelContainer);
33 QPixmap pixmap(
":QmitkStandardViews.png");
55 hlayout->addStretch(1);
57 hlayout->addStretch(1);
71 if (window !=
nullptr)
79 std::cerr <<
"Warning in " << __FILE__ <<
", " << __LINE__ <<
": render window is nullptr!" << std::endl;
90 else if (s ==
"Right")
94 else if (s ==
"Bottom")
96 else if (s ==
"Front")
102 std::cerr <<
"Warning in " << __FILE__ <<
", " << __LINE__ <<
": unknown standard view '" << s.toStdString() <<
"'"
static BaseRenderer * GetInstance(vtkRenderWindow *renWin)
mitk::CameraController::Pointer m_CameraController
A QLabel with multiple hotspots, that can be clicked.
~QmitkStandardViews() override
void AddHotspot(const QString &name, const QRect position)
void hotspotClicked(const QString &s)
QmitkStandardViews(QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
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