Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
mitkDataStorageAccessRule.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 mitkDataStorageAccessRule_h
14
#define mitkDataStorageAccessRule_h
15
16
#include <org_mitk_core_jobs_Export.h>
17
18
#include "
berryISchedulingRule.h
"
19
#include "
berryObject.h
"
20
#include "
mitkDataNode.h
"
21
#include "
mitkDataStorage.h
"
22
#include "
mitkStandaloneDataStorage.h
"
23
24
namespace
mitk
{
25
77
class
MITK_JOBS_EXPORT
DataStorageAccessRule
:
public
berry::ISchedulingRule
{
78
79
public
:
80
81
82
enum
RuleType
{ADD_RULE = 0, REMOVE_RULE} ;
83
84
RuleType
m_Rule
;
85
86
berryObjectMacro
(
DataStorageAccessRule
);
87
88
DataStorageAccessRule
(
mitk::DataStorage::Pointer
myDataStorage,
mitk::DataNode::Pointer
myDataNode,
89
DataStorageAccessRule::RuleType
myRule) ;
90
91
bool
Contains (
berry::ISchedulingRule::Pointer
otherISchedulingRule)
const override
;
92
bool
IsConflicting (
berry::ISchedulingRule::Pointer
otherISchedulingRule)
const override
;
93
94
95
96
97
98
99
private
:
100
101
108
bool
CompareTwoAddorRemoveRules()
const
;
113
bool
CompareAddandRemoveRules(
mitk::DataStorageAccessRule::Pointer
sptr_otherDataStorageAccessRule)
const
;
119
bool
CompareDataStorages(
mitk::DataStorage::Pointer
otherDataStorage)
const
;
125
bool
TestDataNode(
mitk::DataNode::Pointer
dataTreeToBeStored)
const
;
126
130
mitk::DataNode::Pointer
GetDataNode()
const
;
131
135
mitk::DataStorage::Pointer
GetDataStorage()
const
;
136
137
mitk::DataStorageAccessRule::RuleType
GetRuleType()
const
;
138
139
140
141
142
DataStorage::Pointer
m_sptrMyDataStorage ;
143
DataNode::Pointer
m_sptrMyDataNode ;
144
145
146
};
147
148
}
149
150
#endif
mitkDataStorage.h
berry::SmartPointer< Self >
itk::SmartPointer< Self >
mitk::DataStorageAccessRule::RuleType
RuleType
Definition:
mitkDataStorageAccessRule.h:82
mitk::DataStorageAccessRule
The DataStorageAccessRule inherits from the ISchedulingRule class. DataStorageAccessRule are used to ...
Definition:
mitkDataStorageAccessRule.h:77
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitkStandaloneDataStorage.h
berryISchedulingRule.h
berry::ISchedulingRule
Definition:
berryISchedulingRule.h:45
mitkDataNode.h
mitk::DataStorageAccessRule::m_Rule
RuleType m_Rule
Definition:
mitkDataStorageAccessRule.h:84
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:33
berryObject.h
src
MITK
Plugins
org.mitk.core.jobs
src
mitkDataStorageAccessRule.h
Generated on Thu Nov 30 2023 15:58:50 for Medical Imaging Interaction Toolkit by
1.8.17