|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
30 mColor = QColor(240, 170, 255, 255);
58 QDomDocument doc = dataNode.ownerDocument();
60 QDomElement colorNode = doc.createElement(
"color");
62 dataNode.appendChild(colorNode);
69 if (dataNode.isNull())
72 QDomNode colorNode = dataNode.namedItem(
"color");
73 if (!colorNode.isNull())
85 QFileInfo to_be_loaded(path);
86 CX_LOG_DEBUG() <<
"TRYING TO LOAD DATAMETRIC WITH PATH: " << path ;
91 if(to_be_loaded.isDir() || !to_be_loaded.exists())
102 return filemanager->readInto(
self, path);
DataMetric(const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
virtual void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
Namespace for all CustusX production code.
QColor string2color(QString input, QColor defaultValue)
PatientModelServicePtr mDataManager
boost::shared_ptr< DataMetric > DataMetricPtr
void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
boost::shared_ptr< class FileManagerService > FileManagerServicePtr
QString color2string(QColor color)
static RegistrationHistoryPtr getNullObject()
RegistrationHistoryPtr m_rMd_History
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
SpaceProviderPtr mSpaceProvider
virtual bool load(QString path, FileManagerServicePtr filemanager)
metrics don't store info in file, xml only.
void setColor(const QColor &color)
void propertiesChanged()
emitted when one of the metadata properties (uid, name etc) changes
virtual void parseXml(QDomNode &dataNode)
Use a XML node to load data.
virtual QString getSpace()
Superclass for all data objects.
void parseXml(QDomNode &dataNode)
Use a XML node to load data.
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr