34 #ifndef CXREGISTRATIONTRANSFORM_H_ 35 #define CXREGISTRATIONTRANSFORM_H_ 37 #include "cxResourceExport.h" 42 #include <boost/shared_ptr.hpp> 73 const QString& type =
"",
bool tempTransform =
false);
74 void addXml(QDomNode& parentNode)
const;
75 void parseXml(QDomNode& dataNode);
99 ParentSpace(
const QString& parentFrame,
const QDateTime& timestamp = QDateTime(),
const QString& type =
"");
100 void addXml(QDomNode& parentNode)
const;
101 void parseXml(QDomNode& dataNode);
121 virtual void addXml(QDomNode& parentNode)
const;
122 virtual void parseXml(QDomNode& dataNode);
125 virtual void addOrUpdateRegistration(
const QDateTime& oldTime,
const RegistrationTransform& newTransform);
127 virtual void setParentSpace(
const QString& newParent);
128 virtual void addParentSpace(
const QString& newParent);
129 virtual void updateParentSpace(
const QDateTime& oldTime,
const ParentSpace& newParent);
131 virtual std::vector<RegistrationTransform> getData()
const;
132 virtual std::vector<ParentSpace> getParentSpaces()
const;
133 virtual void removeNewerThan(
const QDateTime& timestamp);
134 virtual void setActiveTime(
const QDateTime& timestamp);
135 virtual QDateTime getActiveTime()
const;
138 virtual void clear();
144 static RegistrationHistoryPtr getNullObject();
147 void currentChanged();
149 virtual void addParentSpace(
const ParentSpace& newParent);
152 static RegistrationHistoryPtr mNull;
153 std::vector<RegistrationTransform> mData;
154 std::vector<ParentSpace> mParentSpaces;
155 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.