7 #include "ctrlSelection/MedicalImageSrv.hpp" 9 #include <fwCom/Signal.hxx> 10 #include <fwCom/Slots.hxx> 12 #include <fwData/Image.hpp> 14 #include <fwDataTools/fieldHelper/MedicalImageHelpers.hpp> 15 #include <fwDataTools/helper/Image.hpp> 17 #include <fwServices/macros.hpp> 28 MedicalImageSrv::MedicalImageSrv() noexcept
34 MedicalImageSrv::~MedicalImageSrv() noexcept
40 void MedicalImageSrv::convertImage()
42 ::fwData::Image::sptr pImg = this->getInOut< ::fwData::Image >(
"image");
47 bool isModified =
false;
48 isModified |= helper.createLandmarks();
49 isModified |= helper.createTransferFunctionPool();
50 isModified |= helper.createImageSliceIndex();
This class is a helper to define the connections of a service and its data.
Class allowing to block a Connection.
virtual CTRLSELECTION_API void reconfiguring() override
Implements reconfiguring method derived from IService. Do nothing.
virtual CTRLSELECTION_API void configuring() override
Implements configuring method derived from IService. Do nothing.
virtual CTRLSELECTION_API void info(std::ostream &_sstream) override
Implements info method derived from IService. Print classname.
UpdateSlotType::sptr m_slotUpdate
Slot to call update method.
This interface defines control service API. Does nothing particularly, can be considered as a default...
virtual CTRLSELECTION_API void stopping() override
Implements stopping method derived from IService. Do nothing.
virtual CTRLSELECTION_API void updating() override
Implements updating method derived from IService. Do nothing.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_BUFFER_MODIFIED_SIG
Type of signal when image's buffer is added.
static FWDATA_APIconst::fwCom::Signals::SignalKeyType s_MODIFIED_SIG
Key in m_signals map of signal m_sigModified.
This class defines an image.
virtual CTRLSELECTION_API void swapping() override
Implements swapping method derived from IService. Convert the image.
virtual CTRLSELECTION_API void starting() override
Implements starting method derived from IService. Convert the image.
The namespace ctrlSelection contains several interfaces for manager, updater and wrapper.
virtual CTRLSELECTION_API KeyConnectionsMap getAutoConnections() const override
Returns proposals to connect service slots to associated object signals, this method is used for obj/...
static FWSERVICES_APIconst::fwCom::Slots::SlotKeyType s_UPDATE_SLOT
Slot to call start method.
This service convert its attached image to a medical image by adding specific fields.