26 #ifndef _PANODATA_PANORAMAVARIABLE_H
27 #define _PANODATA_PANORAMAVARIABLE_H
53 Variable(
const std::string & name =
"" ,
55 : name(name), value(val)
58 Variable(
const std::string & name,
double val = 0.0)
59 : name(name), value(val)
67 virtual std::ostream & print(std::ostream & o)
const;
98 {
return m_link >= 0; }
129 :
Variable(name, value), linked(link)
133 :
Variable(name, value), linked(link)
141 virtual std::ostream& printLink(std::ostream & o,
unsigned int link)
const;
void fillVariableMap(VariableMap &vars)
fill map with all image & lens variables
LinkedVariable(const std::string &name="", double val=0.0, int link=-1)
PrintVar(std::ostream &o)
void printVariableMap(std::ostream &o, const VariableMap &vars)
print a variable map to o
const std::string & getName() const
void operator()(Variable x) const
a variable has a value and a name.
std::map< std::string, LensVariable > LensVarMap
void setLinked(bool l=true)
std::vector< VariableMap > VariableMapVector
LensVariable(const std::string &name, double value, bool link=false)
A lens variable can be linked.
virtual std::ostream & print(std::ostream &o) const
print this variable
std::map< std::string, Variable > VariableMap
void fillLensVarMap(LensVarMap &variables)
just lens variables
Variable(const std::string &name, double val=0.0)
std::vector< std::set< std::string > > OptimizeVector
functor to print a variable.