|
Hugin trunk 0.1
|
Base class for all panorama commands. More...
#include <Command.h>

Public Member Functions | |
| PanoCommand (HuginBase::Panorama &pano) | |
| constructor | |
| PanoCommand (HuginBase::Panorama &pano, const std::string &commandName) | |
| virtual | ~PanoCommand () |
| destructor | |
| virtual void | execute () |
| execute the command. | |
| virtual void | undo () |
| undo execute() [virtual] | |
| virtual void | redo () |
| redo execute() [virtual] | |
| virtual std::string | getName () const |
| returns the name of the command | |
| virtual void | setName (const std::string &newName) |
| sets the name for the command | |
| virtual bool | wasSuccessful () const |
| virtual bool | processPanorama (HuginBase::Panorama &pano) |
| Called by execute(). | |
Protected Member Functions | |
| virtual void | setSuccessful (bool success=true) |
| virtual void | saveMemento () |
| saves the state for undo | |
| virtual void | saveRedoMemento () |
| saves the state for redo | |
Protected Attributes | |
| HuginBase::Panorama & | m_pano |
| internal variables | |
| HuginBase::PanoramaDataMemento * | m_memento |
| HuginBase::PanoramaDataMemento * | m_redoMemento |
| bool | m_clearDirty |
Private Attributes | |
| bool | m_successful |
| std::string | m_name |
|
inlineexplicit |
|
inline |
|
virtual |
|
virtual |
execute the command.
[virtual] Processes the panorama and saves the stateThe default implementation calls processPanorama() and saveMemento(). Only override this method when you want to customize the undo behaviour.
Definition at line 41 of file Command.cpp.
References threshold().
|
virtual |
returns the name of the command
Reimplemented in PanoCommand::NewPanoCmd, PanoCommand::AddImagesCmd, PanoCommand::RemoveImageCmd, PanoCommand::RemoveImagesCmd, PanoCommand::UpdateVariablesCmd, PanoCommand::UpdateCPsCmd, PanoCommand::UpdateVariablesCPCmd, PanoCommand::UpdateVariablesCPSetCmd, PanoCommand::UpdateImageVariablesCmd, PanoCommand::UpdateImagesVariablesCmd, PanoCommand::UpdateVariablesByParseExpression, PanoCommand::UpdateOptimizeVectorCmd, PanoCommand::UpdateOptimizerSwitchCmd, PanoCommand::UpdatePhotometricOptimizerSwitchCmd, PanoCommand::SetVariableCmd, PanoCommand::CenterPanoCmd, PanoCommand::StraightenPanoCmd, PanoCommand::AddCtrlPointCmd, PanoCommand::AddCtrlPointsCmd, PanoCommand::RemoveCtrlPointCmd, PanoCommand::RemoveCtrlPointsCmd, PanoCommand::ChangeCtrlPointCmd, PanoCommand::SetActiveImagesCmd, PanoCommand::SwapImagesCmd, PanoCommand::MoveImageCmd, PanoCommand::MergePanoCmd, PanoCommand::UpdateSrcImageCmd, PanoCommand::UpdateSrcImagesCmd, PanoCommand::SetPanoOptionsCmd, PanoCommand::LoadPTProjectCmd, PanoCommand::RotatePanoCmd, PanoCommand::TranslatePanoCmd, PanoCommand::UpdateFocalLengthCmd, PanoCommand::UpdateCropFactorCmd, PanoCommand::ChangePartNumberCmd, PanoCommand::ChangePartImagesLinkingCmd, PanoCommand::LinkLensVarsCmd, PanoCommand::NewPartCmd, PanoCommand::UpdateMaskForImgCmd, PanoCommand::UpdateWhiteBalance, PanoCommand::ResetToMeanExposure, PanoCommand::DistributeImagesCmd, PanoCommand::wxAddImagesCmd, PanoCommand::wxLoadPTProjectCmd, PanoCommand::wxNewProjectCmd, PanoCommand::wxApplyTemplateCmd, and PanoCommand::wxAddCtrlPointGridCmd.
Definition at line 83 of file Command.cpp.
|
virtual |
Called by execute().
The default implementation does nothing and returns true. Should return false when the processing was unsuccessful.
Reimplemented in PanoCommand::CombinedPanoCommand, PanoCommand::NewPanoCmd, PanoCommand::AddImagesCmd, PanoCommand::RemoveImageCmd, PanoCommand::RemoveImagesCmd, PanoCommand::UpdateVariablesCmd, PanoCommand::UpdateCPsCmd, PanoCommand::UpdateVariablesCPCmd, PanoCommand::UpdateVariablesCPSetCmd, PanoCommand::UpdateImageVariablesCmd, PanoCommand::UpdateImagesVariablesCmd, PanoCommand::UpdateVariablesByParseExpression, PanoCommand::UpdateOptimizeVectorCmd, PanoCommand::UpdateOptimizerSwitchCmd, PanoCommand::UpdatePhotometricOptimizerSwitchCmd, PanoCommand::SetVariableCmd, PanoCommand::CenterPanoCmd, PanoCommand::StraightenPanoCmd, PanoCommand::AddCtrlPointCmd, PanoCommand::AddCtrlPointsCmd, PanoCommand::RemoveCtrlPointCmd, PanoCommand::RemoveCtrlPointsCmd, PanoCommand::ChangeCtrlPointCmd, PanoCommand::SetActiveImagesCmd, PanoCommand::SwapImagesCmd, PanoCommand::MoveImageCmd, PanoCommand::MergePanoCmd, PanoCommand::UpdateSrcImageCmd, PanoCommand::UpdateSrcImagesCmd, PanoCommand::SetPanoOptionsCmd, PanoCommand::LoadPTProjectCmd, PanoCommand::RotatePanoCmd, PanoCommand::TranslatePanoCmd, PanoCommand::UpdateFocalLengthCmd, PanoCommand::UpdateCropFactorCmd, PanoCommand::ChangePartNumberCmd, PanoCommand::ChangePartImagesLinkingCmd, PanoCommand::LinkLensVarsCmd, PanoCommand::NewPartCmd, PanoCommand::UpdateMaskForImgCmd, PanoCommand::UpdateWhiteBalance, PanoCommand::ResetToMeanExposure, PanoCommand::DistributeImagesCmd, PanoCommand::wxAddImagesCmd, PanoCommand::wxLoadPTProjectCmd, PanoCommand::wxNewProjectCmd, PanoCommand::wxApplyTemplateCmd, and PanoCommand::wxAddCtrlPointGridCmd.
Definition at line 121 of file Command.cpp.
|
virtual |
redo execute() [virtual]
the derived class must call PanoComand::execute() or saveRedoMemento() in its execute() method to save the state.
Definition at line 70 of file Command.cpp.
References threshold().
|
protectedvirtual |
|
protectedvirtual |
sets the name for the command
Definition at line 88 of file Command.cpp.
References threshold().
Referenced by RawImportDialog::OnOk().
Definition at line 98 of file Command.cpp.
References threshold().
|
virtual |
undo execute() [virtual]
the derived class must call PanoComand::execute() or saveMemento() in its execute() method to save the state.
Definition at line 62 of file Command.cpp.
References DEBUG_ASSERT, and threshold().
|
virtual |
Definition at line 93 of file Command.cpp.
|
protected |
Definition at line 100 of file Command.h.
Referenced by PanoCommand::LoadPTProjectCmd::LoadPTProjectCmd().
|
protected |
|
protected |
|
protected |