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
PerspectivePanel Class Reference

panel for enfuse GUI More...

#include <PerspectivePanel.h>

Inheritance diagram for PerspectivePanel:
Inheritance graph

Public Member Functions

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

Protected Member Functions

void OnSize (wxSizeEvent &e)
 
void OnLoadImage (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 OnSavePTO (wxCommandEvent &e)
 
void OnSaveOutput (wxCommandEvent &e)
 

Private Member Functions

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

Private Attributes

PerspectiveImageCtrlm_preview { nullptr }
 controls More...
 
wxChoice * m_previewChoice { nullptr }
 
wxChoice * m_zoomChoice { nullptr }
 
wxChoice * m_rotationChoice { nullptr }
 
wxChoice * m_modeChoice { nullptr }
 
wxTextCtrl * m_focallengthTextCtrl { nullptr }
 
wxTextCtrl * m_cropTextCtrl { nullptr }
 
wxButton * m_findLineButton { nullptr }
 
wxButton * m_outputButton { nullptr }
 
wxStaticText * m_helpTextCtrl { nullptr }
 
MyExecPanelm_logWindow { nullptr }
 
HuginBase::SrcPanoImage m_srcImage
 SrcPanoImage, contains information about the image. More...
 
PerspectiveImageCtrl::ImageRotation m_exifRotation { PerspectiveImageCtrl::ROT0 }
 save rotation as written in EXIF More...
 
int m_degDigits { 3 }
 
wxArrayString m_tempFiles
 temp files, which should be deleted at end More...
 

Detailed Description

panel for enfuse GUI

Definition at line 37 of file PerspectivePanel.h.

Constructor & Destructor Documentation

PerspectivePanel::~PerspectivePanel ( )

destructor, save position and size

Definition at line 87 of file PerspectivePanel.cpp.

Member Function Documentation

bool PerspectivePanel::Create ( wxWindow *  parent,
MyExecPanel logWindow 
)
bool PerspectivePanel::GetPanorama ( HuginBase::Panorama pano,
const bool  optimized = true 
)
private
const double PerspectivePanel::GetRoll ( ) const
private
const PerspectiveImageCtrl::ImageRotation PerspectivePanel::GetRotation ( ) const
private
wxString PerspectivePanel::GetStatusString ( )

return help text for current mode

Definition at line 533 of file PerspectivePanel.cpp.

References m_modeChoice.

Referenced by OnModeChanged().

void PerspectivePanel::OnColourChanged ( wxColourPickerEvent &  e)
protected

Definition at line 336 of file PerspectivePanel.cpp.

References m_preview, and PerspectiveImageCtrl::SetLineColour().

Referenced by Create().

void PerspectivePanel::OnCropChanged ( wxCommandEvent &  e)
protected

Definition at line 342 of file PerspectivePanel.cpp.

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

Referenced by Create().

void PerspectivePanel::OnFindLines ( wxCommandEvent &  e)
protected
void PerspectivePanel::OnLoadImage ( wxCommandEvent &  e)
protected

Definition at line 287 of file PerspectivePanel.cpp.

References GetFileDialogImageFilters(), and SetImage().

Referenced by Create().

void PerspectivePanel::OnModeChanged ( wxCommandEvent &  e)
protected
void PerspectivePanel::OnPreview ( wxCommandEvent &  e)
protected
void PerspectivePanel::OnProcessFinished ( wxCommandEvent &  e)

clean up temporary files at end

Definition at line 516 of file PerspectivePanel.cpp.

References m_outputButton, and m_tempFiles.

Referenced by ToolboxFrame::OnQueueProgress().

void PerspectivePanel::OnRotationChanged ( wxCommandEvent &  e)
protected
void PerspectivePanel::OnSaveOutput ( wxCommandEvent &  e)
protected
void PerspectivePanel::OnSavePTO ( wxCommandEvent &  e)
protected
void PerspectivePanel::OnSize ( wxSizeEvent &  e)
protected

Definition at line 154 of file PerspectivePanel.cpp.

Referenced by Create().

void PerspectivePanel::OnZoom ( wxCommandEvent &  e)
protected

Definition at line 162 of file PerspectivePanel.cpp.

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

Referenced by Create().

bool PerspectivePanel::ReadInputs ( )
private

read the values from the input boxes

Definition at line 545 of file PerspectivePanel.cpp.

References HuginBase::SrcPanoImage::calcHFOV(), m_cropTextCtrl, m_focallengthTextCtrl, m_srcImage, and hugin_utils::str2double().

Referenced by GetPanorama().

void PerspectivePanel::SetImage ( const wxString &  filename)

Member Data Documentation

wxTextCtrl* PerspectivePanel::m_cropTextCtrl { nullptr }
private

Definition at line 81 of file PerspectivePanel.h.

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

int PerspectivePanel::m_degDigits { 3 }
private

Definition at line 90 of file PerspectivePanel.h.

Referenced by Create(), and SetImage().

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().

wxButton* PerspectivePanel::m_findLineButton { nullptr }
private

Definition at line 82 of file PerspectivePanel.h.

Referenced by Create(), and OnModeChanged().

wxTextCtrl* PerspectivePanel::m_focallengthTextCtrl { nullptr }
private

Definition at line 80 of file PerspectivePanel.h.

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

wxStaticText* PerspectivePanel::m_helpTextCtrl { nullptr }
private

Definition at line 84 of file PerspectivePanel.h.

Referenced by Create(), and OnModeChanged().

MyExecPanel* PerspectivePanel::m_logWindow { nullptr }
private

Definition at line 85 of file PerspectivePanel.h.

Referenced by Create(), and OnSaveOutput().

wxChoice* PerspectivePanel::m_modeChoice { nullptr }
private

Definition at line 79 of file PerspectivePanel.h.

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

wxButton* PerspectivePanel::m_outputButton { nullptr }
private

Definition at line 83 of file PerspectivePanel.h.

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

PerspectiveImageCtrl* PerspectivePanel::m_preview { nullptr }
private
wxChoice* PerspectivePanel::m_previewChoice { nullptr }
private

Definition at line 76 of file PerspectivePanel.h.

Referenced by Create(), OnFindLines(), OnModeChanged(), OnPreview(), and SetImage().

wxChoice* PerspectivePanel::m_rotationChoice { nullptr }
private

Definition at line 78 of file PerspectivePanel.h.

Referenced by Create(), and GetRotation().

HuginBase::SrcPanoImage PerspectivePanel::m_srcImage
private

SrcPanoImage, contains information about the image.

Definition at line 87 of file PerspectivePanel.h.

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

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().

wxChoice* PerspectivePanel::m_zoomChoice { nullptr }
private

Definition at line 77 of file PerspectivePanel.h.

Referenced by Create(), and OnPreview().


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