14 #include <boost/bind.hpp> 15 #include <ctkPluginContext.h> 28 mPluginContext(context),
31 this->initServiceListener();
34 void AcquisitionServiceProxy::initServiceListener()
38 boost::bind(&AcquisitionServiceProxy::onServiceAdded,
this, _1),
40 boost::bind(&AcquisitionServiceProxy::onServiceRemoved,
this, _1)
42 mServiceListener->open();
58 if(mAcquisitionService->isNull())
59 reportWarning(
"AcquisitionServiceProxy::onServiceAdded mAcquisitionService->isNull()");
87 return mAcquisitionService->isNull();
92 return mAcquisitionService->getLatestSession();
97 return mAcquisitionService->getSessions();
102 return mAcquisitionService->isReady(context);
107 return mAcquisitionService->getInfoText(context);
112 return mAcquisitionService->getState();
117 mAcquisitionService->startRecord(context, category, session);
122 mAcquisitionService->stopRecord();
127 mAcquisitionService->cancelRecord();
132 mAcquisitionService->startPostProcessing();
137 mAcquisitionService->stopPostProcessing();
142 return mAcquisitionService->getNumberOfSavingThreads();
Acqusition services abstract interface.
void acquisitionStopped()
virtual RecordSessionPtr getLatestSession()
virtual void stopPostProcessing()
virtual void stopRecord()
void saveDataCompleted(QString mhdFilename)
emitted when data has been saved to file
virtual void cancelRecord()
virtual void startRecord(TYPES context, QString category, RecordSessionPtr session)
virtual QString getInfoText(TYPES context) const
virtual STATE getState() const
boost::shared_ptr< class RecordSession > RecordSessionPtr
void reportWarning(QString msg)
virtual bool isReady(TYPES context) const
virtual int getNumberOfSavingThreads() const
static AcquisitionServicePtr getNullObject()
Helper class for listening to services being added, modified and removed.
virtual void startPostProcessing()
AcquisitionServiceProxy(ctkPluginContext *context)
void usReadinessChanged()
void recordedSessionsChanged()
void acquisitionDataReady()
emitted when data is acquired and sent to the reconstruction module
virtual std::vector< RecordSessionPtr > getSessions()
Namespace for all CustusX production code.