13 #ifndef CXREGISTRATIONTRANSFORM_H_ 14 #define CXREGISTRATIONTRANSFORM_H_ 16 #include "cxResourceExport.h" 21 #include <boost/shared_ptr.hpp> 52 const QString& type =
"",
bool tempTransform =
false);
53 void addXml(QDomNode& parentNode)
const;
54 void parseXml(QDomNode& dataNode);
78 ParentSpace(
const QString& parentFrame,
const QDateTime& timestamp = QDateTime(),
const QString& type =
"");
79 void addXml(QDomNode& parentNode)
const;
80 void parseXml(QDomNode& dataNode);
100 virtual void addXml(QDomNode& parentNode)
const;
101 virtual void parseXml(QDomNode& dataNode);
104 virtual void addOrUpdateRegistration(
const QDateTime& oldTime,
const RegistrationTransform& newTransform);
106 virtual void setParentSpace(
const QString& newParent);
107 virtual void addParentSpace(
const QString& newParent);
108 virtual void updateParentSpace(
const QDateTime& oldTime,
const ParentSpace& newParent);
110 virtual std::vector<RegistrationTransform> getData()
const;
111 virtual std::vector<ParentSpace> getParentSpaces()
const;
112 virtual void removeNewerThan(
const QDateTime& timestamp);
113 virtual void setActiveTime(
const QDateTime& timestamp);
114 virtual QDateTime getActiveTime()
const;
117 virtual void clear();
123 static RegistrationHistoryPtr getNullObject();
126 void currentChanged();
128 virtual void addParentSpace(
const ParentSpace& newParent);
131 static RegistrationHistoryPtr mNull;
132 std::vector<RegistrationTransform> mData;
133 std::vector<ParentSpace> mParentSpaces;
134 QDateTime mCurrentTime;
bool operator<(const Landmark &lhs, const Landmark &rhs)
DoubleBoundingBox3D transform(const Transform3D &m, const DoubleBoundingBox3D &bb)
boost::shared_ptr< class RegistrationHistory > RegistrationHistoryPtr
Definition of a parent space event.
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
QString mUid
parent frame uid
QDateTime mTimestamp
time the transform was registrated.
virtual bool isNull() const
QString mType
description of the kind if registration (manual, patient, landmark, coregistration etc) ...
bool operator==(const RegistrationTransform &lhs, const RegistrationTransform &rhs)
A history of registration events.
Namespace for all CustusX production code.