NorMIT-nav  22.09
An IGT application
cx::DataManager Class Referenceabstract

#include <cxDataManager.h>

Inheritance diagram for cx::DataManager:
cx::DataManagerImpl

Public Types

typedef std::map< QString, DataPtrDataMap
 
typedef std::map< QString, ImagePtrImagesMap
 
typedef std::map< QString, MeshPtrMeshMap
 
typedef std::map< QString, VideoSourcePtrStreamMap
 

Signals

void centerChanged ()
 emitted when center is changed. More...
 
void operatingTableChanged ()
 
void dataAddedOrRemoved ()
 
void landmarkPropertiesChanged ()
 emitted when global info about a landmark changed More...
 
void clinicalApplicationChanged ()
 
void streamLoaded ()
 
void rMprChanged ()
 emitted when the transformation between patient reference and (data) reference is set More...
 

Public Member Functions

virtual VideoSourcePtr getStream (const QString &uid) const =0
 
virtual StreamMap getStreams () const =0
 
virtual void loadStream (VideoSourcePtr stream)=0
 
virtual std::map< QString, ImagePtrgetImages () const =0
 
virtual std::map< QString, MeshPtrgetMeshes () const =0
 
virtual void loadData (DataPtr data, bool overWrite=false)=0
 
virtual DataPtr loadData (const QString &uid, const QString &path)=0
 
virtual std::map< QString, DataPtrgetData () const =0
 
virtual DataPtr getData (const QString &uid) const =0
 
virtual SpaceProviderPtr getSpaceProvider ()=0
 
virtual DataFactoryPtr getDataFactory ()=0
 
virtual Vector3D getCenter () const =0
 current common center point for user viewing. More...
 
virtual void setCenter (const Vector3D &center)=0
 
virtual void setOperatingTable (const OperatingTable &ot)=0
 
virtual OperatingTable getOperatingTable () const =0
 
virtual PresetTransferFunctions3DPtr getPresetTransferFunctions3D () const
 
virtual QString addLandmark ()=0
 
virtual void deleteLandmarks ()=0
 
virtual void setLandmarkNames (std::vector< QString > names)=0
 
virtual void setLandmarkName (QString uid, QString name)=0
 
virtual void setLandmarkActive (QString uid, bool active)=0
 
virtual LandmarkPropertyMap getLandmarkProperties () const =0
 
virtual CLINICAL_VIEW getClinicalApplication () const =0
 
virtual void setClinicalApplication (CLINICAL_VIEW application)=0
 
virtual void clear ()=0
 remove all stuff from manager More...
 
virtual void removeData (const QString &uid, QString basePath)=0
 remove data from datamanger, emit signal More...
 
virtual void addXml (QDomNode &parentNode)=0
 adds xml information about the datamanger and its variabels More...
 
virtual void parseXml (QDomNode &datamangerNode, QString absolutePath=QString())=0
 Use a XML node to load data. More...
 
virtual Transform3D get_rMpr () const =0
 get the patient registration transform More...
 
virtual void set_rMpr (const Transform3D &val)=0
 set the transform from patient to reference space More...
 
virtual RegistrationHistoryPtr get_rMpr_History () const =0
 
virtual LandmarksPtr getPatientLandmarks ()=0
 
virtual void generateUidAndName (QString *_uid, QString *_name)=0
 
virtual ImagePtr getImage (const QString &uid) const
 
virtual MeshPtr getMesh (const QString &uid) const
 
virtual TrackedStreamPtr getTrackedStream (const QString &uid) const
 

Protected Member Functions

 DataManager ()
 
virtual ~DataManager ()
 

Detailed Description

Interface for a manager of data objects.

Simply calling instance() will instantiate the default manager DataManagerImpl. It is also possible to subclass and use setInstance() to set another type.

Definition at line 48 of file cxDataManager.h.

Member Typedef Documentation

◆ DataMap

typedef std::map<QString, DataPtr> cx::DataManager::DataMap

Definition at line 52 of file cxDataManager.h.

◆ ImagesMap

typedef std::map<QString, ImagePtr> cx::DataManager::ImagesMap

Definition at line 53 of file cxDataManager.h.

◆ MeshMap

typedef std::map<QString, MeshPtr> cx::DataManager::MeshMap

Definition at line 54 of file cxDataManager.h.

◆ StreamMap

typedef std::map<QString, VideoSourcePtr> cx::DataManager::StreamMap

Definition at line 55 of file cxDataManager.h.

Constructor & Destructor Documentation

◆ DataManager()

cx::DataManager::DataManager ( )
protected

Definition at line 22 of file cxDataManager.cpp.

◆ ~DataManager()

cx::DataManager::~DataManager ( )
protectedvirtual

Definition at line 26 of file cxDataManager.cpp.

Member Function Documentation

◆ addLandmark()

virtual QString cx::DataManager::addLandmark ( )
pure virtual

Implemented in cx::DataManagerImpl.

◆ addXml()

virtual void cx::DataManager::addXml ( QDomNode &  parentNode)
pure virtual

adds xml information about the datamanger and its variabels

Implemented in cx::DataManagerImpl.

◆ centerChanged

void cx::DataManager::centerChanged ( )
signal

emitted when center is changed.

◆ clear()

virtual void cx::DataManager::clear ( )
pure virtual

remove all stuff from manager

Implemented in cx::DataManagerImpl.

◆ clinicalApplicationChanged

void cx::DataManager::clinicalApplicationChanged ( )
signal

◆ dataAddedOrRemoved

void cx::DataManager::dataAddedOrRemoved ( )
signal

◆ deleteLandmarks()

virtual void cx::DataManager::deleteLandmarks ( )
pure virtual

Implemented in cx::DataManagerImpl.

