7 #include "ctrlSelection/updater/SObjFromSlot.hpp" 9 #include <fwCom/Slot.hxx> 10 #include <fwCom/Slots.hxx> 12 #include <fwServices/macros.hpp> 26 static const std::string s_OBJECT =
"object";
virtual CTRLSELECTION_API void info(std::ostream &_sstream) override
Implements info method derived from IService. Print classname.
void add(::fwData::Object::sptr obj)
Registers the given object in the OSR.
virtual CTRLSELECTION_API void stopping() override
Implements stopping method derived from IService. Do nothing.
void addOrSwap(::fwData::Object::sptr obj)
Adds or swap the object into the composite with the key given by config.
void swap(::fwData::Object::sptr obj)
Swaps the object into the composite with the key given by config.
static const ::fwCom::Slots::SlotKeyType s_REMOVE_IF_PRESENT_SLOT
Registers the given object in the OSR.
virtual CTRLSELECTION_API void configuring() override
Configures the service.
virtual CTRLSELECTION_API void updating() override
Implements updating method derived from IService. Do nothing.
static const ::fwCom::Slots::SlotKeyType s_ADD_SLOT
Registers the given object in the OSR.
static const ::fwCom::Slots::SlotKeyType s_REMOVE_SLOT
Registers the given object in the OSR.
CTRLSELECTION_API SObjFromSlot() noexcept
Constructor. Do nothing.
Registers/unregisters the object given by the slots.
FWSERVICES_API void setOutput(const ::fwServices::IService::KeyType &key, const ::fwData::Object::sptr &object, size_t index=0)
Register an output object at a given key in the OSR, replacing it if it already exists.
virtual CTRLSELECTION_API ~SObjFromSlot() noexcept
Destructor. Do nothing.
virtual CTRLSELECTION_API void starting() override
Implements starting method derived from IService. Do nothing.
static const ::fwCom::Slots::SlotKeyType s_SWAP_OBJ_SLOT
Registers the given object in the OSR.
An updater is use to register/unregister object in the OSR when it receives specific signals (declare...
This class defines a composite object.
void remove()
Adds the object from the composite with the key given by config.
The namespace ctrlSelection contains several interfaces for manager, updater and wrapper.
static const ::fwCom::Slots::SlotKeyType s_ADD_OR_SWAP_SLOT
Registers the given object in the OSR.
#define FW_DEPRECATED(oldFnName, newFnName, version)
Use this macro when deprecating a function to warn the developer.
void removeIfPresent()
Unregisters the object in the OSR.