HuginQueue Namespace Reference


Classes

class  NormalCommand
 normal command for queue, processing is stopped if an error occurred in program More...
class  OptionalCommand
 optional command for queue, processing of queue is always continued, also if an error occurred More...

Namespaces

namespace  detail

Typedefs

typedef std::vector< NormalCommand * > CommandQueue

Functions

CommandQueueGetAssistantCommandQueue (const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project)
 generates the command queue for running the assistant
CommandQueueGetAssistantCommandQueueUserDefined (const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project, const wxString &assistantSetting)
 generates the command queue for running the assistant
bool RunCommandsQueue (CommandQueue *queue, size_t threads, bool dryRun)
 execute the given, set environment variable OMP_NUM_THREADS to threads (ignored for 0) after running the function the queue is cleared
void CleanQueue (CommandQueue *queue)
 clean the queue, delete all entries, but not the queue itself
wxString GetInternalProgram (const wxString &bindir, const wxString &name)
 return path and name of external program, which comes bundled with Hugin
wxString GetExternalProgram (wxConfigBase *config, const wxString &bindir, const wxString &name)
 return path and name of external program, which can be overwritten by the user
wxString wxStringFromCDouble (double val, int precision=-1)
 convert double to wxString, it is always using a '.
const wxString GetSettingString (wxConfigBase *setting, const wxString &name, const wxString defaultValue=wxEmptyString)
 read a string from setting and remove all whitespaces
template<class str>
str wxEscapeFilename (const str &arg)
 special escaping routine for CommandQueues
CommandQueueGetStitchingCommandQueue (const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project, const wxString &prefix, wxString &statusText, wxArrayString &outputFiles, wxArrayString &tempFilesDelete)
 generates the command queue for stitching a pano it will also generate the necessary exiftool argfiles
CommandQueueGetStitchingCommandQueueUserOutput (const HuginBase::Panorama &pano, const wxString &ExePath, const wxString &project, const wxString &prefix, const wxString &outputSettings, wxString &statusText, wxArrayString &outputFiles, wxArrayString &tempFilesDelete)
 generates the command queue for stitching a pano, the commands are parsed from the given executor output file
wxString GetQuotedFilenamesString (const wxArrayString &files)
 return a single string of all given files quoted


Typedef Documentation

typedef std::vector<NormalCommand*> HuginQueue::CommandQueue

Definition at line 61 of file Executor.h.


Function Documentation

WXIMPEX CommandQueue * HuginQueue::GetAssistantCommandQueue ( const HuginBase::Panorama pano,
const wxString &  ExePath,
const wxString &  project 
)

generates the command queue for running the assistant

Parameters:
[in] pano contains to panorama structure for which the queue should generated
[in] ExePath base path to all used utilities
[in] project name of the project file, the assistant modifies the given file
Returns:
pointer to CommandQueue

Definition at line 39 of file AssistantExecutor.cpp.

