Hugin trunk 0.1
Loading...
Searching...
No Matches
Command.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
24#ifndef _COMMAND_H
25#define _COMMAND_H
26
27#include <string>
28#include <hugin_shared.h>
29#include <panodata/Panorama.h>
30
31namespace PanoCommand
32{
33
39{
40 public:
43 : m_pano(pano), m_memento(NULL), m_redoMemento(NULL), m_clearDirty(false), m_successful(false)
44 {};
45 PanoCommand(HuginBase::Panorama& pano, const std::string& commandName)
46 : m_pano(pano), m_memento(NULL), m_redoMemento(NULL), m_clearDirty(false), m_successful(false)
47 {};
48
50 virtual ~PanoCommand();
51
58 virtual void execute();
59
65 virtual void undo();
66
72 virtual void redo();
74 virtual std::string getName() const;
76 virtual void setName(const std::string& newName);
78 virtual bool wasSuccessful() const;
83 virtual bool processPanorama(HuginBase::Panorama& pano);
84
85 protected:
87 virtual void setSuccessful(bool success = true);
88
90 virtual void saveMemento();
92 virtual void saveRedoMemento();
93
98
99 // if true, the dirty tag is cleared, otherwise it is keep
101 private:
103 std::string m_name;
104};
105
106} //namespace
107
108#endif // _H
Memento class for a PanoramaData object.
Model for a panorama.
Definition Panorama.h:153
HuginBase::PanoramaDataMemento * m_memento
Definition Command.h:96
HuginBase::PanoramaDataMemento * m_redoMemento
Definition Command.h:97
PanoCommand(HuginBase::Panorama &pano, const std::string &commandName)
Definition Command.h:45
PanoCommand(HuginBase::Panorama &pano)
constructor
Definition Command.h:42
HuginBase::Panorama & m_pano
internal variables
Definition Command.h:95
#define WXIMPEX
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.
Definition threshold.h:41