[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin_base/panodata/StandardImageVariableGroups.cpp File Reference

Implement the StandardImageVariableGroups object. More...

#include <set>
#include "StandardImageVariableGroups.h"
#include "hugin_utils/utils.h"
#include "hugin_utils/stl_utils.h"
#include "ImageVariableTranslate.h"
#include "image_variables.h"

Include dependency graph for StandardImageVariableGroups.cpp:

Include dependency graph

Namespaces

namespace  HuginBase

Defines

#define image_variable(name, type, default_value)

Variables

const ConstImageVariableGroup::ImageVariableEnum lens_variables_array []
 The image variables that are specific to lenses.
const std::set< ConstImageVariableGroup::ImageVariableEnum > lens_variables_set
 A set containing the lens image variables.
const ConstImageVariableGroup::ImageVariableEnum stack_variables_array []
 The image variables that are specific to stack.
const std::set< ConstImageVariableGroup::ImageVariableEnum > stack_variables_set
 A set containing the stack image variables.

Detailed Description

Implement the StandardImageVariableGroups object.

Author:
James Legg

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Define Documentation

#define image_variable name,
type,
default_value   ) 
 

Value:

{\
        VariableMap temp_vars;\
        if (set_contains(lens_variables_set, ImageVariableGroup::IVE_##name))\
        {\
            PTOVariableConverterFor##name::addToVariableMap(image.get##name##IV(), temp_vars);\
            for (VariableMap::iterator tvi = temp_vars.begin(); tvi != temp_vars.end(); tvi++)\
            {\
                LensVariable & lens_var = map_get(result.variables, tvi->first);\
                lens_var.setValue(tvi->second.getValue());\
                lens_var.setLinked(image.name##isLinked());\
            }\
        }\
    }


Variable Documentation

const ConstImageVariableGroup::ImageVariableEnum HuginBase::lens_variables_array[]
 

Initial value:

 {ImageVariableGroup::IVE_Size,
               ImageVariableGroup::IVE_Projection,
               ImageVariableGroup::IVE_HFOV,
               ImageVariableGroup::IVE_ResponseType,
               ImageVariableGroup::IVE_EMoRParams,
               ImageVariableGroup::IVE_ExposureValue,
               ImageVariableGroup::IVE_Gamma,
               ImageVariableGroup::IVE_WhiteBalanceRed,
               ImageVariableGroup::IVE_WhiteBalanceBlue,
               ImageVariableGroup::IVE_RadialDistortion,
               ImageVariableGroup::IVE_RadialDistortionRed,
               ImageVariableGroup::IVE_RadialDistortionBlue,
               ImageVariableGroup::IVE_RadialDistortionCenterShift,
               ImageVariableGroup::IVE_Shear,
               ImageVariableGroup::IVE_VigCorrMode,
               ImageVariableGroup::IVE_FlatfieldFilename,
               ImageVariableGroup::IVE_RadialVigCorrCoeff,
               ImageVariableGroup::IVE_RadialVigCorrCenterShift
            }
The image variables that are specific to lenses.

These are by default linked across images in the same lens.

If you wish to change this, you'll need to set the ending offset in lens_variables_set below.

const std::set<ConstImageVariableGroup::ImageVariableEnum> HuginBase::lens_variables_set
 

Initial value:

    std::set<ConstImageVariableGroup::ImageVariableEnum>(lens_variables_array,
                                                         lens_variables_array + 18)
A set containing the lens image variables.

the offset on the second construtor argument is the size of the array.

const ConstImageVariableGroup::ImageVariableEnum HuginBase::stack_variables_array[]
 

Initial value:

 {ImageVariableGroup::IVE_Yaw,
               ImageVariableGroup::IVE_Pitch,
               ImageVariableGroup::IVE_Roll,
               ImageVariableGroup::IVE_Stack,
               ImageVariableGroup::IVE_X,
               ImageVariableGroup::IVE_Y,
               ImageVariableGroup::IVE_Z
            }
The image variables that are specific to stack.

These are by default linked across images in the same stack.

If you wish to change this, you'll need to set the ending offset in stack_variables_set below.

const std::set<ConstImageVariableGroup::ImageVariableEnum> HuginBase::stack_variables_set
 

Initial value:

    std::set<ConstImageVariableGroup::ImageVariableEnum>(stack_variables_array,
                                                         stack_variables_array + 7)
A set containing the stack image variables.

the offset on the second construtor argument is the size of the array.


Generated on Mon Sep 20 01:01:31 2010 for Hugintrunk by doxygen 1.3.9.1