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

program to manipulate variables for scripting More...

#include <fstream>
#include <sstream>
#include <getopt.h>
#include <panodata/Panorama.h>
#include <panodata/ImageVariableTranslate.h>
#include <panodata/ImageVariableGroup.h>
#include <panodata/StandardImageVariableGroups.h>
#include "hugin_utils/utils.h"
#include "panodata/ParseExp.h"
#include "panodata/image_variables.h"
Include dependency graph for pto_var.cpp:

Go to the source code of this file.

Functions

void ParseSingleOptVar (Parser::ParseVarVec &varVec, const std::string &s, std::ostream &errorStream)
 
void ParseSingleLinkVar (Parser::ParseVarVec &varVec, const std::string &s, std::ostream &errorStream)
 
void AddToOptVec (HuginBase::OptimizeVector &optVec, std::string varname, size_t imgNr, std::set< size_t > refImgs, bool linkRefImgsYaw, bool linkRefImgsPitch, bool linkRefImgsRoll, std::vector< std::set< std::string > > groupedVars)
 
void RemoveFromOptVec (HuginBase::OptimizeVector &optVec, std::string varname, size_t imgNr, std::vector< std::set< std::string > > groupedVars)
 
bool ParseCoordinateRelativ (const std::string &s, double &val, bool &relativ)
 
void SetCropToImages (const std::string &s, HuginBase::Panorama &pano, HuginBase::UIntSet &imgs)
 
void SetCrop (HuginBase::Panorama &pano, const std::string &crop)
 
void EnableImages (HuginBase::Panorama &pano, const std::string &imageList, const bool enable)
 
static void usage (const char *name)
 
int main (int argc, char *argv[])
 

Detailed Description

program to manipulate variables for scripting

Author
T. Modes

Definition in file pto_var.cpp.

Function Documentation

void AddToOptVec ( HuginBase::OptimizeVector optVec,
std::string  varname,
size_t  imgNr,
std::set< size_t >  refImgs,
bool  linkRefImgsYaw,
bool  linkRefImgsPitch,
bool  linkRefImgsRoll,
std::vector< std::set< std::string > >  groupedVars 
)

Definition at line 83 of file pto_var.cpp.

References set_contains().

Referenced by main().

void EnableImages ( HuginBase::Panorama pano,
const std::string &  imageList,
const bool  enable 
)
int main ( int  argc,
char *  argv[] 
)
bool ParseCoordinateRelativ ( const std::string &  s,
double &  val,
bool &  relativ 
)

Definition at line 245 of file pto_var.cpp.

References hugin_utils::stringToDouble(), and hugin_utils::stringToInt().

Referenced by SetCropToImages().

void ParseSingleLinkVar ( Parser::ParseVarVec varVec,
const std::string &  s,
std::ostream &  errorStream 
)

Definition at line 58 of file pto_var.cpp.

References Parser::ParseVar::imgNr, and Parser::ParseVarNumber().

Referenced by main().

void ParseSingleOptVar ( Parser::ParseVarVec varVec,
const std::string &  s,
std::ostream &  errorStream 
)

Definition at line 38 of file pto_var.cpp.

References Parser::ParseVar::flag, and Parser::ParseVarNumber().

Referenced by main().

void RemoveFromOptVec ( HuginBase::OptimizeVector optVec,
std::string  varname,
size_t  imgNr,
std::vector< std::set< std::string > >  groupedVars 
)

Definition at line 141 of file pto_var.cpp.

References set_contains().

Referenced by main().

void SetCrop ( HuginBase::Panorama pano,
const std::string &  crop 
)
void SetCropToImages ( const std::string &  s,
HuginBase::Panorama pano,
HuginBase::UIntSet imgs 
)
static void usage ( const char *  name)
static

Definition at line 437 of file pto_var.cpp.

References hugin_utils::GetHuginVersion().