Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cx::RegistrationHistory Class Reference

A history of registration events. More...

#include <cxRegistrationTransform.h>

Inheritance diagram for cx::RegistrationHistory:
cx::RegistrationHistoryNull

Signals

void currentChanged ()
 

Public Member Functions

virtual void addXml (QDomNode &parentNode) const
 write internal state to node More...
 
virtual void parseXml (QDomNode &dataNode)
 read internal state from node More...
 
virtual void setRegistration (const Transform3D &transform)
 
virtual void addOrUpdateRegistration (const QDateTime &oldTime, const RegistrationTransform &newTransform)
 
virtual void setParentSpace (const QString &newParent)
 
virtual void addParentSpace (const QString &newParent)
 
virtual void updateParentSpace (const QDateTime &oldTime, const ParentSpace &newParent)
 
virtual std::vector< RegistrationTransformgetData () const
 
virtual std::vector< ParentSpacegetParentSpaces () const
 
virtual void removeNewerThan (const QDateTime &timestamp)
 
virtual void setActiveTime (const QDateTime &timestamp)
 
virtual QDateTime getActiveTime () const
 
virtual RegistrationTransform getCurrentRegistration () const
 
virtual ParentSpace getCurrentParentSpace ()
 
virtual void clear ()
 reset all data loaded from xml More...
 
virtual bool isNull () const
 

Static Public Member Functions

static RegistrationHistoryPtr getNullObject ()
 

Detailed Description

A history of registration events.

A RegistrationHistory describes the registration history of one transform. Normally only the newest transform is used, but it is possible to roll back in time when needed.

Definition at line 96 of file cxRegistrationTransform.h.

Member Function Documentation

void cx::RegistrationHistory::addOrUpdateRegistration ( const QDateTime &  oldTime,
const RegistrationTransform newTransform 
)
virtual

Add one registration transform to the history. Replace the registration performed at oldTime with the new one, if the old is marked as temporary. Add = push Update = pop + push

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 297 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::addParentSpace ( const QString &  newParent)
virtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 339 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::addXml ( QDomNode &  parentNode) const
virtual

write internal state to node

< write internal state to node

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 216 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::clear ( )
virtual

reset all data loaded from xml

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 268 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::currentChanged ( )
signal
QDateTime cx::RegistrationHistory::getActiveTime ( ) const
virtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 467 of file cxRegistrationTransform.cpp.

ParentSpace cx::RegistrationHistory::getCurrentParentSpace ( )
virtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 369 of file cxRegistrationTransform.cpp.

RegistrationTransform cx::RegistrationHistory::getCurrentRegistration ( ) const
virtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 472 of file cxRegistrationTransform.cpp.

std::vector< RegistrationTransform > cx::RegistrationHistory::getData ( ) const
virtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 374 of file cxRegistrationTransform.cpp.

RegistrationHistoryPtr cx::RegistrationHistory::getNullObject ( )
static

Definition at line 209 of file cxRegistrationTransform.cpp.

std::vector< ParentSpace > cx::RegistrationHistory::getParentSpaces ( ) const
virtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 379 of file cxRegistrationTransform.cpp.

virtual bool cx::RegistrationHistory::isNull ( ) const
inlinevirtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 119 of file cxRegistrationTransform.h.

void cx::RegistrationHistory::parseXml ( QDomNode &  dataNode)
virtual

read internal state from node

Parameters
dataNoderead internal state from node

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 236 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::removeNewerThan ( const QDateTime &  timestamp)
virtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 384 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::setActiveTime ( const QDateTime &  timestamp)
virtual

set the active time. Use only registrations performed at or prior to this time.

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 438 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::setParentSpace ( const QString &  newParent)
virtual

Set a parent fram, overwriting all history. Use this when registration history is not needed, or when defining a relationship for the first time.

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 333 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::setRegistration ( const Transform3D transform)
virtual

Set a registration transform, overwriting all history. Use this when registration history is not needed, or when defining a relationship for the first time.

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 315 of file cxRegistrationTransform.cpp.

void cx::RegistrationHistory::updateParentSpace ( const QDateTime &  oldTime,
const ParentSpace newParent 
)
virtual

Reimplemented in cx::RegistrationHistoryNull.

Definition at line 357 of file cxRegistrationTransform.cpp.


The documentation for this class was generated from the following files: