Hugin trunk 0.1
Loading...
Searching...
No Matches
PTBatcherGUI.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
2
27#include "RunStitchFrame.h"
28#include "Batch.h"
29#include "BatchFrame.h"
30
31#include <wx/dir.h>
32#include <wx/wfstream.h>
33#include <wx/filefn.h>
34#include <wx/snglinst.h>
35#include <wx/ipc.h>
36
37#include <hugin_config.h>
38#include <wx/cmdline.h>
39
40#ifndef FRAMEARRAY
41#define FRAMEARRAY
43#endif
44
45#ifndef PTBATCHERGUI_H
46#define PTBATCHERGUI_H
47// **********************************************************************
48
54class BatchIPCConnection : public wxConnection
55{
56public:
58 virtual const void* OnRequest(const wxString& topic, const wxString& item, size_t* size = NULL, wxIPCFormat format = wxIPC_TEXT);
59};
60
62class BatchIPCServer : public wxServer
63{
64public:
67};
68
70const wxString IPC_START("BatchStart");
71
76class PTBatcherGUI : public wxApp
77{
78public:
81 bool OnInit() override;
82 int OnExit() override;
83#if wxUSE_ON_FATAL_EXCEPTION
84 void OnFatalException() override;
85#endif
86
87 //Main batch list
89 //List of projects in progress (their RunStitchFrames)
92 {
93 return m_frame;
94 };
95
96#ifdef __WXMAC__
99#endif
100
101private:
107};
108
110
111#endif //PTBATCHERGUI_H
Batch processor for Hugin with GUI.
Batch processor for Hugin.
WX_DEFINE_ARRAY_PTR(MyPipedProcess *, MyProcessesArray)
const wxString IPC_START("BatchStart")
topic name for BatchIPCConnection and BatchIPCServer
Stitch a pto project file, with GUI output etc.
class for communication between different PTBatcherGUI instances
virtual const void * OnRequest(const wxString &topic, const wxString &item, size_t *size=NULL, wxIPCFormat format=wxIPC_TEXT)
request handler for transfer
server which implements the communication between different PTBatcherGUI instances (see BatchIPCConne...
virtual wxConnectionBase * OnAcceptConnection(const wxString &topic)
accept connection handler (establish the connection)
The application class for hugin_stitch_project.
wxLocale m_locale
FrameArray stitchFrames
BatchFrame * GetFrame()
int OnExit() override
BatchIPCServer * m_server
wxString m_xrcPrefix
BatchFrame * m_frame
wxSingleInstanceChecker * m_checker
ProjectArray projList
bool OnInit() override
pseudo constructor.
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