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);
boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
boost::shared_ptr< class FileManagerService > FileManagerServicePtr
QColor string2color(QString input, QColor defaultValue)
void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
QString color2string(QColor color)
void setColor(const QColor &color)
static RegistrationHistoryPtr getNullObject()
void propertiesChanged()
emitted when one of the metadata properties (uid, name etc) changes
boost::shared_ptr< DataMetric > DataMetricPtr
PatientModelServicePtr mDataManager
virtual void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
virtual QString getSpace()
SpaceProviderPtr mSpaceProvider
virtual bool load(QString path, FileManagerServicePtr filemanager)
metrics don't store info in file, xml only.
void parseXml(QDomNode &dataNode)
Use a XML node to load data.
DataMetric(const QString &uid, const QString &name, PatientModelServicePtr dataManager, SpaceProviderPtr spaceProvider)
virtual void parseXml(QDomNode &dataNode)
Use a XML node to load data.
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
RegistrationHistoryPtr m_rMd_History
Superclass for all data objects.
Namespace for all CustusX production code.