HuginBase::PanoramaMakefilelibExport Class Reference

#include <PanoramaMakefilelibExport.h>

Inheritance diagram for HuginBase::PanoramaMakefilelibExport:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PanoramaMakefilelibExport (PanoramaData &pano_, const UIntSet &images_, const std::string &ptofile_, const std::string &outputPrefix_, const PTPrograms &progs_, const std::string &includePath_, std::vector< std::string > &outputFiles_, std::ostream &makefile_, const std::string &tmpDir_, const bool copyMetadata_, const int nrThreads_)
virtual bool modifiesPanoramaData () const
 returns true if the algorithm changes the PanoramaData.
bool runAlgorithm ()
 implementation of the algorithm.
virtual ~PanoramaMakefilelibExport ()

Static Public Member Functions

static void createMakefile (PanoramaData &pano_, const UIntSet &images_, const std::string &ptofile_, const std::string &outputPrefix_, const PTPrograms &progs_, const std::string &includePath_, std::vector< std::string > &outputFiles_, std::ostream &makefile_, const std::string &tmpDir_, const bool copyMetadata_, const int nrThreads_)

Private Member Functions

bool createItems ()
void createstacks (const std::vector< UIntSet > stackdata, const std::string stkname, const std::string filenamecenter, const std::string inputfilenamecenter, const std::string filenameext, std::vector< makefile::Variable * > &stacks, std::vector< makefile::Variable * > &stacks_shell, std::vector< makefile::Variable * > &stacks_input, std::vector< makefile::Variable * > &stacks_input_shell, makefile::Variable *&vstacks, makefile::Variable *&vstacksshell, std::vector< std::string > &allfiles)
void createexposure (const std::vector< UIntSet > stackdata, const std::string stkname, const std::string filenamecenter, const std::string inputfilenamecenter, const std::string filenameext, std::vector< makefile::Variable * > &stacks, std::vector< makefile::Variable * > &stacks_shell, std::vector< makefile::Variable * > &stacks_input, std::vector< makefile::Variable * > &stacks_input_shell, std::vector< makefile::Variable * > &stacks_input_pt, std::vector< makefile::Variable * > &stacks_input_pt_shell, makefile::Variable *&vstacks, makefile::Variable *&vstacksshell, makefile::Variable *&vstacksrem, makefile::Variable *&vstacksremshell, std::vector< std::string > &inputs)
void createcheckProgCmd (makefile::Rule &testrule, const std::string &progName, const std::string &progCommand)
void echoInfo (makefile::Rule &inforule, const std::string &info)
void printSystemInfo (makefile::Rule &inforule)
bool writeMakefile ()

Private Attributes

PanoramaDatapano
UIntSet images
const std::stringptofile
const std::stringoutputPrefix
const PTProgramsprogs
const std::stringincludePath
std::vector< std::string > & outputFiles
std::ostreammakefile
const std::stringtmpDir
const bool copyMetadata
const int nrThreads
makefile::Manager mgr
std::ostringstream valuestream

Classes

struct  PTPrograms

Detailed Description

Definition at line 43 of file PanoramaMakefilelibExport.h.


Constructor & Destructor Documentation

HuginBase::PanoramaMakefilelibExport::PanoramaMakefilelibExport ( PanoramaData pano_,
const UIntSet images_,
const std::string ptofile_,
const std::string outputPrefix_,
const PTPrograms progs_,
const std::string includePath_,
std::vector< std::string > &  outputFiles_,
std::ostream makefile_,
const std::string tmpDir_,
const bool  copyMetadata_,
const int  nrThreads_ 
)

Definition at line 73 of file PanoramaMakefilelibExport.cpp.

References HuginBase::getImagesinROI(), makefile::GetMakefileLocale(), images, and valuestream.

virtual HuginBase::PanoramaMakefilelibExport::~PanoramaMakefilelibExport (  )  [inline, virtual]

Definition at line 172 of file PanoramaMakefilelibExport.h.


Member Function Documentation

