NorMIT-nav  22.09
An IGT application
cx::DataManagerImpl Class Reference

#include <cxDataManagerImpl.h>

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

Public Member Functions

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

Static Public Member Functions

static DataManagerImplPtr create (ActiveDataPtr activeData)
 

Protected Member Functions

 DataManagerImpl (ActiveDataPtr activeData)
 
void deleteFiles (DataPtr data, QString basePath)
 
DataPtr loadData (QDomElement node, QString rootPath)
 
int findUniqueUidNumber (QString uidBase) const
 
void readClinicalView ()
 
- Protected Member Functions inherited from cx::DataManager
 DataManager ()
 
virtual ~DataManager ()
 

Protected Attributes

std::map< QString, VideoSourcePtrmStreams
 
DataMap mData
 
Vector3D mCenter
 
OperatingTable mOperatingTable
 
CLINICAL_VIEW mClinicalApplication
 
LandmarkPropertyMap mLandmarkProperties
 uid and name More...
 
RegistrationHistoryPtr m_rMpr_History
 transform from the patient reference to the reference, along with historical data. More...
 
LandmarksPtr mPatientLandmarks
 in space patient reference. More...
 
PresetTransferFunctions3DPtr mPresetTransferFunctions3D
 
SpaceProviderPtr mSpaceProvider
 
FileManagerServicePtr mFileManagerService
 
DataFactoryPtr mDataFactory
 
ActiveDataPtr mActiveData
 

Additional Inherited Members

- Public Types inherited from cx::DataManager
typedef std::map< QString, DataPtrDataMap
 
typedef std::map< QString, ImagePtrImagesMap
 
typedef std::map< QString, MeshPtrMeshMap
 
typedef std::map< QString, VideoSourcePtrStreamMap
 
- Signals inherited from cx::DataManager
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...
 

Detailed Description

Default implementation of DataManager.

Used by CustusX.

Date
Jan 6, 2009
Author
christiana

Definition at line 47 of file cxDataManagerImpl.h.

Constructor & Destructor Documentation

◆ ~DataManagerImpl()

cx::DataManagerImpl::~DataManagerImpl ( )
virtual

Definition at line 69 of file cxDataManagerImpl.cpp.

◆ DataManagerImpl()

cx::DataManagerImpl::DataManagerImpl ( ActiveDataPtr  activeData)
protected

Definition at line 55 of file cxDataManagerImpl.cpp.

Member Function Documentation

◆ addLandmark()

QString cx::DataManagerImpl::addLandmark ( )
virtual

Implements cx::DataManager.

Definition at line 171 of file cxDataManagerImpl.cpp.

◆ addXml()

void cx::DataManagerImpl::addXml ( QDomNode &  parentNode)
virtual

adds xml information about the datamanger and its variabels

Implements cx::DataManager.

Definition at line 300 of file cxDataManagerImpl.cpp.

◆ clear()

void cx::DataManagerImpl::clear ( )
virtual

remove all stuff from manager

Implements cx::DataManager.

Definition at line 94 of file cxDataManagerImpl.cpp.

◆ create()

DataManagerImplPtr cx::DataManagerImpl::create ( ActiveDataPtr  activeData)
static

Definition at line 48 of file cxDataManagerImpl.cpp.

◆ deleteFiles()

void cx::DataManagerImpl::deleteFiles ( DataPtr  data,
QString  basePath 
)
protected

Definition at line 581 of file cxDataManagerImpl.cpp.

◆ deleteLandmarks()

void cx::DataManagerImpl::deleteLandmarks ( )
virtual

Implements cx::DataManager.

Definition at line 187 of file cxDataManagerImpl.cpp.

◆ findUniqueUidNumber()

int cx::DataManagerImpl::findUniqueUidNumber ( QString  uidBase) const
protected

Definition at line 524 of file cxDataManagerImpl.cpp.

◆ generateUidAndName()

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

Insert uid and name containing %1 placeholders for insertion of unique integers. Return unique values. If input does not contain %1, nothing happens.

Implements cx::DataManager.

Definition at line 547 of file cxDataManagerImpl.cpp.

◆ get_rMpr()

Transform3D cx::DataManagerImpl::get_rMpr ( ) const
virtual

get the patient registration transform

