NorMIT-nav  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
< RecordSessionPtr
getSessions ()
 
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 52 of file cxAcquisitionServiceProxy.h.

Constructor & Destructor Documentation

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

Definition at line 48 of file cxAcquisitionServiceProxy.cpp.

cx::AcquisitionServiceProxy::~AcquisitionServiceProxy ( )
inline

Definition at line 58 of file cxAcquisitionServiceProxy.h.

Member Function Documentation

void cx::AcquisitionServiceProxy::cancelRecord ( )
virtual

Implements cx::AcquisitionService.

Definition at line 146 of file cxAcquisitionServiceProxy.cpp.

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

Implements cx::AcquisitionService.

Definition at line 126 of file cxAcquisitionServiceProxy.cpp.

RecordSessionPtr cx::AcquisitionServiceProxy::getLatestSession ( )
virtual

Implements cx::AcquisitionService.

Definition at line 111 of file cxAcquisitionServiceProxy.cpp.

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

Implements cx::AcquisitionService.

Definition at line 161 of file cxAcquisitionServiceProxy.cpp.

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

Implements cx::AcquisitionService.

Definition at line 116 of file cxAcquisitionServiceProxy.cpp.

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

Implements cx::AcquisitionService.

Definition at line 131 of file cxAcquisitionServiceProxy.cpp.

bool cx::AcquisitionServiceProxy::isNull ( )
virtual

Implements cx::AcquisitionService.

Definition at line 106 of file cxAcquisitionServiceProxy.cpp.

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

Implements cx::AcquisitionService.

Definition at line 121 of file cxAcquisitionServiceProxy.cpp.

void cx::AcquisitionServiceProxy::startPostProcessing ( )
virtual

Implements cx::AcquisitionService.

Definition at line 151 of file cxAcquisitionServiceProxy.cpp.

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

Implements cx::AcquisitionService.

Definition at line 136 of file cxAcquisitionServiceProxy.cpp.

void cx::AcquisitionServiceProxy::stopPostProcessing ( )
virtual

Implements cx::AcquisitionService.

Definition at line 156 of file cxAcquisitionServiceProxy.cpp.

void cx::AcquisitionServiceProxy::stopRecord ( )
virtual

Implements cx::AcquisitionService.

Definition at line 141 of file cxAcquisitionServiceProxy.cpp.


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