#include <ProgressDisplay.h>
Inheritance diagram for AppBase::ProgressDisplay:

Public Member Functions | |
| virtual | ~ProgressDisplay () |
| void | setParentProgressOfNewSubtasks (double subtaskTotalProgress, bool propagatesProgress=false) |
| void | startSubtask (const std::string &message, const double &maxProgress, const double &progressForParentTask, const bool &propagatesProgress=false) |
| void | startSubtask (const std::string &message, const double &maxProgress=0) |
| void | startSubtask (const double &maxProgress) |
| virtual void | setSubtaskMessage (const std::string &message) |
| virtual std::string | getSubtaskMessage () const |
| virtual double | getSubtaskMaxProgress () const |
| virtual double | getSubtaskProgress () const |
| virtual void | updateSubtaskProgress (const double &newValue) |
| virtual void | increaseSubtaskProgressBy (const double &deltaValue) |
| virtual void | finishSubtask () |
| virtual bool | wasCancelled () |
Protected Member Functions | |
| ProgressDisplay () | |
| void | startSubtaskWithTask (const ProgressSubtask &newSubtask) |
| virtual void | cancelTask () |
| virtual void | updateProgressDisplay ()=0 |
| Template method, updates the display. | |
| virtual void | subtaskStarted () |
| Template method, called when subtask is started. | |
| virtual void | subtaskFinished () |
| Template method, called when subtask is finishing. | |
| virtual void | propagateProgress (const double &newProgress) |
| virtual ProgressSubtask & | getCurrentSubtask () const |
| virtual bool | noSubtasksAvailable () const |
Protected Attributes | |
| std::vector< ProgressSubtask > | o_subtasks |
| bool | o_canceled |
| double | o_newSubtaskProgress |
| bool | o_newSubtaskPropagates |
|
|
Definition at line 93 of file ProgressDisplay.h. |
|
|
Definition at line 99 of file ProgressDisplay.h. |
|
|
Definition at line 148 of file ProgressDisplay.cpp. References o_canceled. |
|
|
|
Definition at line 190 of file ProgressDisplay.cpp. References o_subtasks. Referenced by getSubtaskMaxProgress(), getSubtaskMessage(), getSubtaskProgress(), setSubtaskMessage(), and updateSubtaskProgress(). |
|
|
Definition at line 95 of file ProgressDisplay.cpp. References getCurrentSubtask(), AppBase::ProgressDisplay::ProgressSubtask::maxProgress, and noSubtasksAvailable(). |
|
|
Definition at line 89 of file ProgressDisplay.cpp. References getCurrentSubtask(), and AppBase::ProgressDisplay::ProgressSubtask::message. Referenced by AppBase::ProgressReporterAdaptor::increaseProgress(). |
|
|
Definition at line 102 of file ProgressDisplay.cpp. References getCurrentSubtask(), noSubtasksAvailable(), and AppBase::ProgressDisplay::ProgressSubtask::progress. Referenced by increaseSubtaskProgressBy(). |
|
|
Definition at line 129 of file ProgressDisplay.cpp. References getSubtaskProgress(), and updateSubtaskProgress(). Referenced by AppBase::ProgressReporterAdaptor::increaseProgress(). |
|
|
Definition at line 194 of file ProgressDisplay.cpp. References o_subtasks. Referenced by getSubtaskMaxProgress(), getSubtaskProgress(), and updateSubtaskProgress(). |
|
|
Definition at line 161 of file ProgressDisplay.cpp. References DEBUG_INFO, AppBase::ProgressDisplay::ProgressSubtask::maxProgress, o_subtasks, AppBase::ProgressDisplay::ProgressSubtask::progress, and AppBase::ProgressDisplay::ProgressSubtask::progressForParentTask. Referenced by updateSubtaskProgress(). |
|
||||||||||||
|
Definition at line 48 of file ProgressDisplay.cpp. References o_newSubtaskProgress, and o_newSubtaskPropagates. Referenced by AppBase::MultiProgressDisplayAdaptor::taskAdded(). |
|
|
Definition at line 85 of file ProgressDisplay.cpp. References getCurrentSubtask(), and AppBase::ProgressDisplay::ProgressSubtask::message. Referenced by AppBase::ProgressReporterAdaptor::setMessage(), and AppBase::MultiProgressDisplayAdaptor::updateProgressDisplay(). |
|
|
Definition at line 79 of file ProgressDisplay.cpp. References startSubtask(). |
|
||||||||||||
|
Definition at line 69 of file ProgressDisplay.cpp. References o_newSubtaskProgress, o_newSubtaskPropagates, and startSubtask(). |
|
||||||||||||||||||||
|
Definition at line 58 of file ProgressDisplay.cpp. References startSubtaskWithTask(). Referenced by AppBase::ProgressReporterAdaptor::increaseProgress(), loadImgsAndExtractPoints(), main(), AppBase::ProgressReporterAdaptor::ProgressReporterAdaptor(), startSubtask(), and AppBase::MultiProgressDisplayAdaptor::taskAdded(). |
|
|
Definition at line 41 of file ProgressDisplay.cpp. References o_subtasks, subtaskStarted(), and updateProgressDisplay(). Referenced by startSubtask(). |
|
|
Template method, called when subtask is finishing. The default implementation does nothing. Definition at line 171 of file ProgressDisplay.h. References DEBUG_DEBUG. Referenced by finishSubtask(). |
|
|
Template method, called when subtask is started. The default implementation does nothing. Definition at line 165 of file ProgressDisplay.h. References DEBUG_DEBUG. Referenced by startSubtaskWithTask(). |
|
|
Template method, updates the display. You should override this method with your code of updating the display. Implemented in AppBase::DummyProgressDisplay, and AppBase::StreamProgressDisplay. Referenced by finishSubtask(), startSubtaskWithTask(), and updateSubtaskProgress(). |
|
|
Definition at line 109 of file ProgressDisplay.cpp. References DEBUG_INFO, getCurrentSubtask(), noSubtasksAvailable(), AppBase::ProgressDisplay::ProgressSubtask::progress, propagateProgress(), and updateProgressDisplay(). Referenced by increaseSubtaskProgressBy(), and AppBase::MultiProgressDisplayAdaptor::updateProgressDisplay(). |
|
|
Definition at line 155 of file ProgressDisplay.cpp. Referenced by AppBase::ProgressReporterAdaptor::increaseProgress(), HuginBase::PointSampler::runAlgorithm(), HuginBase::SmartPhotometricOptimizer::runAlgorithm(), and HuginBase::PhotometricOptimizer::runAlgorithm(). |
|
|
Definition at line 193 of file ProgressDisplay.h. Referenced by cancelTask(). |
|
|
Definition at line 196 of file ProgressDisplay.h. Referenced by setParentProgressOfNewSubtasks(), and startSubtask(). |
|
|
Definition at line 197 of file ProgressDisplay.h. Referenced by setParentProgressOfNewSubtasks(), and startSubtask(). |
|
|
Definition at line 192 of file ProgressDisplay.h. Referenced by finishSubtask(), getCurrentSubtask(), noSubtasksAvailable(), propagateProgress(), and startSubtaskWithTask(). |
1.3.9.1