Medical Imaging Interaction Toolkit  2024.06.00
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 (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 
13 #ifndef QmitkTextOverlay_h
14 #define QmitkTextOverlay_h
15 
16 // MITK
17 #include "QmitkOverlay.h"
18 #include "mitkCommon.h"
19 #include "mitkPropertyList.h"
20 
21 // Qt
22 #include <QLabel>
23 
24 #include <MitkQtOverlaysExports.h>
25 
56 {
57 public:
61  QmitkTextOverlay(const char *id);
62 
66  ~QmitkTextOverlay() override;
67 
78 
79  QSize GetNeededSize() override;
80 
81 protected:
90  void UpdateFontProperties(mitk::PropertyList::Pointer);
91 
92  void SetupCallback(mitk::BaseProperty::Pointer prop);
93 
94  void UpdateDisplayedTextFromProperties();
95 
97  QLabel *m_Label;
98 
100 
102 
103  unsigned long m_ObserverTag;
104 };
105 
106 #endif
QmitkTextOverlay::m_ObserverTag
unsigned long m_ObserverTag
Definition: QmitkTextOverlay.h:103
MitkQtOverlaysExports.h
QmitkTextOverlay::m_Label
QLabel * m_Label
QLabel internally representing the TextOverlay.
Definition: QmitkTextOverlay.h:97
QmitkOverlay
Abstract base class for all overlay-objects in MITK.
Definition: QmitkOverlay.h:49
itk::SmartPointer< Self >
QmitkTextOverlay::m_ObservedProperty
mitk::BaseProperty::Pointer m_ObservedProperty
Definition: QmitkTextOverlay.h:101
mitkPropertyList.h
mitkCommon.h
MITKQTOVERLAYS_EXPORT
#define MITKQTOVERLAYS_EXPORT
Definition: MitkQtOverlaysExports.h:15
QmitkOverlay.h
QmitkOverlay::GenerateData
virtual void GenerateData(mitk::PropertyList::Pointer)
abstract method to internally setup the overlay
Definition: QmitkOverlay.h:92
QmitkOverlay::GetNeededSize
virtual QSize GetNeededSize()=0
QmitkTextOverlay::m_PropertyList
mitk::PropertyList::Pointer m_PropertyList
Definition: QmitkTextOverlay.h:99
QmitkTextOverlay
object representing a text that is drawn as an overlay
Definition: QmitkTextOverlay.h:55