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

panel for enfuse GUI More...

#include <PerspectivePanel.h>

Inheritance diagram for PerspectivePanel:
Inheritance graph

Public Member Functions

bool Create (wxWindow *parent, MyExecPanel *logWindow)
 create the panel and populate all controls
 
void OnProcessFinished (wxCommandEvent &e)
 clean up temporary files at end
 
wxString GetStatusString ()
 return help text for current mode
 
void SetImage (const wxString &filename)
 load the given image
 

Protected Member Functions

void OnLoadImage (wxCommandEvent &e)
 
void OnLoadDistortion (wxCommandEvent &e)
 
void OnZoom (wxCommandEvent &e)
 
void OnPreview (wxCommandEvent &e)
 
void OnColourChanged (wxColourPickerEvent &e)
 
void OnCropChanged (wxCommandEvent &e)
 
void OnRotationChanged (wxCommandEvent &e)
 
void OnModeChanged (wxCommandEvent &e)
 
void OnFindLines (wxCommandEvent &e)
 
void OnRemoveLines (wxCommandEvent &e)
 
void OnSavePTO (wxCommandEvent &e)
 
void OnSaveOutput (wxCommandEvent &e)
 

Private Member Functions

bool ReadInputs ()
 read the values from the input boxes
 
bool GetPanorama (HuginBase::Panorama &pano, const bool optimized=true)
 return Pano object, it is optimized and the crop set when optimized=true
 
const PerspectiveImageCtrl::ImageRotation GetRotation () const
 return the image rotation
 
const double GetRoll () const
 return the roll angle in degree
 

Private Attributes

PerspectiveImageCtrlm_preview { nullptr }
 controls
 
wxChoicem_previewChoice { nullptr }
 
wxChoicem_zoomChoice { nullptr }
 
wxChoicem_rotationChoice { nullptr }
 
wxChoicem_modeChoice { nullptr }
 
wxTextCtrl * m_focallengthTextCtrl { nullptr }
 
wxTextCtrl * m_cropTextCtrl { nullptr }
 
wxButtonm_findLineButton { nullptr }
 
wxButtonm_removeLinesButton { nullptr }
 
wxButtonm_outputButton { nullptr }
 
wxStaticTextm_helpTextCtrl { nullptr }
 
MyExecPanelm_logWindow { nullptr }
 
HuginBase::SrcPanoImage m_srcImage
 SrcPanoImage, contains information about the image.
 
PerspectiveImageCtrl::ImageRotation m_exifRotation { PerspectiveImageCtrl::ROT0 }
 save rotation as written in EXIF
 
int m_degDigits { 3 }
 
wxArrayString m_tempFiles
 temp files, which should be deleted at end
 

Detailed Description

panel for enfuse GUI

Definition at line 37 of file PerspectivePanel.h.

Member Function Documentation

◆ Create()

bool PerspectivePanel::Create ( wxWindow *  parent,
MyExecPanel logWindow 
)

◆ GetPanorama()

bool PerspectivePanel::GetPanorama ( HuginBase::Panorama pano,
const bool  optimized = true 
)
private

◆ GetRoll()

const double PerspectivePanel::GetRoll ( ) const
private

◆ GetRotation()

const PerspectiveImageCtrl::ImageRotation PerspectivePanel::GetRotation ( ) const
private

◆ GetStatusString()

wxString PerspectivePanel::GetStatusString ( )

return help text for current mode

Definition at line 565 of file PerspectivePanel.cpp.

References m_modeChoice, and threshold().

Referenced by OnModeChanged().

◆ OnColourChanged()

void PerspectivePanel::OnColourChanged ( wxColourPickerEvent e)
protected

Definition at line 351 of file PerspectivePanel.cpp.

References m_preview, PerspectiveImageCtrl::SetLineColour(), and threshold().

Referenced by Create().

◆ OnCropChanged()

void PerspectivePanel::OnCropChanged ( wxCommandEvent &  e)
protected

Definition at line 357 of file PerspectivePanel.cpp.

References PerspectiveImageCtrl::IsOriginalShown(), m_preview, and OnPreview().

Referenced by Create().

◆ OnFindLines()

void PerspectivePanel::OnFindLines ( wxCommandEvent &  e)
protected

◆ OnLoadDistortion()

void PerspectivePanel::OnLoadDistortion ( wxCommandEvent &  e)
protected

◆ OnLoadImage()

void PerspectivePanel::OnLoadImage ( wxCommandEvent &  e)
protected

Definition at line 280 of file PerspectivePanel.cpp.

References GetFileDialogImageFilters(), SetImage(), and threshold().

Referenced by Create().

◆ OnModeChanged()

void PerspectivePanel::OnModeChanged ( wxCommandEvent &  e)
protected

◆ OnPreview()

void PerspectivePanel::OnPreview ( wxCommandEvent &  e)
protected

◆ OnProcessFinished()

