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

Null Object Pattern for Registration service. More...

#include <cxPatientModelServiceNull.h>

Inheritance diagram for cx::PatientModelServiceNull:
cx::PatientModelService

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from cx::PatientModelService
enum  DataFilter { HideUnavailable, AllData }
 
- Signals inherited from cx::PatientModelService
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 ()
 
- Static Public Member Functions inherited from cx::PatientModelService
static PatientModelServicePtr getNullObject ()
 

Detailed Description

Null Object Pattern for Registration service.

Date
2014-09-10
Author
Ole Vegard Solberg, SINTEF

Definition at line 28 of file cxPatientModelServiceNull.h.

Constructor & Destructor Documentation

◆ PatientModelServiceNull()

cx::PatientModelServiceNull::PatientModelServiceNull ( )

Definition at line 24 of file cxPatientModelServiceNull.cpp.

Member Function Documentation

◆ addLandmark()

QString cx::PatientModelServiceNull::addLandmark ( )
virtual

Implements cx::PatientModelService.

Definition at line 145 of file cxPatientModelServiceNull.cpp.

◆ autoSave()

void cx::PatientModelServiceNull::autoSave ( )
virtual

Implements cx::PatientModelService.

Definition at line 69 of file cxPatientModelServiceNull.cpp.

◆ createData()

DataPtr cx::PatientModelServiceNull::createData ( QString  type,
QString  uid,
QString  name = "" 
)
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.

Implements cx::PatientModelService.

Definition at line 32 of file cxPatientModelServiceNull.cpp.

◆ deleteLandmarks()

void cx::PatientModelServiceNull::deleteLandmarks ( )
virtual

Implements cx::PatientModelService.

Definition at line 151 of file cxPatientModelServiceNull.cpp.

◆ exportPatient()

void cx::PatientModelServiceNull::exportPatient ( PATIENT_COORDINATE_SYSTEM  externalSpace)
virtual

Implements cx::PatientModelService.

Definition at line 109 of file cxPatientModelServiceNull.cpp.

◆ get_rMpr_History()

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

Implements cx::PatientModelService.

Definition at line 168 of file cxPatientModelServiceNull.cpp.

◆ getActiveData()

ActiveDataPtr cx::PatientModelServiceNull::getActiveData ( ) const
virtual

Implements cx::PatientModelService.

Definition at line 174 of file cxPatientModelServiceNull.cpp.

◆ getActivePatientFolder()

QString cx::PatientModelServiceNull::getActivePatientFolder ( ) const
virtual

Implements cx::PatientModelService.

Definition at line 91 of file cxPatientModelServiceNull.cpp.

◆ getCenter()

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

current common center point for user viewing.

Implements cx::PatientModelService.

Definition at line 130 of file cxPatientModelServiceNull.cpp.

◆ getChildren()

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

Implements cx::PatientModelService.

Definition at line 44 of file cxPatientModelServiceNull.cpp.

◆ getClinicalApplication()

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

Implements cx::PatientModelService.

Definition at line 180 of file cxPatientModelServiceNull.cpp.

◆ getDatas()

std::map< QString, DataPtr > cx::PatientModelServiceNull::getDatas ( DataFilter  filter) const
virtual

Implements cx::PatientModelService.

Definition at line 37 of file cxPatientModelServiceNull.cpp.

◆ getLandmarkProperties()

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

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

Implements cx::PatientModelService.

Definition at line 58 of file cxPatientModelServiceNull.cpp.

◆ getOperatingTable()

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

Implements cx::PatientModelService.

Definition at line 140 of file cxPatientModelServiceNull.cpp.

◆ getPatientLandmarks()

LandmarksPtr cx::PatientModelServiceNull::getPatientLandmarks ( ) const
virtual

landmark defined in patient space

Implements cx::PatientModelService.

Definition at line 51 of file cxPatientModelServiceNull.cpp.

◆ getPresetTransferFunctions3D()

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

Implements cx::PatientModelService.

Definition at line 119 of file cxPatientModelServiceNull.cpp.

◆ getStreams()

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

Implements cx::PatientModelService.

Definition at line 85 of file cxPatientModelServiceNull.cpp.

◆ importData()

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

Implements cx::PatientModelService.

Definition at line 103 of file cxPatientModelServiceNull.cpp.

◆ insertData()

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

Implements cx::PatientModelService.

Definition at line 27 of file cxPatientModelServiceNull.cpp.

◆ isNull()

bool cx::PatientModelServiceNull::isNull ( )
virtual

Implements cx::PatientModelService.

Definition at line 74 of file cxPatientModelServiceNull.cpp.

◆ isPatientValid()

bool cx::PatientModelServiceNull::isPatientValid ( ) const
virtual

Implements cx::PatientModelService.

Definition at line 97 of file cxPatientModelServiceNull.cpp.

◆ makeAvailable()

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

Exclude this data from getDatas()

Implements cx::PatientModelService.

Definition at line 80 of file cxPatientModelServiceNull.cpp.

◆ removeData()

void cx::PatientModelServiceNull::removeData ( QString  uid)
virtual

Implements cx::PatientModelService.

Definition at line 114 of file cxPatientModelServiceNull.cpp.

◆ setCenter()

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

Implements cx::PatientModelService.

Definition at line 125 of file cxPatientModelServiceNull.cpp.

◆ setClinicalApplication()

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

Implements cx::PatientModelService.

Definition at line 185 of file cxPatientModelServiceNull.cpp.

◆ setLandmarkActive()

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

Implements cx::PatientModelService.

Definition at line 156 of file cxPatientModelServiceNull.cpp.

◆ setLandmarkName()

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

Implements cx::PatientModelService.

Definition at line 64 of file cxPatientModelServiceNull.cpp.

◆ setOperatingTable()

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

Implements cx::PatientModelService.

Definition at line 135 of file cxPatientModelServiceNull.cpp.


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