References HuginBase::Panorama::getCtrlPoints(), GetInternalProgram(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::Panorama::getNrOfImages(), HUGIN_ASS_AUTO_CPCLEAN, HUGIN_ASS_LINEFIND, HUGIN_ASS_PANO_DOWNSIZE_FACTOR, HUGIN_CELESTE_AUTO, HUGIN_CELESTE_FILTER, HUGIN_CELESTE_THRESHOLD, hugin_utils::roundi(), wxEscapeFilename(), wxStringFromCDouble(), and HuginBase::ControlPoint::X.

Referenced by RunStitchPanel::DetectProject(), HuginExecutor::OnRun(), and MainFrame::RunAssistant().

WXIMPEX CommandQueue * HuginQueue::GetAssistantCommandQueueUserDefined ( const HuginBase::Panorama pano,
const wxString &  ExePath,
const wxString &  project,
const wxString &  assistantSetting 
)

generates the command queue for running the assistant

Parameters:
[in] pano contains to panorama structure for which the queue should generated
[in] ExePath base path to all used utilities
[in] project name of the project file, the assistant modifies the given file
[in] assistantSetting assistant file from which the settings should be reads
Returns:
pointer to CommandQueue

Definition at line 131 of file AssistantExecutor.cpp.

References cerr, CleanQueue(), GetExternalProgram(), HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfCtrlPoints(), HuginBase::Panorama::getNrOfImages(), GetSettingString(), HUGIN_CONV_FILENAME, HuginGraph::ImageGraph::IsConnected(), wxEscapeFilename(), and HuginBase::ControlPoint::X.

Referenced by HuginExecutor::OnRun(), and MainFrame::RunAssistant().

WXIMPEX bool HuginQueue::RunCommandsQueue ( CommandQueue queue,
size_t  threads,
bool  dryRun 
)

execute the given, set environment variable OMP_NUM_THREADS to threads (ignored for 0) after running the function the queue is cleared

Definition at line 83 of file Executor.cpp.

References cerr, CleanQueue(), and vigra_ext::log().

Referenced by HuginExecutor::OnRun().

WXIMPEX void HuginQueue::CleanQueue ( CommandQueue queue  ) 

clean the queue, delete all entries, but not the queue itself

Definition at line 118 of file Executor.cpp.

Referenced by HuginQueue::detail::AddBlenderCommand(), GetAssistantCommandQueueUserDefined(), GetStitchingCommandQueueUserOutput(), and RunCommandsQueue().

WXIMPEX wxString HuginQueue::GetInternalProgram ( const wxString &  bindir,
const wxString &  name 
)

return path and name of external program, which comes bundled with Hugin

Definition at line 129 of file Executor.cpp.

References cerr.

Referenced by HuginQueue::detail::AddBlenderCommand(), GetAssistantCommandQueue(), GetStitchingCommandQueue(), and GetStitchingCommandQueueUserOutput().

WXIMPEX wxString HuginQueue::GetExternalProgram ( wxConfigBase *  config,
const wxString &  bindir,
const wxString &  name 
)

return path and name of external program, which can be overwritten by the user

Definition at line 148 of file Executor.cpp.

References cerr, and hugin_utils::FileExists().

Referenced by GetAssistantCommandQueueUserDefined(), GetStitchingCommandQueue(), GetStitchingCommandQueueUserOutput(), and HuginQueue::detail::PrintDetailInfo().

WXIMPEX wxString HuginQueue::wxStringFromCDouble ( double  val,
int  precision = -1 
)

convert double to wxString, it is always using a '.

' as decimal separator

Definition at line 226 of file Executor.cpp.

References hugin_utils::doubleTowxString().

Referenced by GetAssistantCommandQueue().

WXIMPEX const wxString HuginQueue::GetSettingString ( wxConfigBase *  setting,
const wxString &  name,
const wxString  defaultValue = wxEmptyString 
)

read a string from setting and remove all whitespaces

Definition at line 269 of file Executor.cpp.

Referenced by GetAssistantCommandQueueUserDefined(), and GetStitchingCommandQueueUserOutput().

template<class str>
str HuginQueue::wxEscapeFilename ( const str &  arg  ) 

special escaping routine for CommandQueues

Definition at line 79 of file Executor.h.

References hugin_utils::wxQuoteStringInternal().

Referenced by GetAssistantCommandQueue(), GetAssistantCommandQueueUserDefined(), HuginQueue::NormalCommand::GetCommand(), GetQuotedFilenamesString(), HuginQueue::detail::GetQuotedFilenamesStringForVerdandi(), GetStitchingCommandQueue(), GetStitchingCommandQueueUserOutput(), HuginQueue::detail::PrintDetailInfo(), and HuginQueue::detail::ReplacePrefixPlaceholder().

WXIMPEX CommandQueue * HuginQueue::GetStitchingCommandQueue ( const HuginBase::Panorama pano,
const wxString &  ExePath,
const wxString &  project,
const wxString &  prefix,
wxString &  statusText,
wxArrayString &  outputFiles,
wxArrayString &  tempFilesDelete 
)

generates the command queue for stitching a pano it will also generate the necessary exiftool argfiles

Parameters:
[in] pano panorama structure containing the input project
[in] ExePath ExePath base path to all used utilities
[in] project name of the project file, which contains the pano data (should by in sync with pano, to prevent double loading of the data)
[in] prefix prefix of the output, should only contain the filename part
[out] statusText contains a short status text, can be printed before the queue is actually executed, useful for bug reports
[out] outputFiles array of all output files, contains also the temporary files created during stitching (used for detecting of overwritting files)
[out] tempFilesDelete array with all temporary files which should be deleted at the end
Returns:
pointer to CommandQueue

Definition at line 393 of file StitchingExecutor.cpp.

References HuginQueue::detail::AddToArray(), HuginBase::PanoramaOptions::blendMode, cerr, HuginBase::PanoramaOptions::colorReferenceImage, HuginBase::PanoramaOptions::ENBLEND_BLEND, HuginBase::PanoramaOptions::enblendOptions, HuginBase::PanoramaOptions::enfuseOptions, fill_set(), HuginQueue::detail::GenerateFinalArgfile(), HuginBase::Panorama::getActiveImages(), hugin_utils::GetDataDir(), HuginBase::getExposureLayers(), GetExternalProgram(), HuginBase::getHDRStacks(), HuginBase::PanoramaOptions::getHFOV(), HuginBase::Panorama::getImage(), HuginBase::getImagesinROI(), GetInternalProgram(), HuginQueue::detail::GetNumberedFilename(), HuginBase::Panorama::getOptions(), GetQuotedFilenamesString(), HuginQueue::detail::GetQuotedFilenamesStringForVerdandi(), HuginBase::PanoramaOptions::getROI(), HuginBase::PanoramaOptions::getWidth(), HuginBase::PanoramaOptions::HDRMERGE_AVERAGE, HuginBase::PanoramaOptions::hdrMergeMode, HuginBase::PanoramaOptions::hdrmergeOptions, HUGIN_CONV_FILENAME, HUGIN_NONA_USEGPU, HUGIN_USE_EXIFTOOL, HuginBase::PanoramaOptions::INTERNAL_BLEND, HuginBase::PanoramaOptions::NONA, HuginBase::PanoramaOptions::outputHDRBlended, HuginBase::PanoramaOptions::outputHDRLayers, HuginBase::PanoramaOptions::outputHDRStacks, HuginBase::PanoramaOptions::outputImageType, HuginBase::PanoramaOptions::outputImageTypeCompression, HuginBase::PanoramaOptions::outputImageTypeHDR, HuginBase::PanoramaOptions::outputLayersCompression, HuginBase::PanoramaOptions::outputLDRBlended, HuginBase::PanoramaOptions::outputLDRExposureBlended, HuginBase::PanoramaOptions::outputLDRExposureLayers, HuginBase::PanoramaOptions::outputLDRExposureLayersFused, HuginBase::PanoramaOptions::outputLDRExposureRemapped, HuginBase::PanoramaOptions::outputLDRLayers, HuginBase::PanoramaOptions::outputLDRStacks, HuginQueue::detail::PrintDetailInfo(), HuginBase::PanoramaOptions::quality, HuginBase::PanoramaOptions::remapper, HuginBase::PanoramaOptions::remapUsingGPU, HuginBase::PanoramaOptions::verdandiOptions, and wxEscapeFilename().

Referenced by HuginExecutor::OnRun(), and RunStitchPanel::StitchProject().

WXIMPEX CommandQueue * HuginQueue::GetStitchingCommandQueueUserOutput ( const HuginBase::Panorama pano,
const wxString &  ExePath,
const wxString &  project,
const wxString &  prefix,
const wxString &  outputSettings,
wxString &  statusText,
wxArrayString &  outputFiles,
wxArrayString &  tempFilesDelete 
)

generates the command queue for stitching a pano, the commands are parsed from the given executor output file

Parameters:
[in] pano panorama structure containing the input project
[in] ExePath ExePath base path to all used utilities
[in] project name of the project file, which contains the pano data (should by in sync with pano, to prevent double loading of the data)
[in] prefix prefix of the output, should only contain the filename part
[in] outputSettings read the output sequence from this file
[out] statusText contains a short status text, can be printed before the queue is actually executed, useful for bug reports
[out] outputFiles array of all output files, contains also the temporary files created during stitching (used for detecting of overwritting files)
[out] tempFilesDelete array with all temporary files which should be deleted at the end
Returns:
pointer to CommandQueue

Definition at line 978 of file StitchingExecutor.cpp.

References HuginQueue::detail::AddBlenderCommand(), HuginQueue::detail::AddToArray(), cerr, CleanQueue(), fill_set(), HuginBase::Panorama::getActiveImages(), HuginBase::getExposureLayers(), GetExternalProgram(), HuginBase::getHDRStacks(), HuginBase::PanoramaOptions::getHeight(), HuginBase::PanoramaOptions::getHFOV(), HuginBase::Panorama::getImage(), HuginBase::getImagesinROI(), GetInternalProgram(), HuginQueue::detail::GetNumberedFilename(), HuginBase::Panorama::getOptions(), GetQuotedFilenamesString(), HuginBase::PanoramaOptions::getROI(), GetSettingString(), HuginBase::PanoramaOptions::getWidth(), HUGIN_CONV_FILENAME, HuginQueue::detail::ReplacePrefixPlaceholder(), HuginQueue::detail::ReplaceWidthHeightPlaceHolder(), and wxEscapeFilename().

Referenced by HuginExecutor::OnRun(), and RunStitchPanel::StitchProject().

WXIMPEX wxString HuginQueue::GetQuotedFilenamesString ( const wxArrayString &  files  ) 

return a single string of all given files quoted

Definition at line 1439 of file StitchingExecutor.cpp.

References wxEscapeFilename().

Referenced by HuginQueue::detail::GetQuotedFilenamesStringForVerdandi(), GetStitchingCommandQueue(), GetStitchingCommandQueueUserOutput(), and HuginExecutor::OnRun().


Generated on 21 Jan 2018 for Hugintrunk by  doxygen 1.4.7