NorMIT-nav  2023.01.05-dev+develop.0da12
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
cx::XmlOptionFile
Helper class for xml files used to store ssc/cx data.
Definition: cxXmlOptionItem.h:78
cx::DataManager::DataManager
DataManager()
Definition: cxDataManager.cpp:22
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::DataManager::getData
virtual std::map< QString, DataPtr > getData() const =0
cxTransferFunctions3DPresets.h
cx::TransferFunctions3DPresets
Handles transfer function presets.
Definition: cxTransferFunctions3DPresets.h:42
cx::MeshPtr
boost::shared_ptr< class Mesh > MeshPtr
Definition: cxForwardDeclarations.h:48
cx::DataManager::getPresetTransferFunctions3D
virtual PresetTransferFunctions3DPtr getPresetTransferFunctions3D() const
Definition: cxDataManager.cpp:30
cx::PresetTransferFunctions3DPtr
boost::shared_ptr< class TransferFunctions3DPresets > PresetTransferFunctions3DPtr
Definition: cxDataManager.h:36
cx::ImagePtr
boost::shared_ptr< class Image > ImagePtr
Definition: cxDicomWidget.h:27
cxDataManager.h
cx::DataManager::getTrackedStream
virtual TrackedStreamPtr getTrackedStream(const QString &uid) const
Definition: cxDataManager.cpp:45
cx::DataManager::getImage
virtual ImagePtr getImage(const QString &uid) const
Definition: cxDataManager.cpp:35
cx::DataManager::getMesh
virtual MeshPtr getMesh(const QString &uid) const
Definition: cxDataManager.cpp:40
cxMesh.h
cx::DataManager::~DataManager
virtual ~DataManager()
Definition: cxDataManager.cpp:26
cx::TrackedStreamPtr
boost::shared_ptr< class TrackedStream > TrackedStreamPtr
Definition: cxStreamPropertiesWidget.h:22
cxTrackedStream.h