Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
LensCalFrame Class Reference

The main window frame. More...

#include <LensCalFrame.h>

Inheritance diagram for LensCalFrame:
Inheritance graph

Public Member Functions

 LensCalFrame (wxWindow *parent)
 constructor

 
virtual ~LensCalFrame ()
 destructor
 
const wxStringGetXRCPath ()
 get the path to the xrc directory
 
void AddImages (wxArrayString files)
 
void UpdateListString (unsigned int index)
 
void UpdateList (bool restoreSelection)
 updates the list box with current values
 
- Public Member Functions inherited from AppBase::ProgressDisplay
virtual ~ProgressDisplay ()
 
void setMessage (const std::string &message, const std::string &filename="")
 sets the message to given string
 
void taskFinished ()
 call when a task has finished and the status message should be cleared
 
bool updateDisplay ()
 updates the display, return true, if update was successful, false if cancel was pressed
 
bool updateDisplay (const std::string &message)
 
bool updateDisplayValue ()
 
void setMaximum (int newMaximum)
 sets the new maximum value of the progress value
 
bool wasCancelled ()
 return true, if process should be canceled by user e.g.
 

Protected Member Functions

void updateProgressDisplay ()
 called when a progress message should be displayed
 
- Protected Member Functions inherited from AppBase::ProgressDisplay
 ProgressDisplay (int maximum=0)
 constructor
 

Private Member Functions

void OnExit (wxCommandEvent &e)
 
void OnAddImage (wxCommandEvent &e)
 
void OnRemoveImage (wxCommandEvent &e)
 
void OnFindLines (wxCommandEvent &e)
 
void OnOptimize (wxCommandEvent &e)
 
void OnShowDistortionGraph (wxCommandEvent &e)
 show distortion graph
 
void SaveLensToIni ()
 
void OnSaveLens (wxCommandEvent &e)
 
void OnSaveProject (wxCommandEvent &e)
 
void OnImageSelected (wxCommandEvent &e)
 
void OnSelectPreviewContent (wxCommandEvent &e)
 
void OnReset (wxCommandEvent &e)
 
void OnShowLines (wxCommandEvent &e)
 
void OnRefresh (wxCommandEvent &e)
 
bool ReadInputs (bool readFocalLength, bool readOptions, bool readLensParameter)
 reads all input values into internal values
 
void Optimize ()
 do the optimization
 
bool displayProgress ()
 update progress display
 
HuginBase::Panorama GetPanorama ()
 return panorama object with all images
 
void EnableButtons ()
 enable all buttons and menu items depending on number of active images
 
void ParametersToDisplay ()
 set all parameter input wxTextField to internal values
 

Private Attributes

wxChoicem_choice_projection
 
wxListBoxm_images_list
 
LensCalImageCtrlm_preview
 
std::vector< ImageLineList * > m_images
 list of all detected lines
 
HuginBase::SrcPanoImage::Projection m_projection
 
double m_focallength
 
double m_cropfactor
 
double m_edge_scale
 
double m_edge_threshold
 
unsigned int m_resize_dimension
 
double m_minlinelength
 
double m_a
 
double m_b
 
double m_c
 
double m_d
 
double m_e
 
double m_progressMax
 
double m_progress
 
wxString m_progressMsg
 
wxGraphTools::GraphPopupWindowm_popup = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from AppBase::ProgressDisplay
bool m_canceled
 
std::string m_message
 
std::string m_filename
 
int m_maximum
 
int m_progress
 

Detailed Description

The main window frame.

Definition at line 56 of file LensCalFrame.h.

Constructor & Destructor Documentation

◆ LensCalFrame()

LensCalFrame::LensCalFrame ( wxWindow *  parent)
explicit

◆ ~LensCalFrame()

LensCalFrame::~LensCalFrame ( )
virtual

Member Function Documentation

◆ AddImages()

void LensCalFrame::AddImages ( wxArrayString  files)

◆ displayProgress()

bool LensCalFrame::displayProgress ( )
private

update progress display

◆ EnableButtons()

void LensCalFrame::EnableButtons ( )
private

enable all buttons and menu items depending on number of active images

Definition at line 495 of file LensCalFrame.cpp.

References m_images, and threshold().

Referenced by AddImages(), LensCalFrame(), OnAddImage(), and OnRemoveImage().

◆ GetPanorama()

HuginBase::Panorama LensCalFrame::GetPanorama ( )
private

◆ GetXRCPath()

const wxString & LensCalFrame::GetXRCPath ( )

get the path to the xrc directory

Definition at line 241 of file LensCalFrame.cpp.

References threshold().

Referenced by LensCalFrame().

◆ OnAddImage()

void LensCalFrame::OnAddImage ( wxCommandEvent &  e)
private

◆ OnExit()

void LensCalFrame::OnExit ( wxCommandEvent &  e)
private

Definition at line 266 of file LensCalFrame.cpp.

References threshold().

Referenced by LensCalFrame().

◆ OnFindLines()

void LensCalFrame::OnFindLines ( wxCommandEvent &  e)
private

◆ OnImageSelected()

void LensCalFrame::OnImageSelected ( wxCommandEvent &  e)
private

◆ OnOptimize()

void LensCalFrame::OnOptimize ( wxCommandEvent &  e)
private

Definition at line 575 of file LensCalFrame.cpp.

References hugin_utils::HuginMessageBox(), m_images, Optimize(), ReadInputs(), and threshold().

Referenced by LensCalFrame().

◆ OnRefresh()

void LensCalFrame::OnRefresh ( wxCommandEvent &  e)
private

◆ OnRemoveImage()

