Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
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 (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 QmitkScalarBarOverlay_h
14 #define QmitkScalarBarOverlay_h
15 
16 #include <MitkQtOverlaysExports.h>
17 
18 // MITK-Stuff
19 #include "QmitkOverlay.h"
20 #include "mitkCommon.h"
21 #include "mitkPropertyList.h"
22 #include <QmitkScalarBar.h>
23 
31 {
32  Q_OBJECT
33 
34 public:
38  QmitkScalarBarOverlay(const char *id);
39 
44 
54  void GenerateData(mitk::PropertyList::Pointer) override;
55 
56  QSize GetNeededSize() override;
57 
58 protected:
67  void GetProperties(mitk::PropertyList::Pointer);
68 
69  void SetupCallback(mitk::BaseProperty::Pointer prop);
70 
74 
75  mitk::BaseProperty::Pointer m_ObservedProperty;
76 
77  mitk::PropertyList::Pointer m_PropertyList;
78  unsigned long m_ObserverTag;
79 };
80 
81 #endif
#define MITKQTOVERLAYS_EXPORT
Abstract base class for all overlay-objects in MITK.
Definition: QmitkOverlay.h:50
object representing a text that is drawn as an overlay
void SetupCallback(mitk::BaseProperty::Pointer prop)
void GetProperties(mitk::PropertyList::Pointer)
internal helper class to determine text-properties
QSize GetNeededSize() override
~QmitkScalarBarOverlay() override
Default Destructor.
mitk::BaseProperty::Pointer m_ObservedProperty
QmitkScalarBarOverlay(const char *id)
Default Constructor.
void GenerateData(mitk::PropertyList::Pointer) override
Setup the QLabel with overlay specific information.
QmitkScalarBar * m_ScalarBar
QWidget internally representing the TextOverlay.
mitk::PropertyList::Pointer m_PropertyList