ImageVariableDialog Class Reference

Dialog for editing image variables. More...

#include <ImageVariableDialog.h>

List of all members.

Public Member Functions

 ImageVariableDialog (wxWindow *parent, PT::Panorama *pano, HuginBase::UIntSet imgs)
 Constructor, read from xrc ressource; restore last uses settings and position.
 ~ImageVariableDialog ()
 destructor, saves position
void SetGuiLevel (GuiLevel newLevel)
 sets the GuiLevel
void SelectTab (size_t i)
 selects the tab with index i

Protected Member Functions

void OnOk (wxCommandEvent &e)
 Saves current state of all checkboxes when closing dialog with Ok.
void OnHelp (wxCommandEvent &e)
 shows the help
void OnShowDistortionGraph (wxCommandEvent &e)
 shows a popup with distortion graph
void OnShowVignettingGraph (wxCommandEvent &e)
 shows a popup with vignetting graph
void OnShowResponseGraph (wxCommandEvent &e)
 shows a popup with response graph

Private Member Functions

void InitValues ()
 copy the variables from Panorama to dialog
bool ApplyNewVariables ()
 applies the changed variables to the Panorama class, using CommandHistory

Private Attributes

PT::Panoramam_pano
HuginBase::UIntSet m_images
GraphPopupWindowm_popup

Static Private Attributes

const char * m_varNames []


Detailed Description

Dialog for editing image variables.

Definition at line 49 of file ImageVariableDialog.h.


Constructor & Destructor Documentation

ImageVariableDialog::ImageVariableDialog wxWindow *  parent,
PT::Panorama pano,
HuginBase::UIntSet  imgs
 

Constructor, read from xrc ressource; restore last uses settings and position.

ImageVariableDialog::~ImageVariableDialog  ) 
 

destructor, saves position

Definition at line 77 of file ImageVariableDialog.cpp.


Member Function Documentation

bool ImageVariableDialog::ApplyNewVariables  )  [private]
 

applies the changed variables to the Panorama class, using CommandHistory

Definition at line 176 of file ImageVariableDialog.cpp.

References CommandHistory::addCommand(), HuginBase::Panorama::getImage(), GetImageVariableControl(), GlobalCmdHist::getInstance(), HuginBase::Panorama::getSrcImage(), m_images, m_pano, HuginBase::BaseSrcPanoImage::setResponseType(), str2double(), and HuginBase::VariableMap.

Referenced by OnOk().

void ImageVariableDialog::InitValues  )  [private]
 

copy the variables from Panorama to dialog

Definition at line 102 of file ImageVariableDialog.cpp.

References const_map_get(), HuginBase::Panorama::getImage(), GetImageVariableControl(), HuginBase::Panorama::getVariables(), m_images, m_pano, and HuginBase::VariableMapVector.

void ImageVariableDialog::OnHelp wxCommandEvent &  e  )  [protected]
 

shows the help

Definition at line 267 of file ImageVariableDialog.cpp.

References MainFrame::DisplayHelp(), and MainFrame::Get().

void ImageVariableDialog::OnOk wxCommandEvent &  e  )  [protected]
 

Saves current state of all checkboxes when closing dialog with Ok.

Definition at line 259 of file ImageVariableDialog.cpp.

References ApplyNewVariables().

void ImageVariableDialog::OnShowDistortionGraph wxCommandEvent &  e  )  [protected]
 

shows a popup with distortion graph

Definition at line 474 of file ImageVariableDialog.cpp.

References HuginBase::PTools::Transform::createTransform(), Graph::DrawGrid(), Graph::DrawLine(), hugin_utils::FDiff2D, Graph::GetGraph(), GetImageVariableControl(), m_popup, NRPOINTS, Graph::SetChartArea(), Graph::SetChartDisplay(), HuginBase::PanoramaOptions::setHeight(), HuginBase::PanoramaOptions::setHFOV(), HuginBase::PanoramaOptions::setProjection(), HuginBase::BaseSrcPanoImage::setRadialDistortion(), HuginBase::SrcPanoImage::setSize(), HuginBase::PanoramaOptions::setWidth(), vigra_ext::srcImage(), str2double(), and HuginBase::PTools::Transform::transformImgCoord().

void ImageVariableDialog::OnShowResponseGraph wxCommandEvent &  e  )  [protected]
 

shows a popup with response graph

Definition at line 577 of file ImageVariableDialog.cpp.

References vigra_ext::EMoR::createEMoRLUT(), Graph::DrawGrid(), Graph::DrawLine(), vigra_ext::enforceMonotonicity(), hugin_utils::FDiff2D, Graph::GetGraph(), GetImageVariableControl(), m_popup, Graph::SetChartArea(), Graph::SetChartDisplay(), and str2double().

void ImageVariableDialog::OnShowVignettingGraph wxCommandEvent &  e  )  [protected]
 

shows a popup with vignetting graph

Definition at line 530 of file ImageVariableDialog.cpp.

References Graph::DrawGrid(), Graph::DrawLine(), HuginBase::Photometric::ResponseTransform< VTIn >::enforceMonotonicity(), hugin_utils::FDiff2D, Graph::GetGraph(), GetImageVariableControl(), m_popup, NRPOINTS, Graph::SetChartArea(), Graph::SetChartDisplay(), HuginBase::BaseSrcPanoImage::setRadialVigCorrCoeff(), HuginBase::SrcPanoImage::setSize(), vigra_ext::srcImage(), and str2double().

void ImageVariableDialog::SelectTab size_t  i  ) 
 

selects the tab with index i

Definition at line 86 of file ImageVariableDialog.cpp.

Referenced by ImagesTreeCtrl::OnEditImageVariables().

void ImageVariableDialog::SetGuiLevel GuiLevel  newLevel  ) 
 

sets the GuiLevel

Definition at line 154 of file ImageVariableDialog.cpp.

References GUI_EXPERT.

Referenced by ImagesTreeCtrl::OnEditImageVariables().


Member Data Documentation

HuginBase::UIntSet ImageVariableDialog::m_images [private]
 

Definition at line 75 of file ImageVariableDialog.h.

Referenced by ApplyNewVariables(), and InitValues().

PT::Panorama* ImageVariableDialog::m_pano [private]
 

Definition at line 74 of file ImageVariableDialog.h.

Referenced by ApplyNewVariables(), and InitValues().

GraphPopupWindow* ImageVariableDialog::m_popup [private]
 

Definition at line 77 of file ImageVariableDialog.h.

Referenced by OnShowDistortionGraph(), OnShowResponseGraph(), and OnShowVignettingGraph().

const char * ImageVariableDialog::m_varNames [static, private]
 

Initial value:

 { "y", "p", "r", "TrX", "TrY", "TrZ", "Tpy", "Tpp", 
                                  "v", "a", "b", "c", "d", "e", "g", "t",
                                  "Eev", "Er", "Eb", 
                                  "Vb", "Vc", "Vd", "Vx", "Vy",
                                  "Ra", "Rb", "Rc", "Rd", "Re", 0}

Definition at line 288 of file ImageVariableDialog.cpp.


The documentation for this class was generated from the following files:
Generated on Wed Jul 16 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1