HuginBase::PTOVariableConverterVectorChar< base_code, T, size > Class Template Reference

Object to group conversion functions for PTO format variables representing a std::vector variable in SrcPanoImg, using an identifying first character. More...

#include <ImageVariableTranslate.h>

List of all members.

Static Public Member Functions

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


Detailed Description

template<char base_code, class T = double, size_t size = 4>
class HuginBase::PTOVariableConverterVectorChar< base_code, T, size >

Object to group conversion functions for PTO format variables representing a std::vector variable in SrcPanoImg, using an identifying first character.

It can only represent PTO format variables that can be expressed as some constant character followed by a index character, where the first element of the vector has the index character 'a' and the others follow in order.

base_code string used in PTO file format upto the the character. T type used in SrcImageVariable. Should really be double, but could be float or something. size The number of letters and the size of the vector.

Definition at line 162 of file ImageVariableTranslate.h.


Member Function Documentation

template<char base_code, class T = double, size_t size = 4>
void HuginBase::PTOVariableConverterVectorChar< base_code, T, size >::addToVariableMap const ImageVariable< std::vector< T > > &  var,
VariableMap map
[inline, static]
 

Definition at line 182 of file ImageVariableTranslate.h.

template<char base_code, class T = double, size_t size = 4>
bool HuginBase::PTOVariableConverterVectorChar< base_code, T, size >::checkApplicability const std::string  name  )  [inline, static]
 

Definition at line 165 of file ImageVariableTranslate.h.

template<char base_code, class T = double, size_t size = 4>
double HuginBase::PTOVariableConverterVectorChar< base_code, T, size >::getValueFromVariable const std::string  name,
const ImageVariable< std::vector< T > > &  var
[inline, static]
 

Definition at line 170 of file ImageVariableTranslate.h.

References HuginBase::ImageVariable< Type >::getData().

template<char base_code, class T = double, size_t size = 4>
void HuginBase::PTOVariableConverterVectorChar< base_code, T, size >::setValueFromVariable const std::string  name,
ImageVariable< std::vector< T > > &  var,
const double  value
[inline, static]
 

Definition at line 175 of file ImageVariableTranslate.h.

References HuginBase::ImageVariable< Type >::getData(), and HuginBase::ImageVariable< Type >::setData().


The documentation for this class was generated from the following file:
Generated on Wed Jul 16 01:25:51 2014 for Hugintrunk by  doxygen 1.3.9.1