13 #ifndef CXDATAMANAGERIMPL_H_
14 #define CXDATAMANAGERIMPL_H_
16 #include "org_custusx_core_patientmodel_Export.h"
28 #include "boost/scoped_ptr.hpp"
62 virtual std::map<QString, ImagePtr> getImages()
const;
64 void loadData(
DataPtr data,
bool overWrite =
false);
65 DataPtr loadData(
const QString& uid,
const QString& path);
66 std::map<QString, DataPtr> getData()
const;
67 DataPtr getData(
const QString& uid)
const;
72 virtual std::map<QString, MeshPtr> getMeshes()
const;
76 virtual void setCenter(
const Vector3D& center);
80 virtual QString addLandmark();
81 virtual void deleteLandmarks();
82 virtual void setLandmarkNames(std::vector<QString> names);
83 virtual void setLandmarkName(QString uid, QString name);
84 virtual void setLandmarkActive(QString uid,
bool active);
85 virtual std::map<QString, LandmarkProperty> getLandmarkProperties()
const;
87 virtual void removeData(
const QString& uid, QString basePath);
90 virtual void addXml(QDomNode& parentNode);
91 virtual void parseXml(QDomNode& datamangerNode, QString absolutePath = QString());
93 virtual CLINICAL_VIEW getClinicalApplication()
const;
94 virtual void setClinicalApplication(CLINICAL_VIEW application);
103 virtual void generateUidAndName(QString* _uid, QString* _name);
113 void deleteFiles(
DataPtr data, QString basePath);
115 DataPtr loadData(QDomElement node, QString rootPath);
116 int findUniqueUidNumber(QString uidBase)
const;
118 void readClinicalView();
131 QDir findRelativePath(QDomElement node, QString rootPath);
132 QString findPath(QDomElement node);
133 QString findAbsolutePath(QDir relativePath, QString rootPath);
135 void settingsChangedSlot(QString key);