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

Dialog for generate panoramas from a sequence of images. More...

#include <GenerateSequenceDialog.h>

Inheritance diagram for GenerateSequenceDialog:
Inheritance graph

Public Member Functions

 GenerateSequenceDialog (BatchFrame *batchframe, wxString xrcPrefix, wxString ptoFilename)
 Constructor, read from xrc ressource; restore last uses settings, size and position.
 
 ~GenerateSequenceDialog ()
 destructor, saves size and position
 
bool IsValidPanorama () const
 return true if given template is a valid pto file, if not the dialog should not be used
 

Protected Member Functions

void OnSelectBasePath (wxCommandEvent &e)
 show select directory dialog
 
void OnSelectSubDir (wxCommandEvent &e)
 select which sub-directory should be used
 
void OnImageListSelected (wxListEvent &e)
 image in list ctrl selected
 
void OnUpdateImageTemplate (wxCommandEvent &e)
 update image filename template on selected image
 
void OnUpdateAllImagesTemplate (wxCommandEvent &e)
 update images filename template for all images
 
void OnUpdateCounters (wxSpinEvent &e)
 update all spin controls with current numbers
 
void OnGeneratePreview (wxCommandEvent &e)
 generate preview
 
void OnGenerateStitchingPanorama (wxCommandEvent &e)
 generate stitching sequence button
 
void OnGenerateAssistantPanorama (wxCommandEvent &e)
 generate assistant sequence button
 

Private Member Functions

void ReadPTOFile ()
 read pto template from file
 
void FillImagesList ()
 fill the images list with current values
 
void UpdateCounters ()
 update all counters, enable/disable end value and calculate end values
 
void GenerateFileList (wxArrayString &panoSubDirs, std::vector< wxArrayString > &fileList)
 generate a list of all panorama and images in panoramas
 
void DoGeneratePanorama (const Project::Target target)
 generates all panoramas and add them to the batch queue with given queue target
 

Private Attributes

BatchFramem_batchframe
 
wxString m_filename
 
HuginBase::Panorama m_pano
 
bool m_validPTO { false }
 
wxTextCtrl * m_basepath
 
wxChoicem_choiceSubDir
 
wxTextCtrl * m_subDirTextCtrl
 
long m_subDirCount
 
wxSpinCtrlm_spinCounterP_offset
 
wxSpinCtrlm_spinCounterP_step
 
wxSpinCtrlm_spinCounterP_end
 
wxSpinCtrlm_spinCounterI_offset
 
wxSpinCtrlm_spinCounterI_step
 
wxSpinCtrlm_spinCounterI_end
 
wxSpinCtrlm_spinCounterX_offset
 
wxSpinCtrlm_spinCounterX_step
 
wxSpinCtrlm_spinCounterX_end
 
wxArrayString m_orignalFilenames
 
wxArrayString m_mappedFilenames
 
wxListCtrl * m_imagesListCtrl
 
wxStaticTextm_originalImage
 
wxTextCtrl * m_imageTemplate
 
wxButtonm_changeImageTemplate
 
wxButtonm_changeAllImagesTemplate
 

Detailed Description

Dialog for generate panoramas from a sequence of images.

Definition at line 43 of file GenerateSequenceDialog.h.

Constructor & Destructor Documentation

◆ GenerateSequenceDialog()

GenerateSequenceDialog::GenerateSequenceDialog ( BatchFrame batchframe,
wxString  xrcPrefix,
wxString  ptoFilename 
)

◆ ~GenerateSequenceDialog()

GenerateSequenceDialog::~GenerateSequenceDialog ( )

destructor, saves size and position

Definition at line 132 of file GenerateSequenceDialog.cpp.

References m_imagesListCtrl, hugin_utils::StoreFramePosition(), and threshold().

Member Function Documentation

◆ DoGeneratePanorama()

void GenerateSequenceDialog::DoGeneratePanorama ( const Project::Target  target)
private

◆ FillImagesList()

