AppBase::Command< StringType > Class Template Reference
Base class for all panorama commands. More...
#include <Command.h>
Inheritance diagram for AppBase::Command< StringType >:

Public Member Functions | |
| Command () | |
| Command (const StringType &commandName) | |
| virtual | ~Command () |
| virtual void | execute ()=0 |
| execute the command. | |
| virtual void | undo ()=0 |
| undo execute() [pure virtual] | |
| virtual void | redo () |
| redo execute() [pure virtual] | |
| virtual StringType | getName () const |
| virtual void | setName (const StringType &newName) |
| virtual bool | wasSuccessful () |
Protected Member Functions | |
| virtual void | setSuccessful (bool success=true) |
Detailed Description
template<class StringType = std::string>
class AppBase::Command< StringType >
Base class for all panorama commands.
see command pattern.
Constructor & Destructor Documentation
|
|||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
|
Member Function Documentation
|
|||||||||
|
execute the command. [pure virtual] should save information for undo(). Implemented in PT::wxAddImagesCmd, PT::wxLoadPTProjectCmd, PT::wxApplyTemplateCmd, PT::wxAddCtrlPointGridCmd, HuginBase::PanoCommand< StringType >, and HuginBase::PanoCommand< std::string >. |
|
|||||||||
|
|||||||||
|
redo execute() [pure virtual] for special optimisation; the default implementation calls execute(); Reimplemented in HuginBase::PanoCommand< StringType >, and HuginBase::PanoCommand< std::string >. |
|
||||||||||
|
|
|
||||||||||
|
|
|
|||||||||
|
undo execute() [pure virtual] must restore the model to the state before execute(). execute() may be called later to redo the undo. Implemented in HuginBase::PanoCommand< StringType >, and HuginBase::PanoCommand< std::string >. |
|
|||||||||
|
|
The documentation for this class was generated from the following file:
- hugin_base/appbase/Command.h
1.3.9.1