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

The virtual patient. More...

#include <cxPatientModelService.h>

Inheritance diagram for cx::PatientModelService:
cx::PatientModelImplService cx::PatientModelServiceNull cx::PatientModelServiceProxy

Public Types

enum  DataFilter { HideUnavailable, AllData }
 

Signals

void operatingTableChanged ()
 
void centerChanged ()
 emitted when center is changed. More...
 
void dataAddedOrRemoved ()
 
void landmarkPropertiesChanged ()
 emitted when global info about a landmark changed More...
 
void clinicalApplicationChanged ()
 
void rMprChanged ()
 
void streamLoaded ()
 
void patientChanged ()
 
void videoAddedToTrackedStream ()
 

Public Member Functions

virtual ~PatientModelService ()
 
virtual void insertData (DataPtr data, bool overWrite=false)=0
 
virtual std::map< QString, DataPtrgetDatas (DataFilter filter=HideUnavailable) const =0
 
virtual std::map< QString, DataPtrgetChildren (QString parent_uid, QString of_type="") const =0
 
virtual DataPtr createData (QString type, QString uid, QString name="")=0
 
virtual void removeData (QString uid)=0
 
template<class DATA >
std::map< QString, boost::shared_ptr< DATA > > getDataOfType () const
 
DataPtr getData (const QString &uid) const
 
template<class DATA >
boost::shared_ptr< DATA > getData (const QString &uid) const
 
template<class DATA >
boost::shared_ptr< DATA > createSpecificData (QString uid, QString name="")
 
virtual std::map< QString, VideoSourcePtrgetStreams () const =0
 
VideoSourcePtr getStream (const QString &uid) const
 Convenience function getting a specified stream. More...
 
virtual Transform3D get_rMpr () const
 
virtual RegistrationHistoryPtr get_rMpr_History () const =0
 
virtual ActiveDataPtr getActiveData () const =0
 
virtual LandmarksPtr getPatientLandmarks () const =0
 landmark defined in patient space More...
 
virtual std::map< QString, LandmarkPropertygetLandmarkProperties () const =0
 
virtual void setLandmarkName (QString uid, QString name)=0
 
virtual void setLandmarkActive (QString uid, bool active)=0
 
virtual QString addLandmark ()=0
 
virtual void deleteLandmarks ()=0
 
virtual void updateRegistration_rMpr (const QDateTime &oldTime, const RegistrationTransform &newTransform)
 
virtual QString getActivePatientFolder () const =0
 
QString generateFilePath (QString folderName, QString ending)
 
virtual bool isPatientValid () const =0
 
virtual DataPtr importData (QString fileName, QString &infoText)=0
 
virtual void exportPatient (PATIENT_COORDINATE_SYSTEM externalSpace)=0
 
virtual PresetTransferFunctions3DPtr getPresetTransferFunctions3D () const =0
 
virtual void setCenter (const Vector3D &center)=0
 
virtual Vector3D getCenter () const =0
 current common center point for user viewing. More...
 
virtual void setOperatingTable (const OperatingTable &ot)=0
 
virtual OperatingTable getOperatingTable () const =0
 
virtual CLINICAL_VIEW getClinicalApplication () const =0
 
virtual void setClinicalApplication (CLINICAL_VIEW application)=0
 
virtual void autoSave ()=0
 
virtual bool isNull ()=0
 
virtual void makeAvailable (const QString &uid, bool available)=0
 Exclude this data from getDatas() More...
 

Static Public Member Functions

static PatientModelServicePtr getNullObject ()
 

Detailed Description

The virtual patient.

PatientModelService provides access to the Patient Specific Model (PaSM).

  • data entities
    • volumes
    • surfaces
    • metrics
    • etc
  • relations between entities in space, time and structure
  • load/save
Date
2014-05-15
Author
Christian Askeland, SINTEF
Ole Vegard Solberg, SINTEF

Definition at line 85 of file cxPatientModelService.h.

Member Enumeration Documentation

◆ DataFilter

Enumerator
HideUnavailable 
AllData 

Definition at line 91 of file cxPatientModelService.h.

Constructor & Destructor Documentation

◆ ~PatientModelService()

virtual cx::PatientModelService::~PatientModelService ( )
inlinevirtual

Definition at line 89 of file cxPatientModelService.h.

Member Function Documentation

◆ addLandmark()

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

◆ autoSave()

virtual void cx::PatientModelService::autoSave ( )
pure virtual

◆ centerChanged

void cx::PatientModelService::centerChanged ( )
signal

emitted when center is changed.

◆ clinicalApplicationChanged

void cx::PatientModelService::clinicalApplicationChanged ( )
signal

◆ createData()

virtual DataPtr cx::PatientModelService::createData ( QString  type,
QString  uid,
QString  name = "" 
)
pure virtual

Create Data object of given type.

uid must be unique, or contain the string %1 that will be replaced with a running index that makes the uid unique. The same applies to name. An empty name will set name = uid.

Implemented in cx::PatientModelServiceProxy, cx::PatientModelServiceNull, and cx::PatientModelImplService.

◆ createSpecificData()

template<class DATA >
boost::shared_ptr< DATA > cx::PatientModelService::createSpecificData ( QString  uid,
QString  name = "" 
)

