Hugintrunk
0.1
|
Dialog for editing image variables. More...
#include <ImageVariableDialog.h>
Public Member Functions | |
ImageVariableDialog (wxWindow *parent, HuginBase::Panorama *pano, HuginBase::UIntSet imgs) | |
Constructor, read from xrc ressource; restore last uses settings and position. More... | |
~ImageVariableDialog () | |
destructor, saves position More... | |
void | SetGuiLevel (GuiLevel newLevel) |
sets the GuiLevel More... | |
void | SelectTab (size_t i) |
selects the tab with index i More... | |
Protected Member Functions | |
void | OnOk (wxCommandEvent &e) |
Saves current state of all checkboxes when closing dialog with Ok. More... | |
void | OnHelp (wxCommandEvent &e) |
shows the help More... | |
void | OnShowDistortionGraph (wxCommandEvent &e) |
shows a popup with distortion graph More... | |
void | OnShowVignettingGraph (wxCommandEvent &e) |
shows a popup with vignetting graph More... | |
void | OnShowResponseGraph (wxCommandEvent &e) |
shows a popup with response graph More... | |
void | OnResponseSelected (wxCommandEvent &e) |
response type changed More... | |
Private Member Functions | |
void | InitValues () |
copy the variables from Panorama to dialog More... | |
bool | ApplyNewVariables () |
applies the changed variables to the Panorama class, using CommandHistory More... | |
Private Attributes | |
HuginBase::Panorama * | m_pano |
HuginBase::UIntSet | m_images |
wxGraphTools::GraphPopupWindow * | m_popup |
Static Private Attributes | |
static const char * | m_varNames [] |
Dialog for editing image variables.
Definition at line 40 of file ImageVariableDialog.h.
ImageVariableDialog::ImageVariableDialog | ( | wxWindow * | parent, |
HuginBase::Panorama * | pano, | ||
HuginBase::UIntSet | imgs | ||
) |
Constructor, read from xrc ressource; restore last uses settings and position.
Definition at line 48 of file ImageVariableDialog.cpp.
References huginApp::Get().
ImageVariableDialog::~ImageVariableDialog | ( | ) |
destructor, saves position
Definition at line 80 of file ImageVariableDialog.cpp.
|
private |
applies the changed variables to the Panorama class, using CommandHistory
Definition at line 181 of file ImageVariableDialog.cpp.
References PanoCommand::CommandHistory::addCommand(), HuginBase::BaseSrcPanoImage::FISHEYE_ORTHOGRAPHIC, HuginBase::Panorama::getImage(), GetImageVariableControl(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getSrcImage(), m_images, m_pano, m_varNames, HuginBase::BaseSrcPanoImage::RECTILINEAR, and hugin_utils::str2double().
Referenced by OnOk().
|
private |
copy the variables from Panorama to dialog
Definition at line 105 of file ImageVariableDialog.cpp.
References const_map_get(), hugin_utils::doubleTowxString(), HuginBase::Panorama::getImage(), GetImageVariableControl(), HuginBase::Panorama::getVariables(), m_images, m_pano, m_varNames, and OnResponseSelected().
|
protected |
shows the help
Definition at line 283 of file ImageVariableDialog.cpp.
References MainFrame::DisplayHelp(), and MainFrame::Get().
|
protected |
Saves current state of all checkboxes when closing dialog with Ok.
Definition at line 275 of file ImageVariableDialog.cpp.
References ApplyNewVariables().
|
protected |
response type changed
Definition at line 304 of file ImageVariableDialog.cpp.
Referenced by InitValues().
|
protected |
shows a popup with distortion graph
Definition at line 330 of file ImageVariableDialog.cpp.
References wxGraphTools::GetDistortionGraph(), HuginBase::Panorama::getImage(), GetImageVariableControl(), m_images, m_pano, m_popup, HuginBase::BaseSrcPanoImage::RECTILINEAR, HuginBase::SrcPanoImage::setSize(), vigra_ext::srcImage(), and hugin_utils::str2double().
|
protected |
shows a popup with response graph
Definition at line 412 of file ImageVariableDialog.cpp.
References vigra_ext::EMoR::createEMoRLUT(), wxGraphTools::Graph::DrawGrid(), wxGraphTools::Graph::DrawLine(), vigra_ext::enforceMonotonicity(), wxGraphTools::Graph::GetGraph(), GetImageVariableControl(), m_popup, HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR, wxGraphTools::Graph::SetChartArea(), wxGraphTools::Graph::SetChartDisplay(), and hugin_utils::str2double().
|
protected |
shows a popup with vignetting graph
Definition at line 364 of file ImageVariableDialog.cpp.
References wxGraphTools::Graph::DrawGrid(), wxGraphTools::Graph::DrawLine(), HuginBase::Photometric::ResponseTransform< VTIn >::enforceMonotonicity(), wxGraphTools::Graph::GetGraph(), GetImageVariableControl(), m_popup, NRPOINTS, wxGraphTools::Graph::SetChartArea(), wxGraphTools::Graph::SetChartDisplay(), HuginBase::SrcPanoImage::setSize(), vigra_ext::srcImage(), and hugin_utils::str2double().
void ImageVariableDialog::SelectTab | ( | size_t | i | ) |
selects the tab with index i
Definition at line 89 of file ImageVariableDialog.cpp.
Referenced by ImagesTreeCtrl::OnEditImageVariables().
void ImageVariableDialog::SetGuiLevel | ( | GuiLevel | newLevel | ) |
sets the GuiLevel
Definition at line 159 of file ImageVariableDialog.cpp.
References GUI_EXPERT.
Referenced by ImagesTreeCtrl::OnEditImageVariables().
|
private |
Definition at line 68 of file ImageVariableDialog.h.
Referenced by ApplyNewVariables(), InitValues(), and OnShowDistortionGraph().
|
private |
Definition at line 67 of file ImageVariableDialog.h.
Referenced by ApplyNewVariables(), InitValues(), and OnShowDistortionGraph().
|
private |
Definition at line 70 of file ImageVariableDialog.h.
Referenced by OnShowDistortionGraph(), OnShowResponseGraph(), and OnShowVignettingGraph().
|
staticprivate |
Definition at line 69 of file ImageVariableDialog.h.
Referenced by ApplyNewVariables(), and InitValues().