[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

HuginBase::PanoCommand< StringType > Class Template Reference

Default panorama cmd, provides undo with mementos. More...

#include <PanoCommand.h>

Inheritance diagram for HuginBase::PanoCommand< StringType >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PanoCommand (ManagedPanoramaData &panoData)
 PanoCommand (ManagedPanoramaData &panoData, const StringType &commandName)
virtual ~PanoCommand ()
virtual void execute ()
 Processes the panorama and saves the stateThe default implementation calls processPanorama() and saveMemento().
virtual void undo ()
 undoes from saved state
virtual void redo ()
 redoes from saved state

Protected Member Functions

virtual void saveMemento ()
 saves the state for undo
virtual void saveRedoMemento ()
 saves the state for redo
virtual bool processPanorama (ManagedPanoramaData &panoramaData)
 Called by execute().

Protected Attributes

ManagedPanoramaDatapano
PanoramaDataMementomemento
PanoramaDataMementoredoMemento

Detailed Description

template<typename StringType = std::string>
class HuginBase::PanoCommand< StringType >

Default panorama cmd, provides undo with mementos.


Constructor & Destructor Documentation

template<typename StringType = std::string>
HuginBase::PanoCommand< StringType >::PanoCommand ManagedPanoramaData panoData  )  [inline]
 

template<typename StringType = std::string>
HuginBase::PanoCommand< StringType >::PanoCommand ManagedPanoramaData panoData,
const StringType &  commandName
[inline]
 

template<typename StringType = std::string>
virtual HuginBase::PanoCommand< StringType >::~PanoCommand  )  [inline, virtual]
 

Reimplemented in PT::PanoCommand.


Member Function Documentation

template<typename StringType = std::string>
virtual void HuginBase::PanoCommand< StringType >::execute  )  [inline, 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.

Implements AppBase::Command< StringType >.

Reimplemented in PT::wxAddImagesCmd, PT::wxLoadPTProjectCmd, PT::wxApplyTemplateCmd, and PT::wxAddCtrlPointGridCmd.

template<typename StringType = std::string>
virtual bool HuginBase::PanoCommand< StringType >::processPanorama ManagedPanoramaData panoramaData  )  [inline, protected, virtual]
 

Called by execute().

The default implementation does nothing and returns true. Should return false when the processing was unsuccessful.

template<typename StringType = std::string>
virtual void HuginBase::PanoCommand< StringType >::redo  )  [inline, virtual]
 

redoes from saved state

the derived class must call PanoComand::execute() or saveRedoMemento() in its execute() method to save the state.

Reimplemented from AppBase::Command< StringType >.

template<typename StringType = std::string>
virtual void HuginBase::PanoCommand< StringType >::saveMemento  )  [inline, protected, virtual]
 

saves the state for undo

template<typename StringType = std::string>
virtual void HuginBase::PanoCommand< StringType >::saveRedoMemento  )  [inline, protected, virtual]
 

saves the state for redo

template<typename StringType = std::string>
virtual void HuginBase::PanoCommand< StringType >::undo  )  [inline, virtual]
 

undoes from saved state

the derived class must call PanoComand::execute() or saveMemento() in its execute() method to save the state.

Implements AppBase::Command< StringType >.


Member Data Documentation

template<typename StringType = std::string>
PanoramaDataMemento* HuginBase::PanoCommand< StringType >::memento [protected]
 

template<typename StringType = std::string>
ManagedPanoramaData& HuginBase::PanoCommand< StringType >::pano [protected]
 

template<typename StringType = std::string>
PanoramaDataMemento* HuginBase::PanoCommand< StringType >::redoMemento [protected]
 


The documentation for this class was generated from the following file:

Generated on Mon Sep 20 01:01:36 2010 for Hugintrunk by doxygen 1.3.9.1