Hugin trunk 0.1
Loading...
Searching...
No Matches
EnfusePanel.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
10/* This is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
14 *
15 * This software is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public
21 * License along with this software. If not, see
22 * <http://www.gnu.org/licenses/>.
23 *
24 */
25
26#ifndef ENFUSEPANEL_H
27#define ENFUSEPANEL_H
28
29#include "panoinc_WX.h"
30#include <wx/propgrid/propgrid.h>
31#include "PreviewWindow.h"
33
37class EnfusePanel : public wxPanel
38{
39public:
43 bool Create(wxWindow* parent, MyExecPanel* logPanel);
45 void AddFile(const wxString& filename);
47 void OnProcessFinished(wxCommandEvent& e);
48
49protected:
51 void OnAddFiles(wxCommandEvent& e);
52 void OnRemoveFile(wxCommandEvent& e);
53 void OnCreateFile(wxCommandEvent& e);
55 void OnFileSelectionChanged(wxCommandEvent& e);
56 void OnFileCheckStateChanged(wxCommandEvent& e);
57 void OnLoadSetting(wxCommandEvent& e);
58 void OnSaveSetting(wxCommandEvent& e);
59 void OnResetSetting(wxCommandEvent& e);
60 void OnGeneratePreview(wxCommandEvent& e);
61 void OnGenerateOutput(wxCommandEvent& e);
62 void OnZoom(wxCommandEvent& e);
63
64private:
68 void ExecuteEnfuse();
78 void EnableFileButtons();
80 long GetCheckedItemCount() const;
82 void EnableOutputButtons(bool enable);
84 void CleanUpTempFiles();
85 // member variables
86 wxListCtrl* m_fileListCtrl = nullptr;
93 bool m_cleanupOutput = false;
94
96};
97
98#endif // ENFUSEPANEL_H
declaration of PreviewWindow class
panel for enfuse GUI
Definition EnfusePanel.h:38
void PopulateEnfuseOptions()
fill the PropertyGrid with all enfuse options
PreviewWindow * m_preview
Definition EnfusePanel.h:89
bool Create(wxWindow *parent, MyExecPanel *logPanel)
creates the control and populates all controls with their settings
void OnZoom(wxCommandEvent &e)
wxPropertyGrid * m_enfuseOptions
Definition EnfusePanel.h:87
void OnCreateFile(wxCommandEvent &e)
void AddFile(const wxString &filename)
adds the given file to the list
void OnAddFiles(wxCommandEvent &e)
event handler
void OnProcessFinished(wxCommandEvent &e)
call at the end of the enfuse command, to load result back and enable buttons again
void OnFileListChar(wxKeyEvent &e)
void OnRemoveFile(wxCommandEvent &e)
void OnGenerateOutput(wxCommandEvent &e)
void CleanUpTempFiles()
delete all temporary files, to be called mainly at end
void EnableOutputButtons(bool enable)
enable/disable output buttons
void ExecuteEnfuseExiftool()
build the command line and execute enfuse and exiftool afterwards
long GetCheckedItemCount() const
return the number of check images
void OnGeneratePreview(wxCommandEvent &e)
~EnfusePanel()
destructor, save state and settings
wxString GetEnfuseOptions()
build string with all enfuse options from values in wxPropertyGrid this are the mainly the fusion opt...
MyExecPanel * m_logWindow
Definition EnfusePanel.h:90
void OnFileCheckStateChanged(wxCommandEvent &e)
wxString GetEnfuseCommandLine()
get the full commandline for enfuse without program, but with files and output options,...
wxArrayString m_tempFiles
Definition EnfusePanel.h:92
wxArrayString m_outputFilenames
Definition EnfusePanel.h:91
void OnLoadSetting(wxCommandEvent &e)
wxListCtrl * m_fileListCtrl
Definition EnfusePanel.h:86
wxArrayString m_files
Definition EnfusePanel.h:88
void ExecuteEnfuse()
build the command line and execute enfuse command
void OnSaveSetting(wxCommandEvent &e)
void EnableFileButtons()
enable/disable the file(s) remove and create buttons depending on selection of wxListCtrl
bool m_cleanupOutput
Definition EnfusePanel.h:93
void OnResetSetting(wxCommandEvent &e)
void OnFileSelectionChanged(wxCommandEvent &e)
preview window
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