Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
HuginBase::Variable Class Reference

a variable has a value and a name. More...

#include <PanoramaVariable.h>

Inheritance diagram for HuginBase::Variable:
Inheritance graph

Public Member Functions

 Variable (const std::string &name, double val=0.0)
 
virtual ~Variable ()
 
virtual std::ostream & print (std::ostream &o) const
 print this variable
 
const std::string & getName () const
 
void setValue (double v)
 
double getValue () const
 

Protected Attributes

std::string name
 
double value
 

Detailed Description

a variable has a value and a name.

linking is only supported by LinkedVariable, which is only used by Lens.

Definition at line 48 of file PanoramaVariable.h.

Constructor & Destructor Documentation

◆ Variable()

HuginBase::Variable::Variable ( const std::string &  name,
double  val = 0.0 
)
inline

Definition at line 58 of file PanoramaVariable.h.

◆ ~Variable()

virtual HuginBase::Variable::~Variable ( )
inlinevirtual

Definition at line 62 of file PanoramaVariable.h.

Member Function Documentation

◆ getName()

const std::string & HuginBase::Variable::getName ( ) const
inline

◆ getValue()

double HuginBase::Variable::getValue ( ) const
inline

Definition at line 76 of file PanoramaVariable.h.

Referenced by HuginBase::Panorama::updateVariable().

◆ print()

std::ostream & HuginBase::Variable::print ( std::ostream &  o) const
virtual

print this variable

Definition at line 36 of file PanoramaVariable.cpp.

References name, and value.

Referenced by HuginBase::PrintVar::operator()().

◆ setValue()

void HuginBase::Variable::setValue ( double  v)
inline

Definition at line 73 of file PanoramaVariable.h.

References threshold().

Referenced by HuginBase::PTScriptParsing::readVar().

Member Data Documentation

◆ name

std::string HuginBase::Variable::name
protected

Definition at line 80 of file PanoramaVariable.h.

Referenced by print(), and HuginBase::LensVariable::printLink().

◆ value

double HuginBase::Variable::value
protected

Definition at line 81 of file PanoramaVariable.h.

Referenced by print().


The documentation for this class was generated from the following files: