PanoCommand::CombinedPanoCommand Class Reference

PanoCommand to combine other PanoCommands. More...

#include <PanoCommand.h>

Inheritance diagram for PanoCommand::CombinedPanoCommand:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 CombinedPanoCommand (HuginBase::Panorama &pano, std::vector< PanoCommand * > &commands)
 Constructor.
 ~CombinedPanoCommand ()
virtual bool processPanorama (HuginBase::Panorama &pano)
 Called by execute().

Private Attributes

std::vector< PanoCommand * > commands

Detailed Description

PanoCommand to combine other PanoCommands.

Use to get one Undo step from what would normally be several PanoCommands.

Definition at line 39 of file PanoCommand.h.


Constructor & Destructor Documentation

PanoCommand::CombinedPanoCommand::CombinedPanoCommand ( HuginBase::Panorama pano,
std::vector< PanoCommand * > &  commands 
) [inline]

Constructor.

Parameters:
commands List of pointers to commands. They applied from beginning to end. CombinedPanoCommand deletes the commands when it is itself deleted.

Definition at line 46 of file PanoCommand.h.

References PanoCommand::setName().

PanoCommand::CombinedPanoCommand::~CombinedPanoCommand (  ) 

Definition at line 37 of file PanoCommand.cpp.

References commands.


Member Function Documentation

bool PanoCommand::CombinedPanoCommand::processPanorama ( HuginBase::Panorama pano  )  [virtual]

Called by execute().

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

Reimplemented from PanoCommand::PanoCommand.

Definition at line 45 of file PanoCommand.cpp.

References commands.


Member Data Documentation

std::vector<PanoCommand*> PanoCommand::CombinedPanoCommand::commands [private]

Definition at line 51 of file PanoCommand.h.

Referenced by processPanorama(), and ~CombinedPanoCommand().


The documentation for this class was generated from the following files:
Generated on 19 Nov 2017 for Hugintrunk by  doxygen 1.4.7