CustusX  2020.11.07-dev+develop.4ce4a
An IGT application
cx::PatientModelServiceProxy Class Reference

Always provides a PatientModelService. More...

#include <cxPatientModelServiceProxy.h>

Inheritance diagram for cx::PatientModelServiceProxy:
cx::PatientModelService

Public Member Functions

 PatientModelServiceProxy (ctkPluginContext *context)
 
virtual ~PatientModelServiceProxy ()
 
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 DataPtr getData (const QString &uid) 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, 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...
 
virtual void setOperatingTable (const OperatingTable &ot)
 
virtual 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)
 

Static Public Member Functions

static PatientModelServicePtr create (ctkPluginContext *pluginContext)
 
- Static Public Member Functions inherited from cx::PatientModelService
static PatientModelServicePtr getNullObject ()
 

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 ()
 

Detailed Description

Always provides a PatientModelService.

Use the Proxy design pattern. Uses ServiceTrackerListener to either provide an implementation of PatientModelService or the null object (PatientModelServiceNull)

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

Definition at line 36 of file cxPatientModelServiceProxy.h.

Constructor & Destructor Documentation

cx::PatientModelServiceProxy::PatientModelServiceProxy ( ctkPluginContext *  context)

Definition at line 29 of file cxPatientModelServiceProxy.cpp.

cx::PatientModelServiceProxy::~PatientModelServiceProxy ( )
virtual

Definition at line 36 of file cxPatientModelServiceProxy.cpp.

Member Function Documentation

QString cx::PatientModelServiceProxy::addLandmark ( )
virtual

Implements cx::PatientModelService.

Definition at line 207 of file cxPatientModelServiceProxy.cpp.

void cx::PatientModelServiceProxy::autoSave ( )
virtual

Implements cx::PatientModelService.

Definition at line 137 of file cxPatientModelServiceProxy.cpp.

PatientModelServicePtr cx::PatientModelServiceProxy::create ( ctkPluginContext *  pluginContext)
static

Definition at line 24 of file cxPatientModelServiceProxy.cpp.

DataPtr cx::PatientModelServiceProxy::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 102 of file cxPatientModelServiceProxy.cpp.

void cx::PatientModelServiceProxy::deleteLandmarks ( )
virtual

Implements cx::PatientModelService.

Definition at line 212 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 172 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 222 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 227 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 157 of file cxPatientModelServiceProxy.cpp.

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

current common center point for user viewing.

Implements cx::PatientModelService.

Definition at line 192 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 112 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 232 of file cxPatientModelServiceProxy.cpp.

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

Definition at line 117 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 107 of file cxPatientModelServiceProxy.cpp.

std::map< QString, LandmarkProperty > cx::PatientModelServiceProxy::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 127 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 202 of file cxPatientModelServiceProxy.cpp.

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

landmark defined in patient space

Implements cx::PatientModelService.

Definition at line 122 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 182 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 152 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 167 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 97 of file cxPatientModelServiceProxy.cpp.

bool cx::PatientModelServiceProxy::isNull ( )
virtual

Implements cx::PatientModelService.

Definition at line 142 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 162 of file cxPatientModelServiceProxy.cpp.

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

Exclude this data from getDatas()

Implements cx::PatientModelService.

Definition at line 147 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 177 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 187 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 237 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 217 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 132 of file cxPatientModelServiceProxy.cpp.

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

Implements cx::PatientModelService.

Definition at line 197 of file cxPatientModelServiceProxy.cpp.


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