void GenerateSequenceDialog::FillImagesList ( )
private

fill the images list with current values

Definition at line 167 of file GenerateSequenceDialog.cpp.

References DEBUG_ASSERT, m_imagesListCtrl, m_mappedFilenames, m_orignalFilenames, and threshold().

Referenced by GenerateSequenceDialog(), OnUpdateAllImagesTemplate(), and OnUpdateImageTemplate().

◆ GenerateFileList()

void GenerateSequenceDialog::GenerateFileList ( wxArrayString panoSubDirs,
std::vector< wxArrayString > &  fileList 
)
private

◆ IsValidPanorama()

bool GenerateSequenceDialog::IsValidPanorama ( ) const

return true if given template is a valid pto file, if not the dialog should not be used

Definition at line 141 of file GenerateSequenceDialog.cpp.

References HuginBase::Panorama::getNrOfImages(), m_pano, and m_validPTO.

Referenced by GenerateSequenceDialog().

◆ OnGenerateAssistantPanorama()

void GenerateSequenceDialog::OnGenerateAssistantPanorama ( wxCommandEvent &  e)
protected

generate assistant sequence button

Definition at line 630 of file GenerateSequenceDialog.cpp.

References Project::DETECTING, and DoGeneratePanorama().

Referenced by GenerateSequenceDialog().

◆ OnGeneratePreview()

void GenerateSequenceDialog::OnGeneratePreview ( wxCommandEvent &  e)
protected

generate preview

Definition at line 386 of file GenerateSequenceDialog.cpp.

References GenerateFileList(), HuginBase::Panorama::getNrOfImages(), m_pano, and threshold().

Referenced by GenerateSequenceDialog().

◆ OnGenerateStitchingPanorama()

void GenerateSequenceDialog::OnGenerateStitchingPanorama ( wxCommandEvent &  e)
protected

generate stitching sequence button

Definition at line 625 of file GenerateSequenceDialog.cpp.

References DoGeneratePanorama(), and Project::STITCHING.

Referenced by GenerateSequenceDialog().

◆ OnImageListSelected()

void GenerateSequenceDialog::OnImageListSelected ( wxListEvent e)
protected

◆ OnSelectBasePath()

void GenerateSequenceDialog::OnSelectBasePath ( wxCommandEvent &  e)
protected

show select directory dialog

Definition at line 190 of file GenerateSequenceDialog.cpp.

References m_basepath, OnSelectSubDir(), and threshold().

Referenced by GenerateSequenceDialog().

◆ OnSelectSubDir()

void GenerateSequenceDialog::OnSelectSubDir ( wxCommandEvent &  e)
protected

select which sub-directory should be used

Definition at line 201 of file GenerateSequenceDialog.cpp.

References GetAllSubDirectories(), m_basepath, m_choiceSubDir, m_subDirCount, m_subDirTextCtrl, threshold(), and UpdateCounters().

Referenced by GenerateSequenceDialog(), and OnSelectBasePath().

◆ OnUpdateAllImagesTemplate()

void GenerateSequenceDialog::OnUpdateAllImagesTemplate ( wxCommandEvent &  e)
protected

update images filename template for all images

Definition at line 264 of file GenerateSequenceDialog.cpp.

References FillImagesList(), m_imageTemplate, m_mappedFilenames, and threshold().

Referenced by GenerateSequenceDialog().

◆ OnUpdateCounters()

void GenerateSequenceDialog::OnUpdateCounters ( wxSpinEvent e)
protected

update all spin controls with current numbers

Definition at line 274 of file GenerateSequenceDialog.cpp.

References UpdateCounters().

Referenced by GenerateSequenceDialog().

◆ OnUpdateImageTemplate()

void GenerateSequenceDialog::OnUpdateImageTemplate ( wxCommandEvent &  e)
protected

update image filename template on selected image

Definition at line 247 of file GenerateSequenceDialog.cpp.

References FillImagesList(), m_imagesListCtrl, m_imageTemplate, m_mappedFilenames, and threshold().

