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

Provides the last active data of warious types. More...

#include <cxActiveData.h>

Inheritance diagram for cx::ActiveData:
cx::ActiveDataNull

Signals

void activeImageChanged (const QString &uId)
 
void activeDataChanged (const QString &uId)
 

Public Member Functions

 ActiveData (PatientModelServicePtr patientModelService, SessionStorageServicePtr sessionStorageService)
 
virtual QList< DataPtrgetActiveDataHistory () const
 
virtual DataPtr getActive () const
 
virtual DataPtr getActiveUsingRegexp (QString typeRegexp) const
 
template<class DATA >
boost::shared_ptr< DATA > getActive () const
 
virtual ImagePtr getDerivedActiveImage () const
 In addition to returning Image this also provides derived (changing) images from TrackedStream. More...
 
virtual void setActive (DataPtr activeData)
 
virtual void setActive (QString uid)
 
virtual QString getActiveImageUid ()
 
virtual void remove (DataPtr dataToBeRemoved)
 
virtual bool isNull () const
 

Static Public Member Functions

static ActiveDataPtr getNullObject ()
 

Detailed Description

Provides the last active data of warious types.

Date
seb 28, 2015
Author
Ole Vegard Solberg, SINTEF

Definition at line 35 of file cxActiveData.h.

Constructor & Destructor Documentation

cx::ActiveData::ActiveData ( PatientModelServicePtr  patientModelService,
SessionStorageServicePtr  sessionStorageService 
)

Definition at line 82 of file cxActiveData.cpp.

Member Function Documentation

void cx::ActiveData::activeDataChanged ( const QString &  uId)
signal
void cx::ActiveData::activeImageChanged ( const QString &  uId)
signal
DataPtr cx::ActiveData::getActive ( ) const
virtual

Reimplemented in cx::ActiveDataNull.

Definition at line 121 of file cxActiveData.cpp.

template<class DATA >
boost::shared_ptr< DATA > cx::ActiveData::getActive ( ) const

Definition at line 74 of file cxActiveData.h.

QList< DataPtr > cx::ActiveData::getActiveDataHistory ( ) const
virtual

Reimplemented in cx::ActiveDataNull.

Definition at line 116 of file cxActiveData.cpp.

QString cx::ActiveData::getActiveImageUid ( )
virtual

Reimplemented in cx::ActiveDataNull.

Definition at line 186 of file cxActiveData.cpp.

DataPtr cx::ActiveData::getActiveUsingRegexp ( QString  typeRegexp) const
virtual

Reimplemented in cx::ActiveDataNull.

Definition at line 128 of file cxActiveData.cpp.

ImagePtr cx::ActiveData::getDerivedActiveImage ( ) const
virtual

In addition to returning Image this also provides derived (changing) images from TrackedStream.

Reimplemented in cx::ActiveDataNull.

Definition at line 139 of file cxActiveData.cpp.

ActiveDataPtr cx::ActiveData::getNullObject ( )
static

Definition at line 246 of file cxActiveData.cpp.

virtual bool cx::ActiveData::isNull ( ) const
inlinevirtual

Reimplemented in cx::ActiveDataNull.

Definition at line 52 of file cxActiveData.h.

void cx::ActiveData::remove ( DataPtr  dataToBeRemoved)
virtual

Reimplemented in cx::ActiveDataNull.

Definition at line 224 of file cxActiveData.cpp.

void cx::ActiveData::setActive ( DataPtr  activeData)
virtual

Reimplemented in cx::ActiveDataNull.

Definition at line 167 of file cxActiveData.cpp.

void cx::ActiveData::setActive ( QString  uid)
virtual

Definition at line 180 of file cxActiveData.cpp.


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