MeVisLab Toolbox Reference
mlDicomTree.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
16
17#include <mlRefCountedBase.h>
18#include <DCMTree_Tree.h>
19
21
22// Declare DicomTreePtr smart pointer
23ML_REFCOUNTED_PTR(DicomTree)
24
25
30{
31 public:
33
36
38 DCMTree::Const_TreePtr getTree() const { return _tree; }
39
41
42 protected:
43 ~DicomTree() override {};
44
47 void setTree(const DCMTree::Const_TreePtr& tree) { _tree = tree; }
48
49 private:
50
52};
53
55
#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
~DicomTree() override
Definition mlDicomTree.h:43
void setTree(const DCMTree::Const_TreePtr &tree)
This method is intentionally protected, it is only here to be used in FME RT modules,...
Definition mlDicomTree.h:47
DCMTree::Const_TreePtr getTree() const
Get the tree pointer.
Definition mlDicomTree.h:38
DicomTree(const DCMTree::Const_TreePtr &tree)
wraps the given DCMTree::Const_TreePtr
RefCountedBase class adds intrusive reference counting support to the Base class.
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< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:73
Main documentation file for ML users and developers.
Definition SoSFMLImage.h:51