Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ImageVariableDialog Class Reference

Dialog for editing image variables. More...

#include <ImageVariableDialog.h>

Inheritance diagram for ImageVariableDialog:
Inheritance graph

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::Panoramam_pano
 
HuginBase::UIntSet m_images
 
wxGraphTools::GraphPopupWindowm_popup
 

Static Private Attributes

static const char * m_varNames []
 

Detailed Description

Dialog for editing image variables.

Definition at line 40 of file ImageVariableDialog.h.

Constructor & Destructor Documentation

ImageVariableDialog::ImageVariableDialog ( wxWindow *  parent,
HuginBase::Panorama pano,
HuginBase::UIntSet  imgs 
)

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

Definition at line 39 of file ImageVariableDialog.cpp.

References InitValues(), m_images, m_pano, m_popup, OnHelp(), OnOk(), OnResponseSelected(), OnShowDistortionGraph(), OnShowResponseGraph(), and OnShowVignettingGraph().

ImageVariableDialog::~ImageVariableDialog ( )

destructor, saves position

Definition at line 70 of file ImageVariableDialog.cpp.

Member Function Documentation

bool ImageVariableDialog::ApplyNewVariables ( )
private
void ImageVariableDialog::InitValues ( )
private
void ImageVariableDialog::OnHelp ( wxCommandEvent &  e)
protected

shows the help

Definition at line 273 of file ImageVariableDialog.cpp.

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

Referenced by ImageVariableDialog().

void ImageVariableDialog::OnOk ( wxCommandEvent &  e)
protected

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

Definition at line 265 of file ImageVariableDialog.cpp.

References ApplyNewVariables().

Referenced by ImageVariableDialog().

void ImageVariableDialog::OnResponseSelected ( wxCommandEvent &  e)
protected

response type changed

Definition at line 294 of file ImageVariableDialog.cpp.

Referenced by ImageVariableDialog(), and InitValues().

void ImageVariableDialog::OnShowDistortionGraph ( wxCommandEvent &  e)
protected
void ImageVariableDialog::OnShowResponseGraph ( wxCommandEvent &  e)
protected
void ImageVariableDialog::OnShowVignettingGraph ( wxCommandEvent &  e)
protected
void ImageVariableDialog::SelectTab ( size_t  i)

selects the tab with index i

Definition at line 79 of file ImageVariableDialog.cpp.

Referenced by ImagesTreeCtrl::OnEditImageVariables().

void ImageVariableDialog::SetGuiLevel ( GuiLevel  newLevel)

sets the GuiLevel

Definition at line 149 of file ImageVariableDialog.cpp.

References GUI_EXPERT.

Referenced by ImagesTreeCtrl::OnEditImageVariables().

Member Data Documentation

HuginBase::UIntSet ImageVariableDialog::m_images
private
HuginBase::Panorama* ImageVariableDialog::m_pano
private
wxGraphTools::GraphPopupWindow* ImageVariableDialog::m_popup
private
const char * ImageVariableDialog::m_varNames
staticprivate
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 69 of file ImageVariableDialog.h.

Referenced by ApplyNewVariables(), and InitValues().


The documentation for this class was generated from the following files: