Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
GenerateSequenceDialog.cpp File Reference

implementation of GenerateSequenceDialog class More...

#include "GenerateSequenceDialog.h"
#include "base_wx/wxPlatform.h"
#include "panoinc.h"
Include dependency graph for GenerateSequenceDialog.cpp:

Go to the source code of this file.

Functions

wxArrayString GetAllSubDirectories (const wxString baseDir)
 return a list of all sub-directories More...
 
wxString GetNumberString (size_t x, size_t width)
 return given number as string with given number of digits More...
 
void ApplyTemplate (const HuginBase::Panorama &pano, HuginBase::Panorama &newPano)
 copy the image files from pano to newPano -> this corresponds to apply the template newPano to pano the pano with applied template can be found in newPano More...
 
bool GetNewProjectFilename (long index, const HuginBase::Panorama &pano, const wxString basePath, wxFileName &projectFile, unsigned int currentIndex)
 generate filename from given settings and panorama append a number if file already exists More...
 

Detailed Description

implementation of GenerateSequenceDialog class

Author
T. Modes

Definition in file GenerateSequenceDialog.cpp.

Function Documentation

void ApplyTemplate ( const HuginBase::Panorama pano,
HuginBase::Panorama newPano 
)

copy the image files from pano to newPano -> this corresponds to apply the template newPano to pano the pano with applied template can be found in newPano

Definition at line 509 of file GenerateSequenceDialog.cpp.

References HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getSrcImage(), HuginBase::SrcPanoImage::resize(), HuginBase::Panorama::setCtrlPoints(), HuginBase::Panorama::setSrcImage(), and HuginBase::Panorama::updateVariables().

Referenced by GenerateSequenceDialog::DoGeneratePanorama().

wxArrayString GetAllSubDirectories ( const wxString  baseDir)

return a list of all sub-directories

Definition at line 34 of file GenerateSequenceDialog.cpp.

Referenced by GenerateSequenceDialog::GenerateFileList(), and GenerateSequenceDialog::OnSelectSubDir().

bool GetNewProjectFilename ( long  index,
const HuginBase::Panorama pano,
const wxString  basePath,
wxFileName &  projectFile,
unsigned int  currentIndex 
)

generate filename from given settings and panorama append a number if file already exists

Definition at line 542 of file GenerateSequenceDialog.cpp.

References getDefaultProjectName(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), and HUGIN_CONV_FILENAME.

Referenced by GenerateSequenceDialog::DoGeneratePanorama().

wxString GetNumberString ( size_t  x,
size_t  width 
)

return given number as string with given number of digits

Definition at line 54 of file GenerateSequenceDialog.cpp.

Referenced by GenerateSequenceDialog::GenerateFileList().