ImageVariableGroup.cpp File Reference

Implement the ImageVariableGroup class. More...

#include <hugin_utils/utils.h>
#include "ImageVariableGroup.h"
#include "image_variables.h"

Include dependency graph for ImageVariableGroup.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  HuginBase

Defines

#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)
#define image_variable(name, type, default_value)


Detailed Description

Implement the ImageVariableGroup class.

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 ImageVariableGroup.cpp.


Define Documentation

#define image_variable name,
type,
default_value   ) 
 

Value:

case IVE_##name:\
                        if (m_pano.getImage(i).name##isLinkedWith(m_pano.getImage(parts_first_image[j]))) \
                            part_number = j;\
                        break;

#define image_variable name,
type,
default_value   ) 
 

Value:

case IVE_##name: \
                m_pano.linkImageVariable##name(part_image_index, imageNr);\
                break;

#define image_variable name,
type,
default_value   ) 
 

Value:

case IVE_##name: \
                m_pano.unlinkImageVariable##name(imageNr);\
                break;

#define image_variable name,
type,
default_value   ) 
 

Value:

case IVE_##name: \
                if(m_pano.getImage(part_image_index).name##isLinked())\
                {\
                    linked_variables.insert(IVE_##name);\
                }\
            break;

#define image_variable name,
type,
default_value   ) 
 

Value:

case IVE_##name:\
                    m_pano.linkImageVariable##name(first_image_number, i);\
                    break;

#define image_variable name,
type,
default_value   ) 
 

Value:

case IVE_##name:\
                    m_pano.unlinkImageVariable##name(i);\
                    break;

#define image_variable name,
type,
default_value   ) 
 

Value:

case IVE_##name:\
            for (std::size_t imageNr = 0; imageNr < m_pano.getNrOfImages(); imageNr++)\
            {\
                if (m_image_part_numbers[imageNr] == part)\
                {\
                    if (!found_first)\
                    {\
                        found_first = true;\
                        if (m_pano.getImage(imageNr).name##isLinked())\
                        {\
                            return true;\
                        }\
                    } else {\
                        return false;\
                    }\
                }\
            }\
            break;


Generated on Thu Jul 31 01:25:46 2014 for Hugintrunk by  doxygen 1.3.9.1