PossiblePano Class Reference

#include <FindPanoDialog.h>

List of all members.

Public Types

 NAMING_PANO = 0
 NAMING_FIRST_LAST = 1
 NAMING_FOLDER = 2
 NAMING_TEMPLATE = 3
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 ()
 constructor, init values
 ~PossiblePano ()
 destructor, cleans up used variables
bool BelongsTo (HuginBase::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 (HuginBase::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, HuginBase::PanoramaOptions::BlendingMechanism defaultBlender)
 generates the panorama file from this set of images
wxString GetCameraName ()
 returns the camera name
wxString GetLensName ()
 returns the lens name
wxString GetFocalLength ()
 returns the focal length as string
wxString GetStartString ()
 return the start date/time as string
wxString GetDuration ()
 returns the duration as string
void PopulateListCtrl (wxListCtrl *list, wxImageList *thumbs)
 add all images to wxListCtrl
void RemoveImage (const unsigned int index)
 removes the image at given index
PossiblePanoSplitPano (const unsigned int index)
 split pano into 2 subpanos, index is used as first image of second pano

Private Member Functions

const wxDateTime GetDateTime (const HuginBase::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
void UpdateDateTimes ()
 updates the internal date/time representations

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


Detailed Description

Definition at line 117 of file FindPanoDialog.h.


Member Enumeration Documentation

enum PossiblePano::NamingConvention

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

Enumerator:
NAMING_PANO 
NAMING_FIRST_LAST 
NAMING_FOLDER 
NAMING_TEMPLATE 

Definition at line 121 of file FindPanoDialog.h.


Constructor & Destructor Documentation

PossiblePano::PossiblePano (  )  [inline]

constructor, init values

Definition at line 129 of file FindPanoDialog.h.

Referenced by SplitPano().

PossiblePano::~PossiblePano (  ) 

destructor, cleans up used variables

Definition at line 587 of file FindPanoDialog.cpp.

References m_images.


Member Function Documentation

void PossiblePano::AddSrcPanoImage ( HuginBase::SrcPanoImage img  ) 

adds the given SrcPanoImage to this pano-group

Definition at line 641 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(), and SplitPano().

bool PossiblePano::BelongsTo ( HuginBase::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 598 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,
HuginBase::PanoramaOptions::BlendingMechanism  defaultBlender 
)

generates the panorama file from this set of images

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

Definition at line 765 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::Panorama::hasPossibleStacks(), HuginBase::PanoramaOptions::HDRMERGE_AVERAGE, HuginBase::PanoramaOptions::hdrMergeMode, HuginBase::PanoramaOptions::hdrmergeOptions, HUGIN_CONV_FILENAME, HUGIN_ENBLEND_ARGS, HUGIN_ENFUSE_ARGS, HUGIN_HDRMERGE_ARGS, HUGIN_JPEG_QUALITY, HUGIN_LDR_OUTPUT_FORMAT, HUGIN_NONA_CROPPEDIMAGES, HUGIN_NONA_INTERPOLATOR, HUGIN_TIFF_COMPRESSION, HuginBase::PanoramaOptions::interpolator, HuginBase::ConstImageVariableGroup::IVE_ExposureValue, HuginBase::ConstImageVariableGroup::IVE_WhiteBalanceBlue, HuginBase::ConstImageVariableGroup::IVE_WhiteBalanceRed, HuginBase::Panorama::linkPossibleStacks(), m_images, HuginBase::OPT_EXPOSURE, HuginBase::OPT_POSITION, HuginBase::OPT_RESPONSE, HuginBase::OPT_VIGNETTING, HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputFormat, HuginBase::PanoramaOptions::outputImageType, HuginBase::PanoramaOptions::outputImageTypeCompression, HuginBase::Panorama::printPanoramaScript(), HuginBase::PanoramaOptions::quality, HuginBase::Panorama::setOptimizerSwitch(), HuginBase::Panorama::setOptions(), HuginBase::Panorama::setPhotometricOptimizerSwitch(), HuginBase::Panorama::setSrcImage(), HuginBase::ImageVariableGroup::switchParts(), HuginBase::PanoramaOptions::TIFF_m, HuginBase::PanoramaOptions::tiff_saveROI, HuginBase::PanoramaOptions::tiffCompression, HuginBase::ImageVariableGroup::unlinkVariableImage(), and HuginBase::PanoramaOptions::verdandiOptions.

wxString PossiblePano::GetCameraName (  ) 

returns the camera name

Definition at line 895 of file FindPanoDialog.cpp.

References m_camera.

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

does some reformating date/time format

Definition at line 627 of file FindPanoDialog.cpp.

References HuginBase::SrcPanoImage::getExifDateTime(), and HUGIN_CONV_FILENAME.

Referenced by AddSrcPanoImage(), BelongsTo(), and UpdateDateTimes().

wxString PossiblePano::GetDuration (  ) 

returns the duration as string

Definition at line 915 of file FindPanoDialog.cpp.

References m_dt_end, and m_dt_start.

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 669 of file FindPanoDialog.cpp.

References HUGIN_CONV_FILENAME, and m_images.

Referenced by GetItemString(), and GetNewProjectFilename().

wxString PossiblePano::GetFocalLength (  ) 

returns the focal length as string

Definition at line 905 of file FindPanoDialog.cpp.

References m_focallength.

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

returns number of images in this group

Definition at line 138 of file FindPanoDialog.h.

References m_images.

Referenced by FindPanoDialog::OnSplitPanos().

const wxString PossiblePano::GetItemString ( const wxString  BasePath  )  const

returns a string which contains description of this pano

Definition at line 686 of file FindPanoDialog.cpp.

References GetFilestring(), and m_images.

wxString PossiblePano::GetLensName (  ) 

returns the lens name

Definition at line 900 of file FindPanoDialog.cpp.

References m_lens.

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

returns a given filename, which does not already exists

Definition at line 691 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().

wxString PossiblePano::GetStartString (  ) 

return the start date/time as string

Definition at line 910 of file FindPanoDialog.cpp.

References m_dt_start.

void PossiblePano::PopulateListCtrl ( wxListCtrl *  list,
wxImageList *  thumbs 
)

add all images to wxListCtrl

Definition at line 928 of file FindPanoDialog.cpp.

References cerr, HUGIN_CONV_FILENAME, m_images, and THUMBSIZE.

void PossiblePano::RemoveImage ( const unsigned int  index  ) 

removes the image at given index

Definition at line 1005 of file FindPanoDialog.cpp.

References m_images, and UpdateDateTimes().

PossiblePano * PossiblePano::SplitPano ( const unsigned int  index  ) 

split pano into 2 subpanos, index is used as first image of second pano

Returns:
pointer to second subpano

Definition at line 1019 of file FindPanoDialog.cpp.

References AddSrcPanoImage(), m_images, PossiblePano(), and UpdateDateTimes().

void PossiblePano::UpdateDateTimes (  )  [private]

updates the internal date/time representations

Definition at line 1043 of file FindPanoDialog.cpp.

References GetDateTime(), m_dt_end, m_dt_start, and m_images.

Referenced by RemoveImage(), and SplitPano().


Member Data Documentation

std::string PossiblePano::m_camera [private]

Definition at line 176 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), BelongsTo(), and GetCameraName().

wxDateTime PossiblePano::m_dt_end [private]

Definition at line 179 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), BelongsTo(), GetDuration(), and UpdateDateTimes().

wxDateTime PossiblePano::m_dt_start [private]

Definition at line 178 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), BelongsTo(), GetDuration(), GetStartString(), and UpdateDateTimes().

double PossiblePano::m_focallength [private]

Definition at line 180 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), BelongsTo(), and GetFocalLength().

ImageSet PossiblePano::m_images [private]

Definition at line 182 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), GeneratePanorama(), GetFilestring(), GetImageCount(), GetItemString(), GetNewProjectFilename(), PopulateListCtrl(), RemoveImage(), SplitPano(), UpdateDateTimes(), and ~PossiblePano().

std::string PossiblePano::m_lens [private]

Definition at line 177 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), BelongsTo(), and GetLensName().

std::string PossiblePano::m_make [private]

Definition at line 175 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().

vigra::Size2D PossiblePano::m_size [private]

Definition at line 181 of file FindPanoDialog.h.

Referenced by AddSrcPanoImage(), and BelongsTo().


The documentation for this class was generated from the following files:
Generated on 28 Jul 2016 for Hugintrunk by  doxygen 1.4.7