Fraxinus  18.10
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)=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

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

Definition at line 52 of file cxDataManager.h.

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

Definition at line 53 of file cxDataManager.h.

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

Definition at line 54 of file cxDataManager.h.

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

Definition at line 55 of file cxDataManager.h.

Constructor & Destructor Documentation

cx::DataManager::DataManager ( )
protected

Definition at line 22 of file cxDataManager.cpp.

cx::DataManager::~DataManager ( )
protectedvirtual

Definition at line 26 of file cxDataManager.cpp.

Member Function Documentation

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

Implemented in cx::DataManagerImpl.

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

adds xml information about the datamanger and its variabels

Implemented in cx::DataManagerImpl.

void cx::DataManager::centerChanged ( )
signal

emitted when center is changed.

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

remove all stuff from manager

Implemented in cx::DataManagerImpl.

void cx::DataManager::clinicalApplicationChanged ( )
signal
void cx::DataManager::dataAddedOrRemoved ( )
signal
virtual void cx::DataManager::deleteLandmarks ( )
pure virtual

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

get the patient registration transform

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

current common center point for user viewing.

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Definition at line 35 of file cxDataManager.cpp.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Definition at line 40 of file cxDataManager.cpp.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Reimplemented in cx::DataManagerImpl.

Definition at line 30 of file cxDataManager.cpp.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Definition at line 45 of file cxDataManager.cpp.

void cx::DataManager::landmarkPropertiesChanged ( )
signal

emitted when global info about a landmark changed

virtual void cx::DataManager::loadData ( DataPtr  data)
pure virtual

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

void cx::DataManager::operatingTableChanged ( )
signal
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.

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

remove data from datamanger, emit signal

Implemented in cx::DataManagerImpl.

void cx::DataManager::rMprChanged ( )
signal

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

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

set the transform from patient to reference space

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

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

Implemented in cx::DataManagerImpl.

void cx::DataManager::streamLoaded ( )
signal

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