31 if (m_memento !=
NULL)
35 if (m_redoMemento !=
NULL)
44 bool success = processPanorama(m_pano);
49 m_pano.changeFinished();
58 m_pano.setMementoToCopyOf(m_memento);
66 m_pano.setMementoToCopyOf(m_memento);
67 m_pano.changeFinished();
72 if (m_redoMemento ==
NULL)
78 m_pano.setMementoToCopyOf(m_redoMemento);
79 m_pano.changeFinished();
105 if (m_memento !=
NULL)
109 m_memento = m_pano.getNewMemento();
114 if (m_redoMemento !=
NULL)
116 delete m_redoMemento;
118 m_redoMemento = m_pano.getNewMemento();
virtual void execute()
execute the command.
virtual void undo()
undo execute() [virtual]
virtual void saveRedoMemento()
saves the state for redo
virtual bool processPanorama(HuginBase::Panorama &pano)
Called by execute().
virtual void setSuccessful(bool success=true)
virtual void setName(const std::string &newName)
sets the name for the command
virtual ~PanoCommand()
destructor
virtual void redo()
redo execute() [virtual]
virtual std::string getName() const
returns the name of the command
virtual bool wasSuccessful() const
virtual void saveMemento()
saves the state for undo
#define DEBUG_ASSERT(cond)
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.