PossiblePano Class Reference

#include <FindPanoDialog.h>

List of all members.

Public Types

enum  NamingConvention { NAMING_PANO = 0, NAMING_FIRST_LAST = 1, NAMING_FOLDER = 2, NAMING_TEMPLATE = 3 }
 enumeration for different naming conventions, must be match combobox in ressource More...

Public Member Functions

 ~PossiblePano ()
 destructor, cleans up used variables
bool BelongsTo (SrcPanoImage *img, const wxTimeSpan max_time_diff)
 return true, if the image could belong to the given PossiblePano, it checks camera maker and model, focal length, image size and date/time
void AddSrcPanoImage (SrcPanoImage *img)
 adds the given SrcPanoImage to this pano-group
const unsigned int GetImageCount () const
 returns number of images in this group
const wxString GetItemString (const wxString BasePath) const
 returns a string which contains description of this pano
const wxString GetFilestring (const wxString BasePath, const bool stripExtension=false) const
 returns a string with the filename of the first and last file
wxString GeneratePanorama (NamingConvention nc, bool createLinks)
 generates the panorama file from this set of images

Private Member Functions

const wxDateTime GetDateTime (const SrcPanoImage *img)
 does some reformating date/time format
bool GetNewProjectFilename (NamingConvention nc, const wxString basePath, wxFileName &projectFile)
 returns a given filename, which does not already exists
bool IsStacked ()
 checks if the panorama contains stacks
double GetMaxExposureDifference ()
 calculates the ev difference between darkest and brightest image

Private Attributes

std::string m_make
std::string m_camera
std::string m_lens
wxDateTime m_dt_start
wxDateTime m_dt_end
double m_focallength
vigra::Size2D m_size
ImageSet m_images


Member Enumeration Documentation

enum PossiblePano::NamingConvention
 

enumeration for different naming conventions, must be match combobox in ressource

Enumeration values:
NAMING_PANO 
NAMING_FIRST_LAST 
NAMING_FOLDER 
NAMING_TEMPLATE 

Definition at line 110 of file FindPanoDialog.h.


Constructor & Destructor Documentation

PossiblePano::~PossiblePano  ) 
 

destructor, cleans up used variables

Definition at line 425 of file FindPanoDialog.cpp.

References m_images.


Member Function Documentation

void PossiblePano::AddSrcPanoImage SrcPanoImage img  ) 
 

adds the given SrcPanoImage to this pano-group

Definition at line 552 of file FindPanoDialog.cpp.

References GetDateTime(), m_camera, m_dt_end, m_dt_start, m_focallength, m_images, m_lens, m_make, and m_size.

Referenced by FindPanoDialog::SearchInDir().

bool PossiblePano::BelongsTo SrcPanoImage img,
const wxTimeSpan  max_time_diff
 

return true, if the image could belong to the given PossiblePano, it checks camera maker and model, focal length, image size and date/time

Definition at line 436 of file FindPanoDialog.cpp.

References GetDateTime(), m_camera, m_dt_end, m_dt_start, m_focallength, m_lens, m_make, and m_size.

wxString PossiblePano::GeneratePanorama NamingConvention  nc,
bool  createLinks
 

generates the panorama file from this set of images

Returns:
the generated project file, or wxEmptyString if generation failed

Definition at line 676 of file FindPanoDialog.cpp.

