Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
mitkBaseProperty.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 mitkBaseProperty_h
14
#define mitkBaseProperty_h
15
16
#include <
MitkCoreExports.h
>
17
#include <itkObjectFactory.h>
18
#include <
mitkCommon.h
>
19
#include <string>
20
21
namespace
mitk
22
{
35
class
MITKCORE_EXPORT
BaseProperty
:
public
itk::Object
36
{
37
public
:
38
mitkClassMacroItkParent
(
BaseProperty
, itk::Object);
39
itkCloneMacro(
Self
);
40
45
bool
46
operator==
(
const
BaseProperty
&property)
const
;
47
55
BaseProperty
&operator=(
const
BaseProperty
&property);
56
62
bool
AssignProperty(
const
BaseProperty
&property);
63
64
virtual
std::string GetValueAsString()
const
;
65
69
static
const
std::string
VALUE_CANNOT_BE_CONVERTED_TO_STRING
;
70
71
protected
:
72
BaseProperty
();
73
BaseProperty
(
const
BaseProperty
&other);
74
75
~
BaseProperty
()
override
;
76
77
private
:
82
virtual
bool
IsEqual(
const
BaseProperty
&property)
const
= 0;
83
93
virtual
bool
Assign(
const
BaseProperty
&) = 0;
94
};
95
96
}
// namespace mitk
97
98
#endif
mitk::BaseProperty
Abstract base class for properties.
Definition:
mitkBaseProperty.h:35
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition:
mitkCommon.h:45
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
mitk::BaseProperty::VALUE_CANNOT_BE_CONVERTED_TO_STRING
static const std::string VALUE_CANNOT_BE_CONVERTED_TO_STRING
Default return value if a property which can not be returned as string.
Definition:
mitkBaseProperty.h:69
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
MitkCoreExports.h
mitkCommon.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkBaseProperty.h
Generated on Wed May 17 2023 16:26:04 for Medical Imaging Interaction Toolkit by
1.8.17