void PerspectivePanel::OnProcessFinished ( wxCommandEvent &  e)

clean up temporary files at end

Definition at line 548 of file PerspectivePanel.cpp.

References m_outputButton, m_tempFiles, and threshold().

Referenced by ToolboxFrame::OnQueueProgress().

◆ OnRemoveLines()

void PerspectivePanel::OnRemoveLines ( wxCommandEvent &  e)
protected

Definition at line 424 of file PerspectivePanel.cpp.

References m_preview, m_previewChoice, OnPreview(), and PerspectiveImageCtrl::RemoveLines().

Referenced by Create().

◆ OnRotationChanged()

void PerspectivePanel::OnRotationChanged ( wxCommandEvent &  e)
protected

◆ OnSaveOutput()

void PerspectivePanel::OnSaveOutput ( wxCommandEvent &  e)
protected

◆ OnSavePTO()

void PerspectivePanel::OnSavePTO ( wxCommandEvent &  e)
protected

◆ OnZoom()

void PerspectivePanel::OnZoom ( wxCommandEvent &  e)
protected

Definition at line 153 of file PerspectivePanel.cpp.

References DEBUG_ERROR, m_preview, and PerspectiveImageCtrl::setScale().

Referenced by Create().

◆ ReadInputs()

bool PerspectivePanel::ReadInputs ( )
private

◆ SetImage()

void PerspectivePanel::SetImage ( const wxString filename)

Member Data Documentation

◆ m_cropTextCtrl

wxTextCtrl* PerspectivePanel::m_cropTextCtrl { nullptr }
private

Definition at line 80 of file PerspectivePanel.h.

Referenced by Create(), ReadInputs(), and SetImage().

◆ m_degDigits

int PerspectivePanel::m_degDigits { 3 }
private

Definition at line 90 of file PerspectivePanel.h.

Referenced by Create(), and SetImage().

◆ m_exifRotation

PerspectiveImageCtrl::ImageRotation PerspectivePanel::m_exifRotation { PerspectiveImageCtrl::ROT0 }
private

save rotation as written in EXIF

Definition at line 89 of file PerspectivePanel.h.

Referenced by GetRotation(), and SetImage().

◆ m_findLineButton

wxButton* PerspectivePanel::m_findLineButton { nullptr }
private

Definition at line 81 of file PerspectivePanel.h.

Referenced by Create(), and OnModeChanged().

◆ m_focallengthTextCtrl

wxTextCtrl* PerspectivePanel::m_focallengthTextCtrl { nullptr }
private

Definition at line 79 of file PerspectivePanel.h.

Referenced by Create(), ReadInputs(), and SetImage().

◆ m_helpTextCtrl

wxStaticText* PerspectivePanel::m_helpTextCtrl { nullptr }
private

Definition at line 84 of file PerspectivePanel.h.

Referenced by Create(), and OnModeChanged().

◆ m_logWindow

MyExecPanel* PerspectivePanel::m_logWindow { nullptr }
private

Definition at line 85 of file PerspectivePanel.h.

Referenced by Create(), and OnSaveOutput().

◆ m_modeChoice

wxChoice* PerspectivePanel::m_modeChoice { nullptr }
private

Definition at line 78 of file PerspectivePanel.h.

Referenced by Create(), GetStatusString(), and OnModeChanged().

◆ m_outputButton

wxButton* PerspectivePanel::m_outputButton { nullptr }
private

Definition at line 83 of file PerspectivePanel.h.

Referenced by Create(), OnProcessFinished(), and OnSaveOutput().

◆ m_preview

PerspectiveImageCtrl* PerspectivePanel::m_preview { nullptr }
private

◆ m_previewChoice

wxChoice* PerspectivePanel::m_previewChoice { nullptr }
private

◆ m_removeLinesButton

wxButton* PerspectivePanel::m_removeLinesButton { nullptr }
private

Definition at line 82 of file PerspectivePanel.h.

Referenced by Create(), and OnModeChanged().

◆ m_rotationChoice

wxChoice* PerspectivePanel::m_rotationChoice { nullptr }
private

Definition at line 77 of file PerspectivePanel.h.

Referenced by Create(), and GetRotation().

◆ m_srcImage

HuginBase::SrcPanoImage PerspectivePanel::m_srcImage
private

SrcPanoImage, contains information about the image.

Definition at line 87 of file PerspectivePanel.h.

Referenced by GetPanorama(), OnLoadDistortion(), OnSaveOutput(), ReadInputs(), and SetImage().

◆ m_tempFiles

wxArrayString PerspectivePanel::m_tempFiles
private

temp files, which should be deleted at end

Definition at line 92 of file PerspectivePanel.h.

Referenced by OnProcessFinished(), and OnSaveOutput().

◆ m_zoomChoice

wxChoice* PerspectivePanel::m_zoomChoice { nullptr }
private

Definition at line 76 of file PerspectivePanel.h.

Referenced by Create(), and OnPreview().


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