Hugin trunk 0.1
Loading...
Searching...
No Matches
MyProgressDialog.cpp
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
2
28#include "hugin_config.h"
29#include "panoinc_WX.h"
30
31#include "MyProgressDialog.h"
32
33// provide some more translations for strings in huginbase
34#if 0
35_("Sampling points");
36_("Loading image:");
37_("Scaling image:");
38_("sampling points");
39_("extracting good points");
40_("Elapsed time: ")
41#endif
42
43void ProgressReporterDialog::setMessage(const std::string& message, const std::string& filename)
44{
45 setMessage(wxString(message.c_str(), wxConvLocal), wxString(filename.c_str(), wxConvLocal));
46}
47
54
60
62{
64 m_wxfilename = filename;
65 return ProgressDisplay::updateDisplayValue();
66}
67
69{
71 if (!m_wxmessage.empty())
72 {
74 if (!m_wxfilename.empty())
75 {
76 msg.Append(" ");
77 msg.Append(m_wxfilename);
78 };
79 };
80 if (ProgressDisplay::m_maximum == 0)
81 {
82 if (!Pulse(msg))
83 {
84 m_canceled = true;
85 }
86 }
87 else
88 {
89 if (!Update(m_progress * 100 / ProgressDisplay::m_maximum, msg))
90 {
91 m_canceled = true;
92 }
93 }
94}
bool updateDisplay()
updates the display, return true, if update was successful, false if cancel was pressed
void setMessage(const std::string &message, const std::string &filename="")
virtual void updateProgressDisplay()
Template method, updates the display.
include file for the hugin project
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41