Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkTextOverlay.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 MITKTEXTOVERLAY_H_HEADER_INCLUDED_C10DC4EB
18 #define MITKTEXTOVERLAY_H_HEADER_INCLUDED_C10DC4EB
19 
20 // MITK
21 #include "QmitkOverlay.h"
22 #include "mitkCommon.h"
23 #include "mitkPropertyList.h"
24 
25 // Qt
26 #include <QLabel>
27 
28 #include <MitkQtOverlaysExports.h>
29 
60 {
61 public:
65  QmitkTextOverlay(const char *id);
66 
70  virtual ~QmitkTextOverlay();
71 
82 
83  QSize GetNeededSize() override;
84 
85 protected:
94  void UpdateFontProperties(mitk::PropertyList::Pointer);
95 
96  void SetupCallback(mitk::BaseProperty::Pointer prop);
97 
98  void UpdateDisplayedTextFromProperties();
99 
101  QLabel *m_Label;
102 
104 
106 
107  unsigned long m_ObserverTag;
108 };
109 
110 #endif /* MITKTEXTOVERLAY_H_HEADER_INCLUDED_C10DC4EB */
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
mitk::PropertyList::Pointer m_PropertyList
object representing a text that is drawn as an overlay
virtual QSize GetNeededSize()=0
unsigned long m_ObserverTag
mitk::BaseProperty::Pointer m_ObservedProperty
#define MITKQTOVERLAYS_EXPORT
QLabel * m_Label
QLabel internally representing the TextOverlay.