7 #include "fwCommand/ImageDiffCommand.hpp" 9 #include <fwCom/Signal.hpp> 10 #include <fwCom/Signal.hxx> 11 #include <fwCom/Signals.hpp> 13 #include <fwTools/Type.hpp> 22 m_modifSig(img->signal< ::
fwData::Image::BufferModifiedSignalType >(::
fwData::Image::s_BUFFER_MODIFIED_SIG)),
32 return sizeof(*this) + m_diff.
getSize();
41 m_modifSig->asyncEmit();
52 m_modifSig->asyncEmit();
virtual FWCOMMAND_API size_t getSize() const
The diff size.
virtual FWCOMMAND_API const std::string getDescription() const
Returns "ImageDiff".
The namespace fwCommand contains classes describing and managing commands.
FWCOMMAND_API ImageDiffCommand(const ::fwData::Image::sptr &img,::fwDataTools::ImageDiff diff)
Constructor, uses an image and a change list for that image.
virtual FWCOMMAND_API bool undo()
Revert diff.
virtual FWCOMMAND_API bool redo()
Apply diff.
Contains the representation of the data objects used in the framework.