Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkColorPropertyView.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
#ifndef QmitkColorPropertyView_h
13
#define QmitkColorPropertyView_h
14
15
#include "
MitkQtWidgetsExtExports.h
"
16
#include <QLabel>
17
#include <
mitkColorProperty.h
>
18
#include <
mitkPropertyObserver.h
>
19
21
class
MITKQTWIDGETSEXT_EXPORT
QmitkColorPropertyView
:
public
QLabel,
public
mitk::PropertyView
22
{
23
Q_OBJECT
24
25
public
:
26
QmitkColorPropertyView
(
const
mitk::ColorProperty
*, QWidget *parent);
27
~
QmitkColorPropertyView
()
override
;
28
29
protected
:
30
void
PropertyChanged
()
override
;
31
void
PropertyRemoved
()
override
;
32
33
void
DisplayColor();
34
35
const
mitk::ColorProperty
*
m_ColorProperty
;
36
37
QPalette
m_WidgetPalette
;
38
};
39
40
#endif
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition:
MitkQtWidgetsExtExports.h:15
QmitkColorPropertyView::m_WidgetPalette
QPalette m_WidgetPalette
Definition:
QmitkColorPropertyView.h:37
mitk::PropertyView
Definition:
mitkPropertyObserver.h:54
mitk::PropertyObserver::PropertyChanged
virtual void PropertyChanged()=0
mitk::PropertyObserver::PropertyRemoved
virtual void PropertyRemoved()=0
QmitkColorPropertyView::m_ColorProperty
const mitk::ColorProperty * m_ColorProperty
Definition:
QmitkColorPropertyView.h:35
mitk::ColorProperty
The ColorProperty class RGB color property.
Definition:
mitkColorProperty.h:50
QmitkColorPropertyView
Definition:
QmitkColorPropertyView.h:21
mitkPropertyObserver.h
MitkQtWidgetsExtExports.h
mitkColorProperty.h
src
MITK
Modules
QtWidgetsExt
include
QmitkColorPropertyView.h
Generated on Mon Dec 23 2024 02:13:23 for Medical Imaging Interaction Toolkit by
1.8.17