CustusX  22.04-rc5
An IGT application
cx::PatientModelImplService Class Reference

#include <cxPatientModelImplService.h>

Inheritance diagram for cx::PatientModelImplService:
cx::PatientModelService

Public Member Functions

 PatientModelImplService (ctkPluginContext *context)
 
virtual ~PatientModelImplService ()
 
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 DataPtr getData (const QString &uid) 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 Transform3D get_rMpr () const
 get the patient registration transform More...
 
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...
 
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 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

Implementation of PatientModelService.

Date
2014-05-15
Author
Christian Askeland

Definition at line 35 of file cxPatientModelImplService.h.

Constructor & Destructor Documentation

cx::PatientModelImplService::PatientModelImplService ( ctkPluginContext *  context)

Definition at line 37 of file cxPatientModelImplService.cpp.

cx::PatientModelImplService::~PatientModelImplService ( )
virtual

Definition at line 99 of file cxPatientModelImplService.cpp.

Member Function Documentation

QString cx::PatientModelImplService::addLandmark ( )
virtual

Implements cx::PatientModelService.

Definition at line 274 of file cxPatientModelImplService.cpp.

void cx::PatientModelImplService::autoSave ( )
virtual

Implements cx::PatientModelService.

Definition at line 187 of file cxPatientModelImplService.cpp.

DataPtr cx::PatientModelImplService::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 122 of file cxPatientModelImplService.cpp.

void cx::PatientModelImplService::deleteLandmarks ( )
virtual

Implements cx::PatientModelService.

Definition at line 279 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 239 of file cxPatientModelImplService.cpp.

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

get the patient registration transform

Reimplemented from cx::PatientModelService.

Definition at line 182 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 289 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 294 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 224 of file cxPatientModelImplService.cpp.

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

current common center point for user viewing.

Implements cx::PatientModelService.

Definition at line 259 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 152 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 209 of file cxPatientModelImplService.cpp.

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

Definition at line 143 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 127 of file cxPatientModelImplService.cpp.

std::map< QString, LandmarkProperty > cx::PatientModelImplService::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 172 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 269 of file cxPatientModelImplService.cpp.

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

landmark defined in patient space

Implements cx::PatientModelService.

Definition at line 167 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 249 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 219 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 234 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 114 of file cxPatientModelImplService.cpp.

bool cx::PatientModelImplService::isNull ( )
virtual

Implements cx::PatientModelService.

Definition at line 192 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 229 of file cxPatientModelImplService.cpp.

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

Exclude this data from getDatas()

Implements cx::PatientModelService.

Definition at line 197 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 244 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 254 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 214 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 284 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 177 of file cxPatientModelImplService.cpp.

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

Implements cx::PatientModelService.

Definition at line 264 of file cxPatientModelImplService.cpp.


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