30 mAcquisitionData.reset(
new AcquisitionData(mServices, mUsReconstructService));
31 mAcquisition.reset(
new Acquisition(mAcquisitionData));
60 void AcquisitionImplService::duringClearPatientSlot()
63 mAcquisitionData->clear();
66 void AcquisitionImplService::duringSavePatientSlot(QDomElement& node)
69 QDomElement managerNode = root.
descend(
"managers").
node().toElement();
70 this->addXml(managerNode);
73 void AcquisitionImplService::duringLoadPatientSlot(QDomElement& node)
76 QDomElement stateManagerNode = root.
descend(
"managers/stateManager").
node().toElement();
77 if (!stateManagerNode.isNull())
78 this->parseXml(stateManagerNode);
83 return mAcquisition->getLatestSession();
88 return mAcquisition->getPluginData()->getRecordSessions();
93 return mUsAcquisition->isReady(context)
94 && mAcquisition->isReady(context);
100 text = mAcquisition->getInfoText(context) +
"<br>" + mUsAcquisition->getInfoText(context);
103 QStringList list = text.split(
"<br>", QString::SkipEmptyParts);
104 text = list.join(
"<br>");
115 return mAcquisition->getState();
120 mServices->tracking()->resetTimeSynchronization();
121 mAcquisition->startRecord(context, category, session);
126 mAcquisition->stopRecord();
131 mAcquisition->cancelRecord();
136 mAcquisition->startPostProcessing();
141 mAcquisition->stopPostProcessing();
146 return mUsAcquisition->getNumberOfSavingThreads();
149 void AcquisitionImplService::addXml(QDomNode &dataNode)
151 mAcquisitionData->addXml(dataNode);
154 void AcquisitionImplService::parseXml(QDomNode &dataNode)
156 mAcquisitionData->parseXml(dataNode);
AcquisitionImplService(ctkPluginContext *context)
void acquisitionStopped()
virtual bool isReady(TYPES context) const
void isLoading(QDomElement &root)
emitted while loading a session. Xml storage is available, getRootFolder() is set to loaded value...
void saveDataCompleted(QString mhdFilename)
emitted when data has been saved to file
virtual void stopRecord()
XMLNodeAdder descend(QString path)
void saveDataCompleted(QString mhdFilename)
emitted when data has been saved to file
virtual void cancelRecord()
virtual int getNumberOfSavingThreads() const
virtual STATE getState() const
static VisServicesPtr create(ctkPluginContext *context)
virtual QString getInfoText(TYPES context) const
virtual void startRecord(TYPES context, QString category, RecordSessionPtr session)
boost::shared_ptr< class RecordSession > RecordSessionPtr
void recordedSessionsChanged()
virtual void startPostProcessing()
XMLNodeParser descend(QString path)
void cleared()
emitted when session is cleared, before isLoading is called
void acquisitionDataReady()
emitted when data is acquired and sent to the reconstruction module
virtual RecordSessionPtr getLatestSession()
void usReadinessChanged()
void recordedSessionsChanged()
virtual ~AcquisitionImplService()
void acquisitionStopped()
virtual void stopPostProcessing()
void acquisitionDataReady()
emitted when data is acquired and sent to the reconstruction module
void isSaving(QDomElement &root)
xml storage is available
Handles the us acquisition process.The USAcquisition object attaches itself to an input Acquisition o...
virtual std::vector< RecordSessionPtr > getSessions()
Namespace for all CustusX production code.