Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkLevelWindowWidget.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #include "QmitkLevelWindowWidget.h"
14 
15 QmitkLevelWindowWidget::QmitkLevelWindowWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
16 {
17  this->setupUi(this);
18 
20 
21  SliderLevelWindowWidget->SetLevelWindowManager(m_Manager.GetPointer());
22  LineEditLevelWindowWidget->SetLevelWindowManager(m_Manager.GetPointer());
23 }
24 
26 {
27  m_Manager->SetDataStorage(ds);
28 }
29 
31 {
32  return m_Manager.GetPointer();
33 }
Data management class that handles 'was created by' relations.
QmitkLevelWindowWidget(QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
void SetDataStorage(mitk::DataStorage *ds)
mitk::LevelWindowManager::Pointer m_Manager
static Pointer New()
Provides access to the LevelWindowProperty object and LevelWindow of the "current" image...
mitk::LevelWindowManager * GetManager()