Implements cx::DataManager.

Definition at line 603 of file cxDataManagerImpl.cpp.

◆ get_rMpr_History()

RegistrationHistoryPtr cx::DataManagerImpl::get_rMpr_History ( ) const
virtual

Implements cx::DataManager.

Definition at line 613 of file cxDataManagerImpl.cpp.

◆ getCenter()

Vector3D cx::DataManagerImpl::getCenter ( ) const
virtual

current common center point for user viewing.

Implements cx::DataManager.

Definition at line 136 of file cxDataManagerImpl.cpp.

◆ getClinicalApplication()

CLINICAL_VIEW cx::DataManagerImpl::getClinicalApplication ( ) const
virtual

Implements cx::DataManager.

Definition at line 489 of file cxDataManagerImpl.cpp.

◆ getData() [1/2]

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

Implements cx::DataManager.

Definition at line 269 of file cxDataManagerImpl.cpp.

◆ getData() [2/2]

DataPtr cx::DataManagerImpl::getData ( const QString &  uid) const
virtual

Implements cx::DataManager.

Definition at line 261 of file cxDataManagerImpl.cpp.

◆ getDataFactory()

DataFactoryPtr cx::DataManagerImpl::getDataFactory ( )
virtual

Implements cx::DataManager.

Definition at line 89 of file cxDataManagerImpl.cpp.

◆ getImages()

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

Implements cx::DataManager.

Definition at line 274 of file cxDataManagerImpl.cpp.

◆ getLandmarkProperties()

std::map< QString, LandmarkProperty > cx::DataManagerImpl::getLandmarkProperties ( ) const
virtual

Implements cx::DataManager.

Definition at line 199 of file cxDataManagerImpl.cpp.

◆ getMeshes()

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

Implements cx::DataManager.

Definition at line 287 of file cxDataManagerImpl.cpp.

◆ getOperatingTable()

OperatingTable cx::DataManagerImpl::getOperatingTable ( ) const
virtual

Implements cx::DataManager.

Definition at line 154 of file cxDataManagerImpl.cpp.

◆ getPatientLandmarks()

LandmarksPtr cx::DataManagerImpl::getPatientLandmarks ( )
virtual

Implements cx::DataManager.

Definition at line 108 of file cxDataManagerImpl.cpp.

◆ getPresetTransferFunctions3D()

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

< create from filename, create trivial document of type name and root node if no file exists.

Reimplemented from cx::DataManager.

Definition at line 618 of file cxDataManagerImpl.cpp.

◆ getSpaceProvider()

SpaceProviderPtr cx::DataManagerImpl::getSpaceProvider ( )
virtual

Implements cx::DataManager.

Definition at line 84 of file cxDataManagerImpl.cpp.

◆ getStream()

VideoSourcePtr cx::DataManagerImpl::getStream ( const QString &  uid) const
virtual

Implements cx::DataManager.

Definition at line 114 of file cxDataManagerImpl.cpp.

◆ getStreams()

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

Implements cx::DataManager.

Definition at line 121 of file cxDataManagerImpl.cpp.

◆ loadData() [1/3]

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

Implements cx::DataManager.

Definition at line 210 of file cxDataManagerImpl.cpp.

◆ loadData() [2/3]

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

Implements cx::DataManager.

Definition at line 240 of file cxDataManagerImpl.cpp.

◆ loadData() [3/3]

DataPtr cx::DataManagerImpl::loadData ( QDomElement  node,
QString  rootPath 
)
protected

Definition at line 414 of file cxDataManagerImpl.cpp.

◆ loadStream()

void cx::DataManagerImpl::loadStream ( VideoSourcePtr  stream)
virtual

Implements cx::DataManager.

Definition at line 126 of file cxDataManagerImpl.cpp.

◆ parseXml()

void cx::DataManagerImpl::parseXml ( QDomNode &  datamangerNode,
QString  absolutePath = QString() 
)
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.

Implements cx::DataManager.

Definition at line 338 of file cxDataManagerImpl.cpp.

◆ readClinicalView()

void cx::DataManagerImpl::readClinicalView ( )
protected

Definition at line 514 of file cxDataManagerImpl.cpp.

◆ removeData()

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

remove data from datamanger, emit signal

