Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
mitkOperationActor.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 mitkOperationActor_h
14
#define mitkOperationActor_h
15
16
#include <
MitkCoreExports.h
>
17
#include <
mitkCommon.h
>
18
20
#define mitkCheckOperationTypeMacro(OperationType, operation, newOperationName) \
21
\
22
OperationType *newOperationName = dynamic_cast<OperationType *>(operation); \
23
\
24
if (newOperationName == nullptr) \
25
\
26
{ \
27
itkWarningMacro("Received wrong type of operation!"); \
28
return; \
29
}
30
31
namespace
mitk
32
{
33
class
Operation;
34
class
OperationEvent;
35
41
class
MITKCORE_EXPORT
OperationActor
42
{
43
public
:
44
itkTypeMacroNoParent
(
OperationActor
)
45
46
virtual
~
OperationActor
()
47
{
48
}
49
virtual
void
ExecuteOperation(
Operation
*operation) = 0;
50
};
51
}
52
53
#endif
mitk::OperationActor
abstract class, that can be used by Undo to undo an operation.
Definition:
mitkOperationActor.h:41
mitk::Operation
Base class of all Operation-classes.
Definition:
mitkOperation.h:29
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
RenderingTests.dox:1
MitkCoreExports.h
mitkCommon.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
mitk::OperationActor::itkTypeMacroNoParent
itkTypeMacroNoParent(OperationActor) virtual ~OperationActor()
Definition:
mitkOperationActor.h:44
src
MITK
Modules
Core
include
mitkOperationActor.h
Generated on Wed May 17 2023 16:26:10 for Medical Imaging Interaction Toolkit by
1.8.17