Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
HuginBase::TimeConsumingPanoramaAlgorithm Class Reference

#include <PanoramaAlgorithm.h>

Inheritance diagram for HuginBase::TimeConsumingPanoramaAlgorithm:
Inheritance graph

Public Member Functions

virtual ~TimeConsumingPanoramaAlgorithm ()
 
virtual bool wasCancelled () const
 
- Public Member Functions inherited from HuginBase::PanoramaAlgorithm
virtual ~PanoramaAlgorithm ()
 
virtual bool modifiesPanoramaData () const =0
 returns true if the algorithm changes the PanoramaData. More...
 
virtual bool hasRunSuccessfully ()
 
virtual void run ()
 runs the algorithm. More...
 
virtual bool runAlgorithm ()=0
 implementation of the algorithm. More...
 

Protected Member Functions

 TimeConsumingPanoramaAlgorithm (PanoramaData &panorama, AppBase::ProgressDisplay *progressDisplay=NULL)
 [Warning! it keeps the reference to the panorama data!] More...
 
virtual AppBase::ProgressDisplaygetProgressDisplay () const
 
virtual bool hasProgressDisplay () const
 
virtual void cancelAlgorithm ()
 Call this when the algorithm is cancelled. More...
 
virtual void algorithmCancelled ()
 Called when the algorithm got cancelled; override with cleaning up process etc. More...
 
- Protected Member Functions inherited from HuginBase::PanoramaAlgorithm
 PanoramaAlgorithm (PanoramaData &panorama)
 

Private Attributes

AppBase::ProgressDisplaym_progressDisplay
 
bool m_wasCancelled
 

Additional Inherited Members

- Protected Attributes inherited from HuginBase::PanoramaAlgorithm
PanoramaDatao_panorama
 
bool o_successful
 

Detailed Description

Definition at line 118 of file PanoramaAlgorithm.h.

Constructor & Destructor Documentation

HuginBase::TimeConsumingPanoramaAlgorithm::TimeConsumingPanoramaAlgorithm ( PanoramaData panorama,
AppBase::ProgressDisplay progressDisplay = NULL 
)
inlineprotected

[Warning! it keeps the reference to the panorama data!]

Definition at line 123 of file PanoramaAlgorithm.h.

virtual HuginBase::TimeConsumingPanoramaAlgorithm::~TimeConsumingPanoramaAlgorithm ( )
inlinevirtual

Definition at line 130 of file PanoramaAlgorithm.h.

Member Function Documentation

virtual void HuginBase::TimeConsumingPanoramaAlgorithm::algorithmCancelled ( )
inlineprotectedvirtual

Called when the algorithm got cancelled; override with cleaning up process etc.

the default implementation does nothing.

Definition at line 177 of file PanoramaAlgorithm.h.

virtual void HuginBase::TimeConsumingPanoramaAlgorithm::cancelAlgorithm ( )
inlineprotectedvirtual

Call this when the algorithm is cancelled.

This method sets wasCancelled() to return true, and calls algorithmCancelled()

Definition at line 167 of file PanoramaAlgorithm.h.

Referenced by HuginBase::PhotometricOptimizer::runAlgorithm(), HuginBase::PointSampler::runAlgorithm(), and HuginBase::SmartPhotometricOptimizer::runAlgorithm().

virtual AppBase::ProgressDisplay* HuginBase::TimeConsumingPanoramaAlgorithm::getProgressDisplay ( ) const
inlineprotectedvirtual
virtual bool HuginBase::TimeConsumingPanoramaAlgorithm::hasProgressDisplay ( ) const
inlineprotectedvirtual

Definition at line 152 of file PanoramaAlgorithm.h.

virtual bool HuginBase::TimeConsumingPanoramaAlgorithm::wasCancelled ( ) const
inlinevirtual

Member Data Documentation

AppBase::ProgressDisplay* HuginBase::TimeConsumingPanoramaAlgorithm::m_progressDisplay
private

Definition at line 177 of file PanoramaAlgorithm.h.

bool HuginBase::TimeConsumingPanoramaAlgorithm::m_wasCancelled
private

Definition at line 184 of file PanoramaAlgorithm.h.


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