Hugin trunk 0.1
Loading...
Searching...
No Matches
ImageVariableDialog.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 _IMAGEVARIABLEDIALOG_H
27#define _IMAGEVARIABLEDIALOG_H
28
29#include "panoinc_WX.h"
30#include "panoinc.h"
31#include "GuiLevel.h"
32
33// forward declaration
34namespace wxGraphTools
35{
36class GraphPopupWindow;
37};
38
40class ImageVariableDialog : public wxDialog
41{
42public:
50 void SelectTab(size_t i);
51
52protected:
54 void OnOk(wxCommandEvent & e);
56 void OnHelp(wxCommandEvent & e);
58 void OnShowDistortionGraph(wxCommandEvent & e);
60 void OnShowVignettingGraph(wxCommandEvent & e);
62 void OnShowResponseGraph(wxCommandEvent & e);
64 void OnResponseSelected(wxCommandEvent& e);
65
66private:
69 static const char *m_varNames[];
72 void InitValues();
74 bool ApplyNewVariables();
75};
76
77#endif //_IMAGEVARIABLEDIALOG_H
declaration of helper for work with different GuiLevels
GuiLevel
Definition GuiLevel.h:32
Model for a panorama.
Definition Panorama.h:153
Dialog for editing image variables.
void OnOk(wxCommandEvent &e)
Saves current state of all checkboxes when closing dialog with Ok.
void OnHelp(wxCommandEvent &e)
shows the help
static const char * m_varNames[]
void OnResponseSelected(wxCommandEvent &e)
response type changed
bool ApplyNewVariables()
applies the changed variables to the Panorama class, using CommandHistory
wxGraphTools::GraphPopupWindow * m_popup
void InitValues()
copy the variables from Panorama to dialog
void SelectTab(size_t i)
selects the tab with index i
void OnShowVignettingGraph(wxCommandEvent &e)
shows a popup with vignetting graph
HuginBase::Panorama * m_pano
~ImageVariableDialog()
destructor, saves position
void OnShowDistortionGraph(wxCommandEvent &e)
shows a popup with distortion graph
HuginBase::UIntSet m_images
void OnShowResponseGraph(wxCommandEvent &e)
shows a popup with response graph
void SetGuiLevel(GuiLevel newLevel)
sets the GuiLevel
simple popup to show graph
Definition GraphTools.h:39
std::set< unsigned int > UIntSet
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.
Definition threshold.h:41