HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 > Class Template Reference

Object to group conversion functions for PTO format variables representing a hugin_utils::FDiff2D variable in SrcPanoImg. More...

#include <ImageVariableTranslate.h>

List of all members.

Static Public Member Functions

static bool checkApplicability (const std::string name)
static double getValueFromVariable (const std::string name, const ImageVariable< hugin_utils::FDiff2D > &var)
static void setValueFromVariable (const std::string name, ImageVariable< hugin_utils::FDiff2D > &var, const double value)
static void addToVariableMap (const ImageVariable< hugin_utils::FDiff2D > &var, VariableMap &map)


Detailed Description

template<char code_x1, char code_y1, char code_x2 = '\0', char code_y2 = '\0'>
class HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >

Object to group conversion functions for PTO format variables representing a hugin_utils::FDiff2D variable in SrcPanoImg.

Each element must have a pto file format code that is 1 or 2 characters in length.

code_x The PTO format code that matches the x memeber in the FDiff2D. code_y The PTO format code that matches the y memeber in the FDiff2D.

Definition at line 241 of file ImageVariableTranslate.h.


Member Function Documentation

template<char code_x1, char code_y1, char code_x2 = '\0', char code_y2 = '\0'>
static void HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::addToVariableMap ( const ImageVariable< hugin_utils::FDiff2D > &  var,
VariableMap map 
) [inline, static]

Definition at line 265 of file ImageVariableTranslate.h.

References HuginBase::ImageVariable< Type >::getData(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

template<char code_x1, char code_y1, char code_x2 = '\0', char code_y2 = '\0'>
static bool HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::checkApplicability ( const std::string  name  )  [inline, static]

Definition at line 244 of file ImageVariableTranslate.h.

template<char code_x1, char code_y1, char code_x2 = '\0', char code_y2 = '\0'>
static double HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::getValueFromVariable ( const std::string  name,
const ImageVariable< hugin_utils::FDiff2D > &  var 
) [inline, static]

Definition at line 251 of file ImageVariableTranslate.h.

References HuginBase::ImageVariable< Type >::getData(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

template<char code_x1, char code_y1, char code_x2 = '\0', char code_y2 = '\0'>
static void HuginBase::PTOVariableConverterFDiff2D< code_x1, code_y1, code_x2, code_y2 >::setValueFromVariable ( const std::string  name,
ImageVariable< hugin_utils::FDiff2D > &  var,
const double  value 
) [inline, static]

Definition at line 257 of file ImageVariableTranslate.h.

References HuginBase::ImageVariable< Type >::getData(), HuginBase::ImageVariable< Type >::setData(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.


The documentation for this class was generated from the following file:
Generated on 24 Nov 2014 for Hugintrunk by  doxygen 1.4.7