void LensCalFrame::OnRemoveImage ( wxCommandEvent &  e)
private

Definition at line 476 of file LensCalFrame.cpp.

References EnableButtons(), HUGIN_CONV_FILENAME, m_images, m_images_list, threshold(), and UpdateList().

Referenced by LensCalFrame().

◆ OnReset()

void LensCalFrame::OnReset ( wxCommandEvent &  e)
private

◆ OnSaveLens()

void LensCalFrame::OnSaveLens ( wxCommandEvent &  e)
private

◆ OnSaveProject()

void LensCalFrame::OnSaveProject ( wxCommandEvent &  e)
private

◆ OnSelectPreviewContent()

void LensCalFrame::OnSelectPreviewContent ( wxCommandEvent &  e)
private

◆ OnShowDistortionGraph()

void LensCalFrame::OnShowDistortionGraph ( wxCommandEvent &  e)
private

◆ OnShowLines()

void LensCalFrame::OnShowLines ( wxCommandEvent &  e)
private

Definition at line 827 of file LensCalFrame.cpp.

References m_preview, LensCalImageCtrl::SetShowLines(), and threshold().

Referenced by LensCalFrame().

◆ Optimize()

void LensCalFrame::Optimize ( )
private

◆ ParametersToDisplay()

void LensCalFrame::ParametersToDisplay ( )
private

set all parameter input wxTextField to internal values

Definition at line 233 of file LensCalFrame.cpp.

References hugin_utils::doubleTowxString(), m_edge_scale, m_edge_threshold, m_minlinelength, m_resize_dimension, and threshold().

Referenced by LensCalFrame(), and OnReset().

◆ ReadInputs()

bool LensCalFrame::ReadInputs ( bool  readFocalLength,
bool  readOptions,
bool  readLensParameter 
)
private

◆ SaveLensToIni()

void LensCalFrame::SaveLensToIni ( )
private

◆ UpdateList()

void LensCalFrame::UpdateList ( bool  restoreSelection)

updates the list box with current values

Definition at line 458 of file LensCalFrame.cpp.

References m_images, m_images_list, OnImageSelected(), and threshold().

Referenced by AddImages(), OnFindLines(), and OnRemoveImage().

◆ UpdateListString()

void LensCalFrame::UpdateListString ( unsigned int  index)

Definition at line 452 of file LensCalFrame.cpp.

References m_images, m_images_list, and threshold().

◆ updateProgressDisplay()

void LensCalFrame::updateProgressDisplay ( )
protectedvirtual

called when a progress message should be displayed

update the display

Implements AppBase::ProgressDisplay.

Definition at line 247 of file LensCalFrame.cpp.

References HUGIN_CONV_FILENAME, AppBase::ProgressDisplay::m_filename, AppBase::ProgressDisplay::m_message, and threshold().

Member Data Documentation

◆ m_a

double LensCalFrame::m_a
private

Definition at line 120 of file LensCalFrame.h.

Referenced by GetPanorama(), OnRefresh(), OnShowDistortionGraph(), Optimize(), and ReadInputs().

◆ m_b

double LensCalFrame::m_b
private

Definition at line 121 of file LensCalFrame.h.

Referenced by GetPanorama(), OnRefresh(), OnShowDistortionGraph(), Optimize(), and ReadInputs().

◆ m_c

double LensCalFrame::m_c
private

Definition at line 122 of file LensCalFrame.h.

Referenced by GetPanorama(), OnRefresh(), OnShowDistortionGraph(), Optimize(), and ReadInputs().

◆ m_choice_projection

wxChoice* LensCalFrame::m_choice_projection
private

Definition at line 107 of file LensCalFrame.h.

Referenced by AddImages(), LensCalFrame(), and ReadInputs().

◆ m_cropfactor

double LensCalFrame::m_cropfactor
private

◆ m_d

double LensCalFrame::m_d
private

Definition at line 123 of file LensCalFrame.h.

Referenced by GetPanorama(), OnRefresh(), OnShowDistortionGraph(), Optimize(), and ReadInputs().

◆ m_e

double LensCalFrame::m_e
private

Definition at line 124 of file LensCalFrame.h.

Referenced by GetPanorama(), OnRefresh(), OnShowDistortionGraph(), Optimize(), and ReadInputs().

◆ m_edge_scale

double LensCalFrame::m_edge_scale
private

◆ m_edge_threshold

double LensCalFrame::m_edge_threshold
private

◆ m_focallength

double LensCalFrame::m_focallength
private

◆ m_images

std::vector<ImageLineList*> LensCalFrame::m_images
private

◆ m_images_list

wxListBox* LensCalFrame::m_images_list
private

◆ m_minlinelength

double LensCalFrame::m_minlinelength
private

◆ m_popup

wxGraphTools::GraphPopupWindow* LensCalFrame::m_popup = nullptr
private

Definition at line 131 of file LensCalFrame.h.

Referenced by OnShowDistortionGraph().

◆ m_preview

LensCalImageCtrl* LensCalFrame::m_preview
private

◆ m_progress

double LensCalFrame::m_progress
private

Definition at line 128 of file LensCalFrame.h.

◆ m_progressMax

double LensCalFrame::m_progressMax
private

Definition at line 127 of file LensCalFrame.h.

◆ m_progressMsg

wxString LensCalFrame::m_progressMsg
private

Definition at line 129 of file LensCalFrame.h.

◆ m_projection

HuginBase::SrcPanoImage::Projection LensCalFrame::m_projection
private

◆ m_resize_dimension

unsigned int LensCalFrame::m_resize_dimension
private

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