Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #include "QmitkLevelWindowWidget.h"
18 
19 QmitkLevelWindowWidget::QmitkLevelWindowWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
20 {
21  this->setupUi(this);
22 
24 
25  SliderLevelWindowWidget->setLevelWindowManager(m_Manager.GetPointer());
26  LineEditLevelWindowWidget->setLevelWindowManager(m_Manager.GetPointer());
27 }
28 
30 {
31  m_Manager->SetDataStorage(ds);
32 }
33 
35 {
36  return m_Manager.GetPointer();
37 }
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()