◆ generateUidAndName()

virtual void cx::DataManager::generateUidAndName ( QString *  _uid,
QString *  _name 
)
pure virtual

Implemented in cx::DataManagerImpl.

◆ get_rMpr()

virtual Transform3D cx::DataManager::get_rMpr ( ) const
pure virtual

get the patient registration transform

Implemented in cx::DataManagerImpl.

◆ get_rMpr_History()

virtual RegistrationHistoryPtr cx::DataManager::get_rMpr_History ( ) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getCenter()

virtual Vector3D cx::DataManager::getCenter ( ) const
pure virtual

current common center point for user viewing.

Implemented in cx::DataManagerImpl.

◆ getClinicalApplication()

virtual CLINICAL_VIEW cx::DataManager::getClinicalApplication ( ) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getData() [1/2]

virtual std::map<QString, DataPtr> cx::DataManager::getData ( ) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getData() [2/2]

virtual DataPtr cx::DataManager::getData ( const QString &  uid) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getDataFactory()

virtual DataFactoryPtr cx::DataManager::getDataFactory ( )
pure virtual

Implemented in cx::DataManagerImpl.

◆ getImage()

ImagePtr cx::DataManager::getImage ( const QString &  uid) const
virtual

Definition at line 35 of file cxDataManager.cpp.

◆ getImages()

virtual std::map<QString, ImagePtr> cx::DataManager::getImages ( ) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getLandmarkProperties()

virtual LandmarkPropertyMap cx::DataManager::getLandmarkProperties ( ) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getMesh()

MeshPtr cx::DataManager::getMesh ( const QString &  uid) const
virtual

Definition at line 40 of file cxDataManager.cpp.

◆ getMeshes()

virtual std::map<QString, MeshPtr> cx::DataManager::getMeshes ( ) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getOperatingTable()

virtual OperatingTable cx::DataManager::getOperatingTable ( ) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getPatientLandmarks()

virtual LandmarksPtr cx::DataManager::getPatientLandmarks ( )
pure virtual

Implemented in cx::DataManagerImpl.

◆ getPresetTransferFunctions3D()

PresetTransferFunctions3DPtr cx::DataManager::getPresetTransferFunctions3D ( ) const
virtual

Reimplemented in cx::DataManagerImpl.

Definition at line 30 of file cxDataManager.cpp.

◆ getSpaceProvider()

virtual SpaceProviderPtr cx::DataManager::getSpaceProvider ( )
pure virtual

Implemented in cx::DataManagerImpl.

◆ getStream()

virtual VideoSourcePtr cx::DataManager::getStream ( const QString &  uid) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getStreams()

virtual StreamMap cx::DataManager::getStreams ( ) const
pure virtual

Implemented in cx::DataManagerImpl.

◆ getTrackedStream()

TrackedStreamPtr cx::DataManager::getTrackedStream ( const QString &  uid) const
virtual

Definition at line 45 of file cxDataManager.cpp.

◆ landmarkPropertiesChanged

void cx::DataManager::landmarkPropertiesChanged ( )
signal

emitted when global info about a landmark changed

◆ loadData() [1/2]

virtual DataPtr cx::DataManager::loadData ( const QString &  uid,
const QString &  path 
)
pure virtual

Implemented in cx::DataManagerImpl.

◆ loadData() [2/2]

virtual void cx::DataManager::loadData ( DataPtr  data,
bool  overWrite = false 
)
pure virtual

Implemented in cx::DataManagerImpl.

◆ loadStream()

virtual void cx::DataManager::loadStream ( VideoSourcePtr  stream)
pure virtual

Implemented in cx::DataManagerImpl.

◆ operatingTableChanged

void cx::DataManager::operatingTableChanged ( )
signal

◆ parseXml()

virtual void cx::DataManager::parseXml ( QDomNode &  datamangerNode,
QString  absolutePath = QString() 
)
pure virtual

Use a XML node to load data.

Parameters
datamangerNodeA XML data representation of the DataManager.
absolutePathAbsolute path to the data elements. Used together with the relative paths stored in the filePath elements.

Implemented in cx::DataManagerImpl.

◆ removeData()

virtual void cx::DataManager::removeData ( const QString &  uid,
QString  basePath 
)
pure virtual

remove data from datamanger, emit signal

Implemented in cx::DataManagerImpl.

◆ rMprChanged

void cx::DataManager::rMprChanged ( )
signal

emitted when the transformation between patient reference and (data) reference is set

◆ set_rMpr()

virtual void cx::DataManager::set_rMpr ( const Transform3D val)
pure virtual

set the transform from patient to reference space

Implemented in cx::DataManagerImpl.

◆ setCenter()

virtual void cx::DataManager::setCenter ( const Vector3D center)
pure virtual

Implemented in cx::DataManagerImpl.

◆ setClinicalApplication()

virtual void cx::DataManager::setClinicalApplication ( CLINICAL_VIEW  application)
pure virtual

Implemented in cx::DataManagerImpl.

◆ setLandmarkActive()

virtual void cx::DataManager::setLandmarkActive ( QString  uid,
bool  active 
)
pure virtual

Implemented in cx::DataManagerImpl.

◆ setLandmarkName()

virtual void cx::DataManager::setLandmarkName ( QString  uid,
QString  name 
)
pure virtual

Implemented in cx::DataManagerImpl.

◆ setLandmarkNames()

virtual void cx::DataManager::setLandmarkNames ( std::vector< QString >  names)
pure virtual

Implemented in cx::DataManagerImpl.

◆ setOperatingTable()

virtual void cx::DataManager::setOperatingTable ( const OperatingTable ot)
pure virtual

Implemented in cx::DataManagerImpl.

◆ streamLoaded

void cx::DataManager::streamLoaded ( )
signal

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