MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlMutableDicomTree.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2017, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#pragma once
14
15#include "mlDicomTree.h"
16
18
19// Declares MutableDicomTreePtr as a smart pointer.
20ML_REFCOUNTED_PTR(MutableDicomTree)
21
22
27{
28public:
30
33
36 {
37 return _mutableTree;
38 }
39
41
42protected:
43 ~MutableDicomTree() override {};
44
48 {
49 _mutableTree = tree;
50 setTree(tree);
51 }
52
53private:
54 DCMTree::TreePtr _mutableTree;
55};
56
#define MLDICOM_TREE_IMAGE_PROPERTY_EXTENSION_EXPORT
The DicomTree class can be used to transport a DCMTree::Const_TreePtr as a ml::RefCountedBase object.
Definition mlDicomTree.h:30
The DicomTree class can be used to transport a DCMTree::Const_TreePtr as an ml::RefCountedBase object...
DCMTree::TreePtr getMutableTree() const
Returns the tree pointer.
MutableDicomTree(const DCMTree::TreePtr &tree)
Wraps the given DCMTree::TreePtr.
void setMutableTree(const DCMTree::TreePtr &tree)
This method is intentionally protected, it is only here to be used in FME RT modules that need to set...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_REFCOUNTED_PTR(CLASSNAME)
Macro that defines convenience Ptr/ConstPtr typedefs to be used instead of intrusive_ptr templates.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non-existing export symbol.
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.
Definition DCMTree_Lib.h:67