CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::AcquisitionServiceProxy Class Reference

Always provides an AcqusitionService. More...

#include <cxAcquisitionServiceProxy.h>

Inheritance diagram for cx::AcquisitionServiceProxy:
cx::AcquisitionService

Public Member Functions

 AcquisitionServiceProxy (ctkPluginContext *context)
 
 ~AcquisitionServiceProxy ()
 
virtual bool isNull ()
 
virtual RecordSessionPtr getLatestSession ()
 
virtual std::vector< RecordSessionPtrgetSessions ()
 
virtual bool isReady (TYPES context) const
 
virtual QString getInfoText (TYPES context) const
 
virtual STATE getState () const
 
virtual void startRecord (TYPES context, QString category, RecordSessionPtr session)
 
virtual void stopRecord ()
 
virtual void cancelRecord ()
 
virtual void startPostProcessing ()
 
virtual void stopPostProcessing ()
 
virtual int getNumberOfSavingThreads () const
 
- Public Member Functions inherited from cx::AcquisitionService
virtual ~AcquisitionService ()
 
RecordSessionPtr getSession (QString uid)
 

Additional Inherited Members

- Public Types inherited from cx::AcquisitionService
enum  TYPE { tTRACKING, tUS, tCOUNT }
 
enum  STATE { sRUNNING = 0, sPOST_PROCESSING = 1, sNOT_RUNNING = 2 }
 
typedef QFlags< TYPETYPES
 
- Signals inherited from cx::AcquisitionService
void started ()
 
void cancelled ()
 
void stateChanged ()
 
void usReadinessChanged ()
 
void acquisitionStopped ()
 
void recordedSessionsChanged ()
 
void acquisitionDataReady ()
 emitted when data is acquired and sent to the reconstruction module More...
 
void saveDataCompleted (QString mhdFilename)
 emitted when data has been saved to file More...
 
- Static Public Member Functions inherited from cx::AcquisitionService
static AcquisitionServicePtr getNullObject ()
 

Detailed Description

Always provides an AcqusitionService.

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

Date
2014-11-26
Author
Ole Vegard Solberg, SINTEF

Definition at line 31 of file cxAcquisitionServiceProxy.h.

Constructor & Destructor Documentation

cx::AcquisitionServiceProxy::AcquisitionServiceProxy ( ctkPluginContext *  context)

Definition at line 27 of file cxAcquisitionServiceProxy.cpp.

cx::AcquisitionServiceProxy::~AcquisitionServiceProxy ( )
inline

Definition at line 37 of file cxAcquisitionServiceProxy.h.

Member Function Documentation

void cx::AcquisitionServiceProxy::cancelRecord ( )
virtual

Implements cx::AcquisitionService.

Definition at line 125 of file cxAcquisitionServiceProxy.cpp.

QString cx::AcquisitionServiceProxy::getInfoText ( TYPES  context) const
virtual

Implements cx::AcquisitionService.

Definition at line 105 of file cxAcquisitionServiceProxy.cpp.

RecordSessionPtr cx::AcquisitionServiceProxy::getLatestSession ( )
virtual

Implements cx::AcquisitionService.

Definition at line 90 of file cxAcquisitionServiceProxy.cpp.

int cx::AcquisitionServiceProxy::getNumberOfSavingThreads ( ) const
virtual

Implements cx::AcquisitionService.

Definition at line 140 of file cxAcquisitionServiceProxy.cpp.

std::vector< RecordSessionPtr > cx::AcquisitionServiceProxy::getSessions ( )
virtual

Implements cx::AcquisitionService.

Definition at line 95 of file cxAcquisitionServiceProxy.cpp.

AcquisitionService::STATE cx::AcquisitionServiceProxy::getState ( ) const
virtual

Implements cx::AcquisitionService.

Definition at line 110 of file cxAcquisitionServiceProxy.cpp.

bool cx::AcquisitionServiceProxy::isNull ( )
virtual

Implements cx::AcquisitionService.

Definition at line 85 of file cxAcquisitionServiceProxy.cpp.

bool cx::AcquisitionServiceProxy::isReady ( TYPES  context) const
virtual

Implements cx::AcquisitionService.

Definition at line 100 of file cxAcquisitionServiceProxy.cpp.

void cx::AcquisitionServiceProxy::startPostProcessing ( )
virtual

Implements cx::AcquisitionService.

Definition at line 130 of file cxAcquisitionServiceProxy.cpp.

void cx::AcquisitionServiceProxy::startRecord ( TYPES  context,
QString  category,
RecordSessionPtr  session 
)
virtual

Implements cx::AcquisitionService.

Definition at line 115 of file cxAcquisitionServiceProxy.cpp.

void cx::AcquisitionServiceProxy::stopPostProcessing ( )
virtual

Implements cx::AcquisitionService.

Definition at line 135 of file cxAcquisitionServiceProxy.cpp.

void cx::AcquisitionServiceProxy::stopRecord ( )
virtual

Implements cx::AcquisitionService.

Definition at line 120 of file cxAcquisitionServiceProxy.cpp.


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