void HuginBase::PanoramaMakefilelibExport::createcheckProgCmd ( makefile::Rule testrule,
const std::string progName,
const std::string progCommand 
) [private]

Definition at line 1140 of file PanoramaMakefilelibExport.cpp.

References makefile::Rule::addCommand().

Referenced by createItems().

void HuginBase::PanoramaMakefilelibExport::createexposure ( const std::vector< UIntSet stackdata,
const std::string  stkname,
const std::string  filenamecenter,
const std::string  inputfilenamecenter,
const std::string  filenameext,
std::vector< makefile::Variable * > &  stacks,
std::vector< makefile::Variable * > &  stacks_shell,
std::vector< makefile::Variable * > &  stacks_input,
std::vector< makefile::Variable * > &  stacks_input_shell,
std::vector< makefile::Variable * > &  stacks_input_pt,
std::vector< makefile::Variable * > &  stacks_input_pt_shell,
makefile::Variable *&  vstacks,
makefile::Variable *&  vstacksshell,
makefile::Variable *&  vstacksrem,
makefile::Variable *&  vstacksremshell,
std::vector< std::string > &  inputs 
) [private]

Definition at line 1052 of file PanoramaMakefilelibExport.cpp.

References makefile::MakefileItem::add(), makefile::Variable::getDef(), HuginBase::PanoramaData::getSrcImage(), makefile::Makefile::MAKE, mgr, newVarDef, makefile::Makefile::NONE, outputPrefix, makefile::Manager::own(), pano, and makefile::Makefile::SHELL.

Referenced by createItems().

bool HuginBase::PanoramaMakefilelibExport::createItems (  )  [private]

Definition at line 93 of file PanoramaMakefilelibExport.cpp.

