| 22 | #include <algorithm> |
| 23 | |
| 24 | QmitkOverlayController::QmitkOverlayController(QmitkRenderWindow *rw, mitk::PropertyList *pl) |
| 25 | : QObject(), m_RenderWindow(rw), m_PropertyList(pl) |
| 26 | { |
| 27 | if (m_RenderWindow == nullptr) |
| 28 | { |
| 29 | MITK_ERROR << "invalid QmitkRenderWindow"; |
| 30 | return; |
| 31 | } |
| 32 | |
| 33 | connect(rw, SIGNAL(moved()), this, SLOT(AdjustAllOverlayPosition())); |
| 34 | |
| 35 | this->InitializeOverlayLayout(); |
| 36 | this->AdjustAllOverlayPosition(); |
| 37 | this->SetOverlayVisibility(true); |
| 38 | |
| 39 | if (m_PropertyList.IsNull()) |
| 40 | m_PropertyList = mitk::PropertyList::New(); |
| 41 | } |
| 42 | |
| 43 | QmitkOverlayController::~QmitkOverlayController() |
| 44 | { |
nothing calls this directly
no test coverage detected