Fraxinus  18.10
An IGT application
cxDataManager.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 
13 #include "cxDataManager.h"
14 
16 #include "cxMesh.h"
17 #include "cxTrackedStream.h"
18 
19 namespace cx
20 {
21 
23 {
24 }
25 
27 {
28 }
29 
31 {
33 }
34 
35 ImagePtr DataManager::getImage(const QString &uid) const
36 {
37  return boost::dynamic_pointer_cast<Image>(this->getData(uid));
38 }
39 
40 MeshPtr DataManager::getMesh(const QString &uid) const
41 {
42  return boost::dynamic_pointer_cast<Mesh>(this->getData(uid));
43 }
44 
46 {
47  return boost::dynamic_pointer_cast<TrackedStream>(this->getData(uid));
48 }
49 
50 } // namespace cx
A mesh data set.
Definition: cxMesh.h:45
boost::shared_ptr< class TrackedStream > TrackedStreamPtr
boost::shared_ptr< class TransferFunctions3DPresets > PresetTransferFunctions3DPtr
Definition: cxDataManager.h:36
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
virtual MeshPtr getMesh(const QString &uid) const
A data set for video streams (2D/3D).
virtual std::map< QString, DataPtr > getData() const =0
A volumetric data set.
Definition: cxImage.h:45
virtual PresetTransferFunctions3DPtr getPresetTransferFunctions3D() const
virtual ~DataManager()
virtual ImagePtr getImage(const QString &uid) const
virtual TrackedStreamPtr getTrackedStream(const QString &uid) const
boost::shared_ptr< class Mesh > MeshPtr
Helper class for xml files used to store ssc/cx data.
Handles transfer function presets.
Namespace for all CustusX production code.