29 PanoCommand::~PanoCommand()
41 void PanoCommand::execute()
62 void PanoCommand::undo()
70 void PanoCommand::redo()
83 std::string PanoCommand::getName()
const
88 void PanoCommand::setName(
const std::string& newName)
93 bool PanoCommand::wasSuccessful()
const
98 void PanoCommand::setSuccessful(
bool success)
103 void PanoCommand::saveMemento()
112 void PanoCommand::saveRedoMemento()
HuginBase::PanoramaDataMemento * m_redoMemento
Base class for all panorama commands.
virtual void setSuccessful(bool success=true)
virtual void saveMemento()
saves the state for undo
HuginBase::Panorama & m_pano
internal variables
HuginBase::PanoramaDataMemento * m_memento
#define DEBUG_ASSERT(cond)
virtual bool setMementoToCopyOf(const PanoramaDataMemento *const memento)
set the internal state
virtual void clearDirty()
clear dirty flag.
virtual PanoramaDataMemento * getNewMemento() const
get the internal state
virtual void execute()
execute the command.
virtual bool processPanorama(HuginBase::Panorama &pano)
Called by execute().
void changeFinished(bool keepDirty)
notify observers about changes in this class
virtual void saveRedoMemento()
saves the state for redo