pto_var.cpp File Reference

program to manipulate variables for scripting More...

#include <hugin_version.h>
#include <fstream>
#include <sstream>
#include <getopt.h>
#include <unistd.h>
#include <panodata/Panorama.h>
#include <panodata/ImageVariableTranslate.h>
#include <panodata/ImageVariableGroup.h>
#include <panodata/StandardImageVariableGroups.h>
#include <boost/algorithm/string.hpp>
#include <boost/regex.hpp>
#include <boost/lexical_cast.hpp>
#include "ParseExp.h"
#include "panodata/image_variables.h"

Include dependency graph for pto_var.cpp:

Go to the source code of this file.

Classes

struct  ParseVar

Defines

#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)

Typedefs

typedef std::vector< ParseVarParseVarVec

Functions

void ParseVariableString (ParseVarVec &parseVec, std::string input, void(*func)(ParseVarVec &, std::string))
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 UpdateSingleVar (Panorama &pano, ParseVar parseVar, size_t imgNr)
static void usage (const char *name)


Detailed Description

program to manipulate variables for scripting

Author:
T. Modes

Definition in file pto_var.cpp.


Define Documentation

#define image_variable ( name,
type,
default_value   ) 

Value:

if (HuginBase::PTOVariableConverterFor##name::checkApplicability(setVars[i].varname))\
                    {\
                        if(img1.name##isLinked())\
                        {\
                            for(size_t k=j+1; k<pano.getNrOfImages(); k++)\
                            {\
                                if(img1.name##isLinkedWith(pano.getImage(k)))\
                                {\
                                    updatedImgs.insert(k);\
                                }\
                            };\
                        };\
                    };

#define image_variable ( name,
type,
default_value   ) 

Value:

if (HuginBase::PTOVariableConverterFor##name::checkApplicability(parseVec[i].varname))\
        {\
            variables.insert(HuginBase::ImageVariableGroup::IVE_##name);\
        };

#define image_variable ( name,
type,
default_value   ) 

Value:

if (HuginBase::PTOVariableConverterFor##name::checkApplicability(temp))\
            {\
                validVarname=true;\
            };

#define image_variable ( name,
type,
default_value   ) 

Value:

if (HuginBase::PTOVariableConverterFor##name::checkApplicability(temp))\
            {\
                validVarname=true;\
            };

#define image_variable ( name,
type,
default_value   ) 

Value:

if (HuginBase::PTOVariableConverterFor##name::checkApplicability(temp))\
            {\
                validVarname=true;\
            };


Typedef Documentation

typedef std::vector<ParseVar> ParseVarVec

Definition at line 57 of 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 207 of file pto_var.cpp.

References set_contains().

void ParseVariableString ( ParseVarVec parseVec,
std::string  input,
void(*)(ParseVarVec &, std::string func 
)

Definition at line 193 of file pto_var.cpp.

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

Definition at line 265 of file pto_var.cpp.

References set_contains().

bool UpdateSingleVar ( Panorama pano,
ParseVar  parseVar,
size_t  imgNr 
)

Definition at line 358 of file pto_var.cpp.

References cerr, cout, ParseVar::expression, HuginBase::Panorama::getImage(), HuginBase::SrcPanoImage::getVar(), Parser::ParseExpression(), HuginBase::Panorama::updateVariable(), and ParseVar::varname.

static void usage ( const char *  name  )  [static]

Definition at line 380 of file pto_var.cpp.

References cout.


Generated on 23 Oct 2014 for Hugintrunk by  doxygen 1.4.7