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
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. More...
 
 ~GenerateSequenceDialog ()
 destructor, saves size and position More...
 
bool IsValidPanorama () const
 return true if given template is a valid pto file, if not the dialog should not be used More...
 

Protected Member Functions

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

Private Member Functions

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

Private Attributes

BatchFramem_batchframe
 
wxString m_filename
 
HuginBase::Panorama m_pano
 
bool m_validPTO false
 
wxTextCtrl * m_basepath
 
wxChoice * m_choiceSubDir
 
wxTextCtrl * m_subDirTextCtrl
 
long m_subDirCount
 
wxSpinCtrl * m_spinCounterP_offset
 
wxSpinCtrl * m_spinCounterP_step
 
wxSpinCtrl * m_spinCounterP_end
 
wxSpinCtrl * m_spinCounterI_offset
 
wxSpinCtrl * m_spinCounterI_step
 
wxSpinCtrl * m_spinCounterI_end
 
wxSpinCtrl * m_spinCounterX_offset
 
wxSpinCtrl * m_spinCounterX_step
 
wxSpinCtrl * m_spinCounterX_end
 
wxArrayString m_orignalFilenames
 
wxArrayString m_mappedFilenames
 
wxListCtrl * m_imagesListCtrl
 
wxStaticText * m_originalImage
 
wxTextCtrl * m_imageTemplate
 
wxButton * m_changeImageTemplate
 
wxButton * m_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 ( BatchFrame batchframe,
wxString  xrcPrefix,
wxString  ptoFilename 
)

Constructor, read from xrc ressource; restore last uses settings, size and position.

Definition at line 81 of file GenerateSequenceDialog.cpp.

References vigra_ext::EMoR::h.

GenerateSequenceDialog::~GenerateSequenceDialog ( )

destructor, saves size and position

Definition at line 173 of file GenerateSequenceDialog.cpp.

References m_imagesListCtrl.

Member Function Documentation

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

fill the images list with current values

Definition at line 221 of file GenerateSequenceDialog.cpp.

References DEBUG_ASSERT, m_imagesListCtrl, m_mappedFilenames, and m_orignalFilenames.

Referenced by OnUpdateAllImagesTemplate(), and OnUpdateImageTemplate().

void GenerateSequenceDialog::GenerateFileList ( wxArrayString &  panoSubDirs,
std::vector< wxArrayString > &  fileList 
)
private
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 195 of file GenerateSequenceDialog.cpp.

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

void GenerateSequenceDialog::OnGenerateAssistantPanorama ( wxCommandEvent &  e)
protected

generate assistant sequence button

Definition at line 698 of file GenerateSequenceDialog.cpp.

References Project::DETECTING, and DoGeneratePanorama().

void GenerateSequenceDialog::OnGeneratePreview ( wxCommandEvent &  e)
protected
void GenerateSequenceDialog::OnGenerateStitchingPanorama ( wxCommandEvent &  e)
protected

generate stitching sequence button

Definition at line 693 of file GenerateSequenceDialog.cpp.

References DoGeneratePanorama(), and Project::STITCHING.

void GenerateSequenceDialog::OnImageListSelected ( wxListEvent &  e)
protected
void GenerateSequenceDialog::OnSelectBasePath ( wxCommandEvent &  e)
protected

show select directory dialog

Definition at line 244 of file GenerateSequenceDialog.cpp.

References m_basepath, and OnSelectSubDir().

void GenerateSequenceDialog::OnSelectSubDir ( wxCommandEvent &  e)
protected

select which sub-directory should be used

Definition at line 255 of file GenerateSequenceDialog.cpp.

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

Referenced by OnSelectBasePath().

void GenerateSequenceDialog::OnUpdateAllImagesTemplate ( wxCommandEvent &  e)
protected

update images filename template for all images

Definition at line 318 of file GenerateSequenceDialog.cpp.

References FillImagesList(), m_imageTemplate, and m_mappedFilenames.

void GenerateSequenceDialog::OnUpdateCounters ( wxSpinEvent &  e)
protected

update all spin controls with current numbers

Definition at line 328 of file GenerateSequenceDialog.cpp.

References UpdateCounters().

void GenerateSequenceDialog::OnUpdateImageTemplate ( wxCommandEvent &  e)
protected

update image filename template on selected image

Definition at line 301 of file GenerateSequenceDialog.cpp.

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

void GenerateSequenceDialog::ReadPTOFile ( )
private
void GenerateSequenceDialog::UpdateCounters ( )
private

Member Data Documentation

bool m_validPTO GenerateSequenceDialog::false
private

Definition at line 88 of file GenerateSequenceDialog.h.

wxTextCtrl* GenerateSequenceDialog::m_basepath
private
BatchFrame* GenerateSequenceDialog::m_batchframe
private

Definition at line 85 of file GenerateSequenceDialog.h.

Referenced by DoGeneratePanorama().

wxButton* GenerateSequenceDialog::m_changeAllImagesTemplate
private

Definition at line 102 of file GenerateSequenceDialog.h.

Referenced by OnImageListSelected().

wxButton* GenerateSequenceDialog::m_changeImageTemplate
private

Definition at line 101 of file GenerateSequenceDialog.h.

Referenced by OnImageListSelected().

wxChoice* GenerateSequenceDialog::m_choiceSubDir
private

Definition at line 90 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), OnSelectSubDir(), and UpdateCounters().

wxString GenerateSequenceDialog::m_filename
private

Definition at line 86 of file GenerateSequenceDialog.h.

Referenced by ReadPTOFile().

wxListCtrl* GenerateSequenceDialog::m_imagesListCtrl
private
wxTextCtrl* GenerateSequenceDialog::m_imageTemplate
private
wxArrayString GenerateSequenceDialog::m_mappedFilenames
private
wxStaticText* GenerateSequenceDialog::m_originalImage
private

Definition at line 99 of file GenerateSequenceDialog.h.

Referenced by OnImageListSelected().

wxArrayString GenerateSequenceDialog::m_orignalFilenames
private

Definition at line 96 of file GenerateSequenceDialog.h.

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

HuginBase::Panorama GenerateSequenceDialog::m_pano
private
wxSpinCtrl * GenerateSequenceDialog::m_spinCounterI_end
private

Definition at line 94 of file GenerateSequenceDialog.h.

Referenced by UpdateCounters().

wxSpinCtrl* GenerateSequenceDialog::m_spinCounterI_offset
private

Definition at line 94 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), and UpdateCounters().

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterI_step
private

Definition at line 94 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), and UpdateCounters().

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterP_end
private

Definition at line 93 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), and UpdateCounters().

wxSpinCtrl* GenerateSequenceDialog::m_spinCounterP_offset
private

Definition at line 93 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), and UpdateCounters().

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterP_step
private

Definition at line 93 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), and UpdateCounters().

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterX_end
private

Definition at line 95 of file GenerateSequenceDialog.h.

Referenced by UpdateCounters().

wxSpinCtrl* GenerateSequenceDialog::m_spinCounterX_offset
private

Definition at line 95 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), and UpdateCounters().

wxSpinCtrl * GenerateSequenceDialog::m_spinCounterX_step
private

Definition at line 95 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), and UpdateCounters().

long GenerateSequenceDialog::m_subDirCount
private

Definition at line 92 of file GenerateSequenceDialog.h.

Referenced by OnSelectSubDir(), and UpdateCounters().

wxTextCtrl* GenerateSequenceDialog::m_subDirTextCtrl
private

Definition at line 91 of file GenerateSequenceDialog.h.

Referenced by GenerateFileList(), and OnSelectSubDir().


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