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 | 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 More...
 
virtual ~LensCalFrame ()
 destructor More...
 
const wxString & GetXRCPath ()
 get the path to the xrc directory More...
 
void AddImages (wxArrayString files)
 
void UpdateListString (unsigned int index)
 
void UpdateList (bool restoreSelection)
 updates the list box with current values More...
 
- 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 More...
 
void taskFinished ()
 call when a task has finished and the status message should be cleared More...
 
bool updateDisplay ()
 updates the display, return true, if update was successful, false if cancel was pressed More...
 
bool updateDisplay (const std::string &message)
 
bool updateDisplayValue ()
 
void setMaximum (int newMaximum)
 sets the new maximum value of the progress value More...
 
bool wasCancelled ()
 return true, if process should be canceled by user e.g. More...
 

Protected Member Functions

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

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 More...
 
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 More...
 
void Optimize ()
 do the optimization More...
 
bool displayProgress ()
 update progress display More...
 
HuginBase::Panorama GetPanorama ()
 return panorama object with all images More...
 
void EnableButtons ()
 enable all buttons and menu items depending on number of active images More...
 
void ParametersToDisplay ()
 set all parameter input wxTextField to internal values More...
 

Private Attributes

wxChoice * m_choice_projection
 
wxListBox * m_images_list
 
LensCalImageCtrlm_preview
 
std::vector< ImageLineList * > m_images
 list of all detected lines More...
 
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 ( wxWindow *  parent)
explicit
LensCalFrame::~LensCalFrame ( )
virtual

Member Function Documentation

void LensCalFrame::AddImages ( wxArrayString  files)
bool LensCalFrame::displayProgress ( )
private

update progress display

void LensCalFrame::EnableButtons ( )
private

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

Definition at line 497 of file LensCalFrame.cpp.

References m_images.

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

HuginBase::Panorama LensCalFrame::GetPanorama ( )
private
const wxString & LensCalFrame::GetXRCPath ( )

get the path to the xrc directory

Definition at line 243 of file LensCalFrame.cpp.

void LensCalFrame::OnAddImage ( wxCommandEvent &  e)
private
void LensCalFrame::OnExit ( wxCommandEvent &  e)
private

Definition at line 268 of file LensCalFrame.cpp.

void LensCalFrame::OnFindLines ( wxCommandEvent &  e)
private
void LensCalFrame::OnImageSelected ( wxCommandEvent &  e)
private
void LensCalFrame::OnOptimize ( wxCommandEvent &  e)
private

Definition at line 577 of file LensCalFrame.cpp.

References m_images, Optimize(), and ReadInputs().

void LensCalFrame::OnRefresh ( wxCommandEvent &  e)
private
void LensCalFrame::OnRemoveImage ( wxCommandEvent &  e)
private
void LensCalFrame::OnReset ( wxCommandEvent &  e)
private
void LensCalFrame::OnSaveLens ( wxCommandEvent &  e)
private
void LensCalFrame::OnSaveProject ( wxCommandEvent &  e)
private
void LensCalFrame::OnSelectPreviewContent ( wxCommandEvent &  e)
private
void LensCalFrame::OnShowDistortionGraph ( wxCommandEvent &  e)
private
void LensCalFrame::OnShowLines ( wxCommandEvent &  e)
private

Definition at line 833 of file LensCalFrame.cpp.

References m_preview, and LensCalImageCtrl::SetShowLines().

void LensCalFrame::Optimize ( )
private
void LensCalFrame::ParametersToDisplay ( )
private

set all parameter input wxTextField to internal values

Definition at line 235 of file LensCalFrame.cpp.

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

Referenced by OnReset().

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

Definition at line 719 of file LensCalFrame.cpp.

References GetPanorama(), and SaveLensParameters().

Referenced by OnSaveLens().

void LensCalFrame::UpdateList ( bool  restoreSelection)

updates the list box with current values

Definition at line 460 of file LensCalFrame.cpp.

References m_images, m_images_list, and OnImageSelected().

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

void LensCalFrame::UpdateListString ( unsigned int  index)

Definition at line 454 of file LensCalFrame.cpp.

References m_images, and m_images_list.

void LensCalFrame::updateProgressDisplay ( )
protectedvirtual

called when a progress message should be displayed

update the display

Implements AppBase::ProgressDisplay.

Definition at line 249 of file LensCalFrame.cpp.

References HUGIN_CONV_FILENAME, AppBase::ProgressDisplay::m_filename, and AppBase::ProgressDisplay::m_message.

Member Data Documentation

double LensCalFrame::m_a
private

Definition at line 120 of file LensCalFrame.h.

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

double LensCalFrame::m_b
private

Definition at line 121 of file LensCalFrame.h.

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

double LensCalFrame::m_c
private

Definition at line 122 of file LensCalFrame.h.

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

wxChoice* LensCalFrame::m_choice_projection
private

Definition at line 107 of file LensCalFrame.h.

Referenced by AddImages(), and ReadInputs().

double LensCalFrame::m_cropfactor
private
double LensCalFrame::m_d
private

Definition at line 123 of file LensCalFrame.h.

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

double LensCalFrame::m_e
private

Definition at line 124 of file LensCalFrame.h.

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

double LensCalFrame::m_edge_scale
private

Definition at line 116 of file LensCalFrame.h.

Referenced by OnFindLines(), OnReset(), ParametersToDisplay(), ReadInputs(), and ~LensCalFrame().

double LensCalFrame::m_edge_threshold
private

Definition at line 117 of file LensCalFrame.h.

Referenced by OnFindLines(), OnReset(), ParametersToDisplay(), ReadInputs(), and ~LensCalFrame().

double LensCalFrame::m_focallength
private
std::vector<ImageLineList*> LensCalFrame::m_images
private
wxListBox* LensCalFrame::m_images_list
private
double LensCalFrame::m_minlinelength
private

Definition at line 119 of file LensCalFrame.h.

Referenced by OnFindLines(), OnReset(), ParametersToDisplay(), ReadInputs(), and ~LensCalFrame().

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

Definition at line 131 of file LensCalFrame.h.

Referenced by OnShowDistortionGraph().

LensCalImageCtrl* LensCalFrame::m_preview
private
double LensCalFrame::m_progress
private

Definition at line 128 of file LensCalFrame.h.

double LensCalFrame::m_progressMax
private

Definition at line 127 of file LensCalFrame.h.

wxString LensCalFrame::m_progressMsg
private

Definition at line 129 of file LensCalFrame.h.

HuginBase::SrcPanoImage::Projection LensCalFrame::m_projection
private
unsigned int LensCalFrame::m_resize_dimension
private

Definition at line 118 of file LensCalFrame.h.

Referenced by OnFindLines(), OnReset(), ParametersToDisplay(), ReadInputs(), and ~LensCalFrame().


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