25#include <hugin_config.h>
29#include <wx/wfstream.h>
30#include <wx/stdpaths.h>
34#include <vigra/error.hxx>
92 if ( !
fname.FileExists() ) {
99 pathToPTO.Append(wxFileName::GetPathSeparator());
113 wxLogError(wxString::Format(
_(
"Project %s does not contain any active images."),
scriptFile.c_str()));
121 wxConfigBase::Set(
config);
168 if(
tempDir.Last()!=wxFileName::GetPathSeparator())
169 tempDir.Append(wxFileName::GetPathSeparator());
199 if (commands->empty())
211 if (wxFile::Exists(
fn))
220 dlg->SetYesNoLabels(
_(
"Overwrite files"),
_(
"Cancel, don't overwrite files"));
238 }
catch (std::exception & e)
240 std::cerr <<
"caught exception: " << e.what() << std::endl;
251 if ( !
fname.FileExists() ) {
269 pathToPTO.Append(wxFileName::GetPathSeparator());
292 if (
tempDir.Last() != wxFileName::GetPathSeparator())
294 tempDir.Append(wxFileName::GetPathSeparator());
312 if (commands->empty())
323 catch (std::exception & e)
325 std::cerr <<
"caught exception: " << e.what() << std::endl;
360 event.SetEventObject(
this );
362 this->
GetParent()->GetEventHandler()->ProcessEvent( event );
create a CommandQueue for running the assistant using CLI tools
basic classes and function for queuing commands in wxWidgets
interface of CommandQueue creating for stitching engine
Memento class for a Panorama object.
bool loadPTScript(std::istream &i, int &ptoVersion, const std::string &prefix="")
load a Hugin file
std::string enblendOptions
std::string enfuseOptions
const PanoramaOptions & getOptions() const
returns the options for this panorama
void setMemento(const PanoramaMemento &memento)
set the internal state
void setOptions(const PanoramaOptions &opt)
set new output settings This is not used directly for optimizing/stiching, but it can be feed into ru...
bool WritePTOFile(const std::string &filename, const std::string &prefix="")
write data to given pto file
UIntSet getActiveImages() const
get active images
int ExecQueue(HuginQueue::CommandQueue *queue)
void AddString(const wxString &s)
display the string in the panel
void PauseProcess(bool pause=true)
function to pause running process, argument pause defaults to true - to resume, set it to false
bool SaveLog(const wxString &filename)
save the content of the window into a given log file
void SetOverwrite(bool over=true)
bool DetectProject(const wxString &scriptFile, const wxString &userDefinedAssistant=wxEmptyString)
bool SaveLog(const wxString &filename)
save the content of the window into a given log file
void OnProcessTerminate(wxProcessEvent &event)
wxArrayString m_tempFiles
RunStitchPanel(wxWindow *parent)
MyExecPanel * m_execPanel
bool StitchProject(const wxString &scriptFile, const wxString &outname, const wxString &userDefinedOutput=wxEmptyString)
#define HUGIN_ENBLEND_ARGS
#define HUGIN_NONA_USEGPU
#define HUGIN_ENFUSE_ARGS
functions for interaction with the hugin configuration file
CommandQueue * GetAssistantCommandQueueUserDefined(const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project, const wxString &assistantSetting, wxArrayString &tempFilesDelete, std::ostream &errStream)
generates the command queue for running the assistant
CommandQueue * GetStitchingCommandQueueUserOutput(const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project, const wxString &prefix, const wxString &outputSettings, wxString &statusText, wxArrayString &outputFiles, wxArrayString &tempFilesDelete, std::ostream &errStream)
generates the command queue for stitching a pano, the commands are parsed from the given executor out...
std::vector< NormalCommand * > CommandQueue
CommandQueue * GetStitchingCommandQueue(const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project, const wxString &prefix, wxString &statusText, wxArrayString &outputFiles, wxArrayString &tempFilesDelete, std::ostream &errStream)
generates the command queue for stitching a pano it will also generate the necessary exiftool argfile...
CommandQueue * GetAssistantCommandQueue(const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project)
generates the command queue for running the assistant
int HuginMessageBox(const wxString &message, const wxString &caption, int style, wxWindow *parent)
std::unique_ptr< wxMessageDialogBase > MessageDialog
MessageDialog GetMessageDialog(const wxString &message, const wxString &caption, int style, wxWindow *parent)
include file for the hugin project
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.