Hugin trunk
0.1
Loading...
Searching...
No Matches
hugin1
base_wx
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
31
namespace
PanoCommand
32
{
33
38
class
WXIMPEX
PanoCommand
39
{
40
public
:
42
explicit
PanoCommand
(
HuginBase::Panorama
& pano)
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
95
HuginBase::Panorama
&
m_pano
;
96
HuginBase::PanoramaDataMemento
*
m_memento
;
97
HuginBase::PanoramaDataMemento
*
m_redoMemento
;
98
99
// if true, the dirty tag is cleared, otherwise it is keep
100
bool
m_clearDirty
;
101
private
:
102
bool
m_successful
;
103
std::string
m_name
;
104
};
105
106
}
//namespace
107
108
#endif
// _H
Panorama.h
HuginBase::PanoramaDataMemento
Memento class for a PanoramaData object.
Definition
PanoramaData.h:444
HuginBase::Panorama
Model for a panorama.
Definition
Panorama.h:153
PanoCommand::PanoCommand::m_memento
HuginBase::PanoramaDataMemento * m_memento
Definition
Command.h:96
PanoCommand::PanoCommand::m_clearDirty
bool m_clearDirty
Definition
Command.h:100
PanoCommand::PanoCommand::m_redoMemento
HuginBase::PanoramaDataMemento * m_redoMemento
Definition
Command.h:97
PanoCommand::PanoCommand::m_successful
bool m_successful
Definition
Command.h:102
PanoCommand::PanoCommand::PanoCommand
PanoCommand(HuginBase::Panorama &pano, const std::string &commandName)
Definition
Command.h:45
PanoCommand::PanoCommand::PanoCommand
PanoCommand(HuginBase::Panorama &pano)
constructor
Definition
Command.h:42
PanoCommand::PanoCommand::m_name
std::string m_name
Definition
Command.h:103
PanoCommand::PanoCommand::m_pano
HuginBase::Panorama & m_pano
internal variables
Definition
Command.h:95
hugin_shared.h
WXIMPEX
#define WXIMPEX
Definition
hugin_shared.h:40
PanoCommand
Definition
Command.cpp:27
threshold
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
Generated on Sun Sep 13 2026 02:49:53 for Hugin trunk by
1.9.8