References HuginBase::Panorama::addImage(), HuginBase::PanoramaOptions::blendMode, HuginBase::PanoramaOptions::enblendOptions, HuginBase::PanoramaOptions::enfuseOptions, fill_set(), HuginBase::Panorama::getImage(), HuginBase::StandardImageVariableGroups::getLenses(), GetNewProjectFilename(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), HuginBase::ConstImageVariableGroup::getPartNumber(), HuginBase::Panorama::getSrcImage(), HuginBase::PanoramaOptions::hdrMergeMode, HuginBase::PanoramaOptions::hdrmergeOptions, HUGIN_CONV_FILENAME, HUGIN_ENBLEND_ARGS, HUGIN_ENFUSE_ARGS, HUGIN_JPEG_QUALITY, HUGIN_LDR_OUTPUT_FORMAT, HUGIN_NONA_CROPPEDIMAGES, HUGIN_NONA_INTERPOLATOR, HUGIN_TIFF_COMPRESSION, HuginBase::PanoramaOptions::interpolator, IsStacked(), HuginBase::Panorama::linkImageVariablePitch(), HuginBase::Panorama::linkImageVariableRoll(), HuginBase::Panorama::linkImageVariableStack(), HuginBase::Panorama::linkImageVariableYaw(), m_images, HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputFormat, HuginBase::PanoramaOptions::outputImageType, HuginBase::PanoramaOptions::outputImageTypeCompression, HuginBase::Panorama::printPanoramaScript(), HuginBase::PanoramaOptions::quality, HuginBase::BaseSrcPanoImage::setExposureValue(), HuginBase::Panorama::setOptimizerSwitch(), HuginBase::Panorama::setOptions(), HuginBase::Panorama::setPhotometricOptimizerSwitch(), HuginBase::Panorama::setSrcImage(), HuginBase::BaseSrcPanoImage::setWhiteBalanceBlue(), HuginBase::BaseSrcPanoImage::setWhiteBalanceRed(), HuginBase::ImageVariableGroup::switchParts(), HuginBase::PanoramaOptions::tiff_saveROI, HuginBase::PanoramaOptions::tiffCompression, and HuginBase::ImageVariableGroup::unlinkVariableImage().

const wxDateTime PossiblePano::GetDateTime const SrcPanoImage img  )  [private]
 

does some reformating date/time format

Definition at line 538 of file FindPanoDialog.cpp.

References HuginBase::SrcPanoImage::getExifDateTime().

Referenced by AddSrcPanoImage(), and BelongsTo().

const wxString PossiblePano::GetFilestring const wxString  BasePath,
const bool  stripExtension = false
const
 

returns a string with the filename of the first and last file

Definition at line 580 of file FindPanoDialog.cpp.

References m_images.

Referenced by GetItemString(), and GetNewProjectFilename().

const unsigned int PossiblePano::GetImageCount  )  const [inline]
 

returns number of images in this group

Definition at line 125 of file FindPanoDialog.h.

const wxString PossiblePano::GetItemString const wxString  BasePath  )  const
 

returns a string which contains description of this pano

Definition at line 597 of file FindPanoDialog.cpp.

References GetFilestring(), and m_images.

double PossiblePano::GetMaxExposureDifference  )  [private]
 

calculates the ev difference between darkest and brightest image

Definition at line 465 of file FindPanoDialog.cpp.

References m_images, celeste::max(), and celeste::min().

Referenced by IsStacked().

bool PossiblePano::GetNewProjectFilename NamingConvention  nc,
const wxString  basePath,
wxFileName &  projectFile
[private]
 

returns a given filename, which does not already exists

Definition at line 602 of file FindPanoDialog.cpp.

References HuginBase::Panorama::addImage(), getDefaultProjectName(), GetFilestring(), m_images, NAMING_FIRST_LAST, NAMING_FOLDER, NAMING_PANO, and NAMING_TEMPLATE.

Referenced by GeneratePanorama().

bool PossiblePano::IsStacked  )  [private]
 

checks if the panorama contains stacks

Definition at line 482 of file FindPanoDialog.cpp.

References GetMaxExposureDifference(), and m_images.

Referenced by GeneratePanorama().


Member Data Documentation

std::string PossiblePano::m_camera [private]
 

Definition at line 148 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().

wxDateTime PossiblePano::m_dt_end [private]
 

Definition at line 151 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().

wxDateTime PossiblePano::m_dt_start [private]
 

Definition at line 150 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().

double PossiblePano::m_focallength [private]
 

Definition at line 152 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().

ImageSet PossiblePano::m_images [private]
 

Definition at line 154 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), GeneratePanorama(), GetFilestring(), GetItemString(), GetMaxExposureDifference(), GetNewProjectFilename(), IsStacked(), and ~PossiblePano().

std::string PossiblePano::m_lens [private]
 

Definition at line 149 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().

std::string PossiblePano::m_make [private]
 

Definition at line 147 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().

vigra::Size2D PossiblePano::m_size [private]
 

Definition at line 153 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().


The documentation for this class was generated from the following files:
Generated on Thu Oct 2 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1