Hugin trunk 0.1
Loading...
Searching...
No Matches
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.
 
 ~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
 
void OnResponseSelected (wxCommandEvent &e)
 response type changed
 

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

HuginBase::Panoramam_pano
 
HuginBase::UIntSet m_images
 
wxGraphTools::GraphPopupWindowm_popup
 

Static Private Attributes

static const charm_varNames []
 

Detailed Description

Dialog for editing image variables.

Definition at line 40 of file ImageVariableDialog.h.

Constructor & Destructor Documentation

◆ ImageVariableDialog()

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

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

Definition at line 40 of file ImageVariableDialog.cpp.

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

◆ ~ImageVariableDialog()

ImageVariableDialog::~ImageVariableDialog ( )

destructor, saves position

Definition at line 61 of file ImageVariableDialog.cpp.

References hugin_utils::StoreFramePositionOnly().

Member Function Documentation

◆ ApplyNewVariables()

bool ImageVariableDialog::ApplyNewVariables ( )
private

◆ InitValues()

void ImageVariableDialog::InitValues ( )
private

◆ OnHelp()

void ImageVariableDialog::OnHelp ( wxCommandEvent &  e)
protected

shows the help

Definition at line 250 of file ImageVariableDialog.cpp.

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

Referenced by ImageVariableDialog().

◆ OnOk()

void ImageVariableDialog::OnOk ( wxCommandEvent &  e)
protected

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

Definition at line 242 of file ImageVariableDialog.cpp.

References ApplyNewVariables().

Referenced by ImageVariableDialog().

◆ OnResponseSelected()

void ImageVariableDialog::OnResponseSelected ( wxCommandEvent &  e)
protected

response type changed

Definition at line 271 of file ImageVariableDialog.cpp.

References threshold().

Referenced by ImageVariableDialog(), and InitValues().

◆ OnShowDistortionGraph()

void ImageVariableDialog::OnShowDistortionGraph ( wxCommandEvent &  e)
protected

◆ OnShowResponseGraph()

void ImageVariableDialog::OnShowResponseGraph ( wxCommandEvent &  e)
protected

◆ OnShowVignettingGraph()

void ImageVariableDialog::OnShowVignettingGraph ( wxCommandEvent &  e)
protected

◆ SelectTab()

void ImageVariableDialog::SelectTab ( size_t  i)

selects the tab with index i

Definition at line 67 of file ImageVariableDialog.cpp.

References threshold().

◆ SetGuiLevel()

void ImageVariableDialog::SetGuiLevel ( GuiLevel  newLevel)

sets the GuiLevel

Definition at line 137 of file ImageVariableDialog.cpp.

References GUI_EXPERT, and threshold().

Member Data Documentation

◆ m_images

HuginBase::UIntSet ImageVariableDialog::m_images
private

◆ m_pano

HuginBase::Panorama* ImageVariableDialog::m_pano
private

◆ m_popup

wxGraphTools::GraphPopupWindow* ImageVariableDialog::m_popup
private

◆ m_varNames

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 291 of file ImageVariableDialog.h.

Referenced by ApplyNewVariables(), and InitValues().


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