CustusX  15.4.0-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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)
 
virtual DataPtr createData (QString type, QString uid, QString name="")
 
virtual std::map< QString,
DataPtr
getData () const
 
virtual LandmarksPtr getPatientLandmarks () const
 landmark defined in patient space More...
 
virtual std::map< QString,
LandmarkProperty
getLandmarkProperties () const
 
virtual void setLandmarkName (QString uid, QString name)
 
virtual void setLandmarkActive (QString uid, bool active)
 
virtual RegistrationHistoryPtr get_rMpr_History () const
 
virtual ImagePtr getActiveImage () const
 used for system state More...
 
virtual void setActiveImage (ImagePtr activeImage)
 used for system state More...
 
virtual CLINICAL_VIEW getClinicalApplication () const
 
virtual void setClinicalApplication (CLINICAL_VIEW application)
 
virtual std::map< QString,
cx::VideoSourcePtr
getStreams () const
 
virtual QString getActivePatientFolder () const
 
virtual bool isPatientValid () const
 
virtual DataPtr importData (QString fileName, QString &infoText)
 
virtual void exportPatient (bool niftiFormat)
 
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...
 
virtual QString addLandmark ()
 
virtual void autoSave ()
 
virtual bool isNull ()
 
- 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="")
 
QString getActiveImageUid ()
 
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

- Signals inherited from cx::PatientModelService
void centerChanged ()
 emitted when center is changed. More...
 
void dataAddedOrRemoved ()
 
void activeImageChanged (const QString &uId)
 
void landmarkPropertiesChanged ()
 emitted when global info about a landmark changed More...
 
void clinicalApplicationChanged ()
 
void rMprChanged ()
 
void streamLoaded ()
 
void patientChanged ()
 
- 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 49 of file cxPatientModelServiceNull.h.

Constructor & Destructor Documentation

cx::PatientModelServiceNull::PatientModelServiceNull ( )

Definition at line 44 of file cxPatientModelServiceNull.cpp.

Member Function Documentation

QString cx::PatientModelServiceNull::addLandmark ( )
virtual

Implements cx::PatientModelService.

Definition at line 156 of file cxPatientModelServiceNull.cpp.

void cx::PatientModelServiceNull::autoSave ( )
virtual

Implements cx::PatientModelService.

Definition at line 95 of file cxPatientModelServiceNull.cpp.

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 52 of file cxPatientModelServiceNull.cpp.

void cx::PatientModelServiceNull::exportPatient ( bool  niftiFormat)
virtual

Implements cx::PatientModelService.

Definition at line 130 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 172 of file cxPatientModelServiceNull.cpp.

ImagePtr cx::PatientModelServiceNull::getActiveImage ( ) const
virtual

used for system state

Implements cx::PatientModelService.

Definition at line 84 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 112 of file cxPatientModelServiceNull.cpp.

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

current common center point for user viewing.

Implements cx::PatientModelService.

Definition at line 151 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 178 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 57 of file cxPatientModelServiceNull.cpp.

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 72 of file cxPatientModelServiceNull.cpp.

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

landmark defined in patient space

Implements cx::PatientModelService.

Definition at line 65 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 140 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 106 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 124 of file cxPatientModelServiceNull.cpp.

void cx::PatientModelServiceNull::insertData ( DataPtr  data)
virtual

Implements cx::PatientModelService.

Definition at line 47 of file cxPatientModelServiceNull.cpp.

bool cx::PatientModelServiceNull::isNull ( )
virtual

Implements cx::PatientModelService.

Definition at line 100 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 118 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 135 of file cxPatientModelServiceNull.cpp.

void cx::PatientModelServiceNull::setActiveImage ( ImagePtr  activeImage)
virtual

used for system state

Implements cx::PatientModelService.

Definition at line 90 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 146 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 183 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 162 of file cxPatientModelServiceNull.cpp.

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

Implements cx::PatientModelService.

Definition at line 78 of file cxPatientModelServiceNull.cpp.


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