Implements cx::DataManager.

Definition at line 568 of file cxDataManagerImpl.cpp.

◆ set_rMpr()

void cx::DataManagerImpl::set_rMpr ( const Transform3D val)
virtual

set the transform from patient to reference space

Implements cx::DataManager.

Definition at line 608 of file cxDataManagerImpl.cpp.

◆ setCenter()

void cx::DataManagerImpl::setCenter ( const Vector3D center)
virtual

Implements cx::DataManager.

Definition at line 140 of file cxDataManagerImpl.cpp.

◆ setClinicalApplication()

void cx::DataManagerImpl::setClinicalApplication ( CLINICAL_VIEW  application)
virtual

Implements cx::DataManager.

Definition at line 494 of file cxDataManagerImpl.cpp.

◆ setDataFactory()

void cx::DataManagerImpl::setDataFactory ( DataFactoryPtr  dataFactory)

Definition at line 79 of file cxDataManagerImpl.cpp.

◆ setLandmarkActive()

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

Implements cx::DataManager.

Definition at line 204 of file cxDataManagerImpl.cpp.

◆ setLandmarkName()

void cx::DataManagerImpl::setLandmarkName ( QString  uid,
QString  name 
)
virtual

Implements cx::DataManager.

Definition at line 193 of file cxDataManagerImpl.cpp.

◆ setLandmarkNames()

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

Implements cx::DataManager.

Definition at line 160 of file cxDataManagerImpl.cpp.

◆ setOperatingTable()

void cx::DataManagerImpl::setOperatingTable ( const OperatingTable ot)
virtual

Implements cx::DataManager.

Definition at line 148 of file cxDataManagerImpl.cpp.

◆ setServices()

void cx::DataManagerImpl::setServices ( SpaceProviderPtr  spaceProvider,
FileManagerServicePtr  filemanager 
)

Definition at line 73 of file cxDataManagerImpl.cpp.

Member Data Documentation

◆ m_rMpr_History

RegistrationHistoryPtr cx::DataManagerImpl::m_rMpr_History
protected

transform from the patient reference to the reference, along with historical data.

Definition at line 121 of file cxDataManagerImpl.h.

◆ mActiveData

ActiveDataPtr cx::DataManagerImpl::mActiveData
protected

Definition at line 128 of file cxDataManagerImpl.h.

◆ mCenter

Vector3D cx::DataManagerImpl::mCenter
protected

Definition at line 110 of file cxDataManagerImpl.h.

◆ mClinicalApplication

CLINICAL_VIEW cx::DataManagerImpl::mClinicalApplication
protected

Definition at line 112 of file cxDataManagerImpl.h.

◆ mData

DataMap cx::DataManagerImpl::mData
protected

Definition at line 109 of file cxDataManagerImpl.h.

◆ mDataFactory

DataFactoryPtr cx::DataManagerImpl::mDataFactory
protected

Definition at line 127 of file cxDataManagerImpl.h.

◆ mFileManagerService

FileManagerServicePtr cx::DataManagerImpl::mFileManagerService
protected

Definition at line 126 of file cxDataManagerImpl.h.

◆ mLandmarkProperties

LandmarkPropertyMap cx::DataManagerImpl::mLandmarkProperties
protected

uid and name

Definition at line 120 of file cxDataManagerImpl.h.

◆ mOperatingTable

OperatingTable cx::DataManagerImpl::mOperatingTable
protected

Definition at line 111 of file cxDataManagerImpl.h.

◆ mPatientLandmarks

LandmarksPtr cx::DataManagerImpl::mPatientLandmarks
protected

in space patient reference.

Definition at line 122 of file cxDataManagerImpl.h.

◆ mPresetTransferFunctions3D

PresetTransferFunctions3DPtr cx::DataManagerImpl::mPresetTransferFunctions3D
mutableprotected

Definition at line 123 of file cxDataManagerImpl.h.

◆ mSpaceProvider

SpaceProviderPtr cx::DataManagerImpl::mSpaceProvider
protected

Definition at line 125 of file cxDataManagerImpl.h.

◆ mStreams

std::map<QString, VideoSourcePtr> cx::DataManagerImpl::mStreams
protected

Definition at line 108 of file cxDataManagerImpl.h.


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