Definition at line 202 of file cxPatientModelService.h.

◆ dataAddedOrRemoved

void cx::PatientModelService::dataAddedOrRemoved ( )
signal

◆ deleteLandmarks()

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

◆ exportPatient()

virtual void cx::PatientModelService::exportPatient ( PATIENT_COORDINATE_SYSTEM  externalSpace)
pure virtual

◆ generateFilePath()

QString cx::PatientModelService::generateFilePath ( QString  folderName,
QString  ending 
)

Definition at line 66 of file cxPatientModelService.cpp.

◆ get_rMpr()

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

Reimplemented in cx::PatientModelImplService.

Definition at line 45 of file cxPatientModelService.cpp.

◆ get_rMpr_History()

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

◆ getActiveData()

virtual ActiveDataPtr cx::PatientModelService::getActiveData ( ) const
pure virtual

◆ getActivePatientFolder()

virtual QString cx::PatientModelService::getActivePatientFolder ( ) const
pure virtual

◆ getCenter()

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

current common center point for user viewing.

Implemented in cx::PatientModelServiceProxy, cx::PatientModelImplService, and cx::PatientModelServiceNull.

◆ getChildren()

virtual std::map<QString, DataPtr> cx::PatientModelService::getChildren ( QString  parent_uid,
QString  of_type = "" 
) const
pure virtual

◆ getClinicalApplication()

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

◆ getData() [1/2]

DataPtr cx::PatientModelService::getData ( const QString &  uid) const

Definition at line 33 of file cxPatientModelService.cpp.

◆ getData() [2/2]

template<class DATA >
boost::shared_ptr< DATA > cx::PatientModelService::getData ( const QString &  uid) const

Definition at line 196 of file cxPatientModelService.h.

◆ getDataOfType()

template<class DATA >
std::map< QString, boost::shared_ptr< DATA > > cx::PatientModelService::getDataOfType

Definition at line 182 of file cxPatientModelService.h.

◆ getDatas()

virtual std::map<QString, DataPtr> cx::PatientModelService::getDatas ( DataFilter  filter = HideUnavailable) const
pure virtual

◆ getLandmarkProperties()

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

Get all defined landmarks. These landmarks are additionally defined in specific coordinate spaces, such as patient and for each Data.

Implemented in cx::PatientModelServiceProxy, cx::PatientModelImplService, and cx::PatientModelServiceNull.

◆ getNullObject()

PatientModelServicePtr cx::PatientModelService::getNullObject ( )
static

Definition at line 25 of file cxPatientModelService.cpp.

◆ getOperatingTable()

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

◆ getPatientLandmarks()

virtual LandmarksPtr cx::PatientModelService::getPatientLandmarks ( ) const
pure virtual

landmark defined in patient space

Implemented in cx::PatientModelServiceProxy, cx::PatientModelImplService, and cx::PatientModelServiceNull.

◆ getPresetTransferFunctions3D()

virtual PresetTransferFunctions3DPtr cx::PatientModelService::getPresetTransferFunctions3D ( ) const
pure virtual

◆ getStream()

VideoSourcePtr cx::PatientModelService::getStream ( const QString &  uid) const

Convenience function getting a specified stream.

Definition at line 58 of file cxPatientModelService.cpp.

◆ getStreams()

virtual std::map<QString, VideoSourcePtr> cx::PatientModelService::getStreams ( ) const
pure virtual

◆ importData()

virtual DataPtr cx::PatientModelService::importData ( QString  fileName,
QString &  infoText 
)
pure virtual

◆ insertData()

virtual void cx::PatientModelService::insertData ( DataPtr  data,
bool  overWrite = false 
)
pure virtual

◆ isNull()

virtual bool cx::PatientModelService::isNull ( )
pure virtual

◆ isPatientValid()

virtual bool cx::PatientModelService::isPatientValid ( ) const
pure virtual

◆ landmarkPropertiesChanged

void cx::PatientModelService::landmarkPropertiesChanged ( )
signal

emitted when global info about a landmark changed

◆ makeAvailable()

virtual void cx::PatientModelService::makeAvailable ( const QString &  uid,
bool  available 
)
pure virtual

◆ operatingTableChanged

void cx::PatientModelService::operatingTableChanged ( )
signal

◆ patientChanged

void cx::PatientModelService::patientChanged ( )
signal

◆ removeData()

virtual void cx::PatientModelService::removeData ( QString  uid)
pure virtual

◆ rMprChanged

void cx::PatientModelService::rMprChanged ( )
signal

◆ setCenter()

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

◆ setClinicalApplication()

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

◆ setLandmarkActive()

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

◆ setLandmarkName()

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

◆ setOperatingTable()

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

◆ streamLoaded

void cx::PatientModelService::streamLoaded ( )
signal

◆ updateRegistration_rMpr()

void cx::PatientModelService::updateRegistration_rMpr ( const QDateTime &  oldTime,
const RegistrationTransform newTransform 
)
virtual

Definition at line 50 of file cxPatientModelService.cpp.

◆ videoAddedToTrackedStream

void cx::PatientModelService::videoAddedToTrackedStream ( )
signal

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