Hugintrunk
0.1
|
Dialog for generate panoramas from a sequence of images. More...
#include <GenerateSequenceDialog.h>
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 | |
BatchFrame * | m_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 |
Dialog for generate panoramas from a sequence of images.
Definition at line 43 of file GenerateSequenceDialog.h.
GenerateSequenceDialog::GenerateSequenceDialog | ( | BatchFrame * | batchframe, |
wxString | xrcPrefix, | ||
wxString | ptoFilename | ||
) |
Constructor, read from xrc ressource; restore last uses settings, size and position.
Definition at line 79 of file GenerateSequenceDialog.cpp.
References vigra_ext::EMoR::h.
GenerateSequenceDialog::~GenerateSequenceDialog | ( | ) |
destructor, saves size and position
Definition at line 171 of file GenerateSequenceDialog.cpp.
References m_imagesListCtrl.
|
private |
generates all panoramas and add them to the batch queue with given queue target
Definition at line 602 of file GenerateSequenceDialog.cpp.
References BatchFrame::AddArrayToList(), HuginBase::Panorama::addImage(), ApplyTemplate(), HuginBase::SrcPanoImage::checkImageSizeKnown(), HuginBase::Panorama::duplicate(), hugin_utils::FileExists(), GenerateFileList(), GetNewProjectFilename(), HuginBase::Panorama::getNrOfImages(), hugin_utils::getPathPrefix(), HUGIN_CONV_FILENAME, m_basepath, m_batchframe, m_pano, and HuginBase::Panorama::WritePTOFile().
Referenced by OnGenerateAssistantPanorama(), and OnGenerateStitchingPanorama().
|
private |
fill the images list with current values
Definition at line 219 of file GenerateSequenceDialog.cpp.
References DEBUG_ASSERT, m_imagesListCtrl, m_mappedFilenames, and m_orignalFilenames.
Referenced by OnUpdateAllImagesTemplate(), and OnUpdateImageTemplate().
|
private |
generate a list of all panorama and images in panoramas
Definition at line 367 of file GenerateSequenceDialog.cpp.
References GetAllSubDirectories(), HuginBase::Panorama::getNrOfImages(), GetNumberString(), m_basepath, m_choiceSubDir, m_mappedFilenames, m_pano, m_spinCounterI_offset, m_spinCounterI_step, m_spinCounterP_end, m_spinCounterP_offset, m_spinCounterP_step, m_spinCounterX_offset, m_spinCounterX_step, m_subDirTextCtrl, and UpdateCounters().
Referenced by DoGeneratePanorama(), and OnGeneratePreview().
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 193 of file GenerateSequenceDialog.cpp.
References HuginBase::Panorama::getNrOfImages(), and m_pano.
|
protected |
generate assistant sequence button
Definition at line 688 of file GenerateSequenceDialog.cpp.
References Project::DETECTING, and DoGeneratePanorama().
|
protected |
generate preview
Definition at line 438 of file GenerateSequenceDialog.cpp.
References hugin_utils::FileExists(), GenerateFileList(), HuginBase::Panorama::getNrOfImages(), and m_pano.
|
protected |
generate stitching sequence button
Definition at line 683 of file GenerateSequenceDialog.cpp.
References DoGeneratePanorama(), and Project::STITCHING.
|
protected |
image in list ctrl selected
Definition at line 275 of file GenerateSequenceDialog.cpp.
References m_changeAllImagesTemplate, m_changeImageTemplate, m_imagesListCtrl, m_imageTemplate, m_mappedFilenames, m_originalImage, and m_orignalFilenames.
|
protected |
show select directory dialog
Definition at line 242 of file GenerateSequenceDialog.cpp.
References m_basepath, and OnSelectSubDir().
|
protected |
select which sub-directory should be used
Definition at line 253 of file GenerateSequenceDialog.cpp.
References GetAllSubDirectories(), m_basepath, m_choiceSubDir, m_subDirCount, m_subDirTextCtrl, and UpdateCounters().
Referenced by OnSelectBasePath().
|
protected |
update images filename template for all images
Definition at line 316 of file GenerateSequenceDialog.cpp.
References FillImagesList(), m_imageTemplate, and m_mappedFilenames.
|
protected |
update all spin controls with current numbers
Definition at line 326 of file GenerateSequenceDialog.cpp.
References UpdateCounters().
|
protected |
update image filename template on selected image
Definition at line 299 of file GenerateSequenceDialog.cpp.
References FillImagesList(), m_imagesListCtrl, m_imageTemplate, and m_mappedFilenames.
|
private |
read pto template from file
Definition at line 198 of file GenerateSequenceDialog.cpp.
References HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HUGIN_CONV_FILENAME, HuginBase::PanoramaMemento::loadPTScript(), m_filename, m_mappedFilenames, m_orignalFilenames, m_pano, and HuginBase::Panorama::setMemento().
|
private |
update all counters, enable/disable end value and calculate end values
Definition at line 331 of file GenerateSequenceDialog.cpp.
References HuginBase::Panorama::getNrOfImages(), m_choiceSubDir, m_pano, m_spinCounterI_end, m_spinCounterI_offset, m_spinCounterI_step, m_spinCounterP_end, m_spinCounterP_offset, m_spinCounterP_step, m_spinCounterX_end, m_spinCounterX_offset, m_spinCounterX_step, and m_subDirCount.
Referenced by GenerateFileList(), OnSelectSubDir(), and OnUpdateCounters().
|
private |
Definition at line 88 of file GenerateSequenceDialog.h.
|
private |
Definition at line 89 of file GenerateSequenceDialog.h.
Referenced by DoGeneratePanorama(), GenerateFileList(), OnSelectBasePath(), and OnSelectSubDir().
|
private |
Definition at line 85 of file GenerateSequenceDialog.h.
Referenced by DoGeneratePanorama().
|
private |
Definition at line 102 of file GenerateSequenceDialog.h.
Referenced by OnImageListSelected().
|
private |
Definition at line 101 of file GenerateSequenceDialog.h.
Referenced by OnImageListSelected().
|
private |
Definition at line 90 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), OnSelectSubDir(), and UpdateCounters().
|
private |
Definition at line 86 of file GenerateSequenceDialog.h.
Referenced by ReadPTOFile().
|
private |
Definition at line 98 of file GenerateSequenceDialog.h.
Referenced by FillImagesList(), OnImageListSelected(), OnUpdateImageTemplate(), and ~GenerateSequenceDialog().
|
private |
Definition at line 100 of file GenerateSequenceDialog.h.
Referenced by OnImageListSelected(), OnUpdateAllImagesTemplate(), and OnUpdateImageTemplate().
|
private |
Definition at line 97 of file GenerateSequenceDialog.h.
Referenced by FillImagesList(), GenerateFileList(), OnImageListSelected(), OnUpdateAllImagesTemplate(), OnUpdateImageTemplate(), and ReadPTOFile().
|
private |
Definition at line 99 of file GenerateSequenceDialog.h.
Referenced by OnImageListSelected().
|
private |
Definition at line 96 of file GenerateSequenceDialog.h.
Referenced by FillImagesList(), OnImageListSelected(), and ReadPTOFile().
|
private |
Definition at line 87 of file GenerateSequenceDialog.h.
Referenced by DoGeneratePanorama(), GenerateFileList(), IsValidPanorama(), OnGeneratePreview(), ReadPTOFile(), and UpdateCounters().
|
private |
Definition at line 94 of file GenerateSequenceDialog.h.
Referenced by UpdateCounters().
|
private |
Definition at line 94 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), and UpdateCounters().
|
private |
Definition at line 94 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), and UpdateCounters().
|
private |
Definition at line 93 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), and UpdateCounters().
|
private |
Definition at line 93 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), and UpdateCounters().
|
private |
Definition at line 93 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), and UpdateCounters().
|
private |
Definition at line 95 of file GenerateSequenceDialog.h.
Referenced by UpdateCounters().
|
private |
Definition at line 95 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), and UpdateCounters().
|
private |
Definition at line 95 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), and UpdateCounters().
|
private |
Definition at line 92 of file GenerateSequenceDialog.h.
Referenced by OnSelectSubDir(), and UpdateCounters().
|
private |
Definition at line 91 of file GenerateSequenceDialog.h.
Referenced by GenerateFileList(), and OnSelectSubDir().