Referenced by GenerateSequenceDialog().

◆ ReadPTOFile()

void GenerateSequenceDialog::ReadPTOFile ( )
private

◆ UpdateCounters()

void GenerateSequenceDialog::UpdateCounters ( )
private

Member Data Documentation

◆ m_basepath

wxTextCtrl* GenerateSequenceDialog::m_basepath
private

◆ m_batchframe

BatchFrame* GenerateSequenceDialog::m_batchframe
private

Definition at line 85 of file GenerateSequenceDialog.h.

Referenced by DoGeneratePanorama(), and GenerateSequenceDialog().

◆ m_changeAllImagesTemplate

wxButton* GenerateSequenceDialog::m_changeAllImagesTemplate
private

Definition at line 102 of file GenerateSequenceDialog.h.

Referenced by GenerateSequenceDialog(), and OnImageListSelected().

◆ m_changeImageTemplate

wxButton* GenerateSequenceDialog::m_changeImageTemplate
private

Definition at line 101 of file GenerateSequenceDialog.h.

Referenced by GenerateSequenceDialog(), and OnImageListSelected().

◆ m_choiceSubDir

wxChoice* GenerateSequenceDialog::m_choiceSubDir
private

◆ m_filename

wxString GenerateSequenceDialog::m_filename
private

Definition at line 86 of file GenerateSequenceDialog.h.

Referenced by GenerateSequenceDialog(), and ReadPTOFile().

◆ m_imagesListCtrl

wxListCtrl* GenerateSequenceDialog::m_imagesListCtrl
private

◆ m_imageTemplate

wxTextCtrl* GenerateSequenceDialog::m_imageTemplate
private

◆ m_mappedFilenames

wxArrayString GenerateSequenceDialog::m_mappedFilenames
private

◆ m_originalImage

wxStaticText* GenerateSequenceDialog::m_originalImage
private

Definition at line 99 of file GenerateSequenceDialog.h.

Referenced by GenerateSequenceDialog(), and OnImageListSelected().

◆ m_orignalFilenames

wxArrayString GenerateSequenceDialog::m_orignalFilenames
private

Definition at line 96 of file GenerateSequenceDialog.h.

Referenced by FillImagesList(), OnImageListSelected(), and ReadPTOFile().

◆ m_pano

HuginBase::Panorama GenerateSequenceDialog::m_pano
private

◆ m_spinCounterI_end

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterI_end
private

Definition at line 94 of file GenerateSequenceDialog.h.

Referenced by GenerateSequenceDialog(), and UpdateCounters().

◆ m_spinCounterI_offset

wxSpinCtrl* GenerateSequenceDialog::m_spinCounterI_offset
private

◆ m_spinCounterI_step

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterI_step
private

◆ m_spinCounterP_end

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterP_end
private

◆ m_spinCounterP_offset

wxSpinCtrl* GenerateSequenceDialog::m_spinCounterP_offset
private

◆ m_spinCounterP_step

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterP_step
private

◆ m_spinCounterX_end

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterX_end
private

Definition at line 95 of file GenerateSequenceDialog.h.

Referenced by GenerateSequenceDialog(), and UpdateCounters().

◆ m_spinCounterX_offset

wxSpinCtrl* GenerateSequenceDialog::m_spinCounterX_offset
private

◆ m_spinCounterX_step

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterX_step
private

◆ m_subDirCount

long GenerateSequenceDialog::m_subDirCount
private

Definition at line 92 of file GenerateSequenceDialog.h.

Referenced by OnSelectSubDir(), and UpdateCounters().

◆ m_subDirTextCtrl

wxTextCtrl* GenerateSequenceDialog::m_subDirTextCtrl
private

◆ m_validPTO

bool GenerateSequenceDialog::m_validPTO { false }
private

Definition at line 88 of file GenerateSequenceDialog.h.

Referenced by IsValidPanorama(), and ReadPTOFile().


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