Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Groups
Namespace List
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Variables
e
i
l
m
n
p
r
s
t
Typedefs
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
x
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Class List
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Properties
c
m
o
r
s
t
Related Functions
File List
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
Functions
_
e
g
h
i
m
o
q
s
u
Variables
Typedefs
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
i
l
m
o
p
q
r
s
u
v
Examples
Download
Bug Tracker
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
mitkColorProperty.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 mitkColorProperty_h
14
#define mitkColorProperty_h
15
16
#include "
mitkBaseProperty.h
"
17
#include <
MitkCoreExports.h
>
18
#include <itkRGBPixel.h>
19
20
namespace
mitk
21
{
22
#ifdef _MSC_VER
23
#pragma warning(push)
24
#pragma warning(disable : 4522)
25
#endif
26
35
typedef
itk::RGBPixel<float>
Color
;
36
47
class
MITKCORE_EXPORT
ColorProperty
:
public
BaseProperty
48
{
49
protected
:
50
mitk::Color
m_Color
;
51
52
ColorProperty
();
53
54
ColorProperty
(
const
ColorProperty
&other);
55
56
ColorProperty
(
const
float
red,
const
float
green,
const
float
blue);
57
58
ColorProperty
(
const
float
color[3]);
59
60
ColorProperty
(
const
mitk::Color
&color);
61
62
public
:
63
mitkClassMacro
(
ColorProperty
,
BaseProperty
);
64
itkFactorylessNewMacro(
Self
);
65
itkCloneMacro(
Self
)
mitkNewMacro1Param
(
ColorProperty
,
const
float
*);
66
mitkNewMacro1Param
(
ColorProperty
,
const
mitk::Color
&);
67
mitkNewMacro3Param
(
ColorProperty
,
const
float
,
const
float
,
const
float
);
68
69
typedef
mitk::Color
ValueType
;
70
71
const
mitk::Color
&GetColor()
const
;
72
const
mitk::Color
&GetValue()
const
;
73
std::string GetValueAsString()
const override
;
74
void
SetColor(
const
mitk::Color
&color);
75
void
SetValue(
const
mitk::Color
&color);
76
void
SetColor(
float
red,
float
green,
float
blue);
77
78
using
BaseProperty::operator=;
79
80
private
:
81
// purposely not implemented
82
ColorProperty
&operator=(
const
ColorProperty
&);
83
84
itk::LightObject::Pointer InternalClone()
const override
;
85
86
bool
IsEqual(
const
BaseProperty
&property)
const override
;
87
bool
Assign(
const
BaseProperty
&property)
override
;
88
};
89
90
#ifdef _MSC_VER
91
#pragma warning(pop)
92
#endif
93
94
}
// namespace mitk
95
96
#endif
mitk::BaseProperty
Abstract base class for properties.
Definition:
mitkBaseProperty.h:35
mitk::ColorProperty::ValueType
mitk::Color ValueType
Definition:
mitkColorProperty.h:67
mitk::ColorProperty::m_Color
mitk::Color m_Color
Definition:
mitkColorProperty.h:50
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition:
mitkCommon.h:68
mitk::Color
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Definition:
mitkColorProperty.h:35
mitkNewMacro3Param
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition:
mitkCommon.h:94
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitk::ColorProperty
The ColorProperty class RGB color property.
Definition:
mitkColorProperty.h:47
MitkCoreExports.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:36
mitkBaseProperty.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkColorProperty.h
Generated on Wed May 17 2023 16:26:04 for Medical Imaging Interaction Toolkit by
1.8.17