References makefile::MakefileItem::add(), makefile::Rule::addCommand(), makefile::Rule::addPrereq(), makefile::Rule::addTarget(), HuginBase::append(), HuginBase::PanoramaOptions::blendMode, HuginBase::PanoramaOptions::BRIGHTNESS, HuginBase::PanoramaOptions::BRIGHTNESS_COLOR, HuginBase::PanoramaOptions::COLOR, HuginBase::PanoramaOptions::colorCorrection, HuginBase::PanoramaOptions::colorReferenceImage, copyMetadata, createcheckProgCmd(), createexposure(), createstacks(), echoInfo(), HuginBase::PanoramaMakefilelibExport::PTPrograms::enblend, HuginBase::PanoramaOptions::ENBLEND_BLEND, HuginBase::PanoramaOptions::enblendOptions, HuginBase::PanoramaMakefilelibExport::PTPrograms::enfuse, HuginBase::PanoramaOptions::enfuseOptions, HuginBase::PanoramaMakefilelibExport::PTPrograms::exiftool, HuginBase::PanoramaMakefilelibExport::PTPrograms::exiftool_opts, makefile::Variable::getDef(), HuginBase::getExposureLayers(), HuginBase::getHDRStacks(), HuginBase::PanoramaOptions::getHeight(), HuginBase::PanoramaOptions::getHFOV(), HuginBase::PanoramaData::getImage(), makefile::GetMakefileLocale(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::PanoramaData::getOptions(), HuginBase::PanoramaOptions::getProjection(), HuginBase::PanoramaOptions::getProjectionParameters(), makefile::Variable::getRef(), HuginBase::PanoramaOptions::getROI(), HuginBase::PanoramaData::getSrcImage(), makefile::Variable::getValues(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::PanoramaOptions::getWidth(), HuginBase::hdrgrayRemappedExt(), HuginBase::PanoramaMakefilelibExport::PTPrograms::hdrmerge, HuginBase::PanoramaOptions::HDRMERGE_AVERAGE, HuginBase::PanoramaOptions::hdrMergeMode, HuginBase::PanoramaOptions::hdrmergeOptions, HuginBase::hdrRemappedExt(), HuginBase::hdrRemappedMode(), images, includePath, celeste::info(), HuginBase::ldrRemappedExt(), HuginBase::ldrRemappedMode(), makefile::Makefile::MAKE, mgr, newVarDef, HuginBase::PanoramaOptions::NO_BLEND, HuginBase::PanoramaOptions::NONA, HuginBase::PanoramaMakefilelibExport::PTPrograms::nona, HuginBase::PanoramaOptions::NONE, makefile::Makefile::NONE, nrThreads, HuginBase::PanoramaOptions::outputExposureValue, outputFiles, HuginBase::PanoramaOptions::outputHDRBlended, HuginBase::PanoramaOptions::outputHDRLayers, HuginBase::PanoramaOptions::outputHDRStacks, HuginBase::PanoramaOptions::outputImageType, HuginBase::PanoramaOptions::outputImageTypeCompression, HuginBase::PanoramaOptions::outputImageTypeHDR, HuginBase::PanoramaOptions::outputImageTypeHDRCompression, HuginBase::PanoramaOptions::outputLayersCompression, HuginBase::PanoramaOptions::outputLayersExposureDiff, HuginBase::PanoramaOptions::outputLDRBlended, HuginBase::PanoramaOptions::outputLDRExposureBlended, HuginBase::PanoramaOptions::outputLDRExposureLayers, HuginBase::PanoramaOptions::outputLDRExposureLayersFused, HuginBase::PanoramaOptions::outputLDRExposureRemapped, HuginBase::PanoramaOptions::outputLDRLayers, HuginBase::PanoramaOptions::outputLDRStacks, outputPrefix, HuginBase::PanoramaOptions::outputStacksMinOverlap, makefile::Manager::own(), makefile::Manager::own_add(), pano, printSystemInfo(), progs, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTblender, HuginBase::PanoramaOptions::PTBLENDER_BLEND, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTmasker, HuginBase::PanoramaOptions::PTMENDER, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTmender, ptofile, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTroller, HuginBase::PanoramaMakefilelibExport::PTPrograms::PTStitcher, HuginBase::PanoramaOptions::quality, makefile::Makefile::quote(), HuginBase::PanoramaOptions::remapper, HuginBase::PanoramaOptions::remapUsingGPU, makefile::Variable::setExport(), makefile::Makefile::SHELL, HuginBase::PanoramaMakefilelibExport::PTPrograms::smartblend, HuginBase::PanoramaOptions::SMARTBLEND_BLEND, tmpDir, and valuestream.

Referenced by createMakefile().

static void HuginBase::PanoramaMakefilelibExport::createMakefile ( PanoramaData pano_,
const UIntSet images_,
const std::string ptofile_,
const std::string outputPrefix_,
const PTPrograms progs_,
const std::string includePath_,
std::vector< std::string > &  outputFiles_,
std::ostream makefile_,
const std::string tmpDir_,
const bool  copyMetadata_,
const int  nrThreads_ 
) [inline, static]

Definition at line 143 of file PanoramaMakefilelibExport.h.

References createItems(), and writeMakefile().

Referenced by main(), MainFrame::OnSaveProject(), and RunStitchPanel::StitchProject().

void HuginBase::PanoramaMakefilelibExport::createstacks ( const std::vector< UIntSet stackdata,
const std::string  stkname,
const std::string  filenamecenter,
const std::string  inputfilenamecenter,
const std::string  filenameext,
std::vector< makefile::Variable * > &  stacks,
std::vector< makefile::Variable * > &  stacks_shell,
std::vector< makefile::Variable * > &  stacks_input,
std::vector< makefile::Variable * > &  stacks_input_shell,
makefile::Variable *&  vstacks,
makefile::Variable *&  vstacksshell,
std::vector< std::string > &  allfiles 
) [private]

Definition at line 990 of file PanoramaMakefilelibExport.cpp.

References makefile::MakefileItem::add(), makefile::Variable::getDef(), makefile::Makefile::MAKE, mgr, newVarDef, makefile::Makefile::NONE, outputPrefix, makefile::Manager::own(), and makefile::Makefile::SHELL.

Referenced by createItems().

void HuginBase::PanoramaMakefilelibExport::echoInfo ( makefile::Rule inforule,
const std::string info 
) [private]

Definition at line 1153 of file PanoramaMakefilelibExport.cpp.

References makefile::Rule::addCommand().

Referenced by createItems(), and printSystemInfo().

virtual bool HuginBase::PanoramaMakefilelibExport::modifiesPanoramaData (  )  const [inline, virtual]

returns true if the algorithm changes the PanoramaData.

Implements HuginBase::PanoramaAlgorithm.

Definition at line 163 of file PanoramaMakefilelibExport.h.

void HuginBase::PanoramaMakefilelibExport::printSystemInfo ( makefile::Rule inforule  )  [private]

Definition at line 1166 of file PanoramaMakefilelibExport.cpp.

References makefile::Rule::addCommand(), echoInfo(), and makefile::GetMakefileLocale().

Referenced by createItems().

bool HuginBase::PanoramaMakefilelibExport::runAlgorithm (  )  [inline, virtual]

implementation of the algorithm.

You should override with your algorithm's implementiation.

Implements HuginBase::PanoramaAlgorithm.

Definition at line 167 of file PanoramaMakefilelibExport.h.

bool HuginBase::PanoramaMakefilelibExport::writeMakefile (  )  [inline, private]

Definition at line 126 of file PanoramaMakefilelibExport.h.

References makefile::Makefile::getSingleton(), and makefile::Makefile::writeMakefile().

Referenced by createMakefile().


Member Data Documentation

const bool HuginBase::PanoramaMakefilelibExport::copyMetadata [private]

Definition at line 90 of file PanoramaMakefilelibExport.h.

Referenced by createItems().

UIntSet HuginBase::PanoramaMakefilelibExport::images [private]

Definition at line 82 of file PanoramaMakefilelibExport.h.

Referenced by createItems(), and PanoramaMakefilelibExport().

const std::string& HuginBase::PanoramaMakefilelibExport::includePath [private]

Definition at line 86 of file PanoramaMakefilelibExport.h.

Referenced by createItems().

std::ostream& HuginBase::PanoramaMakefilelibExport::makefile [private]

Definition at line 88 of file PanoramaMakefilelibExport.h.

makefile::Manager HuginBase::PanoramaMakefilelibExport::mgr [private]

Definition at line 93 of file PanoramaMakefilelibExport.h.

Referenced by createexposure(), createItems(), and createstacks().

const int HuginBase::PanoramaMakefilelibExport::nrThreads [private]

Definition at line 91 of file PanoramaMakefilelibExport.h.

Referenced by createItems().

std::vector<std::string>& HuginBase::PanoramaMakefilelibExport::outputFiles [private]

Definition at line 87 of file PanoramaMakefilelibExport.h.

Referenced by createItems().

const std::string& HuginBase::PanoramaMakefilelibExport::outputPrefix [private]

Definition at line 84 of file PanoramaMakefilelibExport.h.

Referenced by createexposure(), createItems(), and createstacks().

PanoramaData& HuginBase::PanoramaMakefilelibExport::pano [private]

Definition at line 81 of file PanoramaMakefilelibExport.h.

Referenced by createexposure(), and createItems().

const PTPrograms& HuginBase::PanoramaMakefilelibExport::progs [private]

Definition at line 85 of file PanoramaMakefilelibExport.h.

Referenced by createItems().

const std::string& HuginBase::PanoramaMakefilelibExport::ptofile [private]

Definition at line 83 of file PanoramaMakefilelibExport.h.

Referenced by createItems().

const std::string& HuginBase::PanoramaMakefilelibExport::tmpDir [private]

Definition at line 89 of file PanoramaMakefilelibExport.h.

Referenced by createItems().

std::ostringstream HuginBase::PanoramaMakefilelibExport::valuestream [private]

Definition at line 94 of file PanoramaMakefilelibExport.h.

Referenced by createItems(), and PanoramaMakefilelibExport().


The documentation for this class was generated from the following files:
Generated on 31 Oct 2014 for Hugintrunk by  doxygen 1.4.7