34 #ifndef CXREGISTRATIONTRANSFORM_H_
35 #define CXREGISTRATIONTRANSFORM_H_
37 #include "cxResourceExport.h"
42 #include <boost/shared_ptr.hpp>
72 const QString& type =
"");
73 void addXml(QDomNode& parentNode)
const;
74 void parseXml(QDomNode& dataNode);
98 ParentSpace(
const QString& parentFrame,
const QDateTime& timestamp = QDateTime(),
const QString& type =
"");
99 void addXml(QDomNode& parentNode)
const;
100 void parseXml(QDomNode& dataNode);
120 virtual void addXml(QDomNode& parentNode)
const;
121 virtual void parseXml(QDomNode& dataNode);
124 virtual void setRegistration(
const Transform3D& transform);
125 virtual void updateRegistration(
const QDateTime& oldTime,
const RegistrationTransform& newTransform);
127 virtual void setParentSpace(
const QString& newParent);
128 virtual void addParentSpace(
const QString& newParent);
129 virtual void addParentSpace(
const ParentSpace& newParent);
130 virtual void updateParentSpace(
const QDateTime& oldTime,
const ParentSpace& newParent);
132 virtual std::vector<RegistrationTransform> getData()
const;
133 virtual std::vector<ParentSpace> getParentSpaces()
const;
134 virtual void removeNewerThan(
const QDateTime& timestamp);
135 virtual void setActiveTime(
const QDateTime& timestamp);
136 virtual QDateTime getActiveTime()
const;
139 virtual void clear();
148 void currentChanged();
152 std::vector<RegistrationTransform> mData;
153 std::vector<ParentSpace> mParentSpaces;
154 QDateTime mCurrentTime;
QString mValue
parent frame uid
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.
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.