Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkScalarBarOverlay.h
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 
17 #ifndef MITKSCALARBAROVERLAY_H_HEADER_INCLUDED_C10DC4EB
18 #define MITKSCALARBAROVERLAY_H_HEADER_INCLUDED_C10DC4EB
19 
20 #include <MitkQtOverlaysExports.h>
21 
22 // MITK-Stuff
23 #include "QmitkOverlay.h"
24 #include "mitkCommon.h"
25 #include "mitkPropertyList.h"
26 #include <QmitkScalarBar.h>
27 
35 {
36  Q_OBJECT
37 
38 public:
42  QmitkScalarBarOverlay(const char *id);
43 
47  virtual ~QmitkScalarBarOverlay();
48 
58  virtual void GenerateData(mitk::PropertyList::Pointer) override;
59 
60  QSize GetNeededSize() override;
61 
62 protected:
71  void GetProperties(mitk::PropertyList::Pointer);
72 
73  void SetupCallback(mitk::BaseProperty::Pointer prop);
74 
75  void SetScaleFactor();
78 
80 
82  unsigned long m_ObserverTag;
83 };
84 
85 #endif /* MITKSCALARBAROVERLAY_H_HEADER_INCLUDED_C10DC4EB */
object representing a text that is drawn as an overlay
mitk::PropertyList::Pointer m_PropertyList
Abstract base class for all overlay-objects in MITK.
Definition: QmitkOverlay.h:53
virtual void GenerateData(mitk::PropertyList::Pointer)
abstract method to internally setup the overlay
Definition: QmitkOverlay.h:96
QmitkScalarBar * m_ScalarBar
QWidget internally representing the TextOverlay.
virtual QSize GetNeededSize()=0
#define MITKQTOVERLAYS_EXPORT
mitk::BaseProperty::Pointer m_ObservedProperty