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:

Go to the source code of this file.

Namespaces

namespace  HuginBase

Defines

#define image_variable(name, type, default_value)

Variables

const ConstImageVariableGroup::ImageVariableEnum HuginBase::lens_variables_array []
 The image variables that are specific to lenses.
const std::set< ConstImageVariableGroup::ImageVariableEnum > HuginBase::lens_variables_set
 A set containing the lens image variables.
const ConstImageVariableGroup::ImageVariableEnum HuginBase::stack_variables_array []
 The image variables that are specific to stack.
const std::set< ConstImageVariableGroup::ImageVariableEnum > HuginBase::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

Definition in file StandardImageVariableGroups.cpp.


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());\
            }\
        }\
    }


Generated on 28 Nov 2014 for Hugintrunk by  doxygen 1.4.7