MeVisLab Toolbox Reference
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// Declare MutableDicomTreePtr smart pointer
20ML_REFCOUNTED_PTR(MutableDicomTree)
21
22
27{
28 public:
30
33
35 DCMTree::TreePtr getMutableTree() const { return _mutableTree; }
36
38
39 protected:
40 ~MutableDicomTree() override {};
41
44 void setMutableTree(const DCMTree::TreePtr& tree) { _mutableTree = tree; setTree(tree); }
45
46 private:
47 DCMTree::TreePtr _mutableTree;
48};
49
51
#define MLDICOM_TREE_IMAGE_PROPERTY_EXTENSION_EXPORT
Global and OS specific declarations for the MLDicomTreeImagePropertyExtension project.
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 a ml::RefCountedBase object.
DCMTree::TreePtr getMutableTree() const
Get 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,...
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:72