|
Hugin trunk 0.1
|
Same as above, but use a non const panorama. More...
#include <ImageVariableGroup.h>

Public Member Functions | |
| ImageVariableGroup (std::set< ImageVariableEnum > variables, PanoramaData &pano) | |
| constructor | |
| void | unlinkVariablePart (ImageVariableEnum variable, unsigned int partNr) |
| unlink one of the variables across a given part. | |
| void | unlinkVariableImage (ImageVariableEnum variable, unsigned int imageNr) |
| unlink one the variables across the part containing a given image. | |
| void | linkVariablePart (ImageVariableEnum variable, unsigned int partNr) |
| link one of the variables across a given part | |
| void | linkVariableImage (ImageVariableEnum variable, unsigned int imageNr) |
| link one of the variables across a part containing a given image | |
| void | switchParts (unsigned int ImageNr, unsigned int partNr) |
| switch a given image to a different part number. | |
Public Member Functions inherited from HuginBase::ConstImageVariableGroup | |
| ConstImageVariableGroup (std::set< ImageVariableEnum > variables, const PanoramaData &pano) | |
| constructor | |
| virtual | ~ConstImageVariableGroup () |
| destructor | |
| unsigned int | getPartNumber (unsigned int imageNr) const |
| Get a part number from an image number. | |
| UIntSetVector | getPartsSet () const |
| return a vector which contains a HuginBase::UIntSet for each group with the corresponding images numbers | |
| std::size_t | getNumberOfParts () const |
| get the number of parts. | |
| bool | getVarLinkedInPart (ImageVariableEnum variable, std::size_t part) const |
| Get the linked status of a particular variable for a given part number. | |
| void | updatePartNumbers () |
| Update the part numbers, call this when the panorama changes. | |
Private Attributes | |
| PanoramaData & | m_pano |
Additional Inherited Members | |
Public Types inherited from HuginBase::ConstImageVariableGroup | |
| enum | ImageVariableEnum |
Protected Member Functions inherited from HuginBase::ConstImageVariableGroup | |
| void | setPartNumbers () |
| Set the part numbers in m_image_part_numbers, and notify observers of changes. | |
Protected Attributes inherited from HuginBase::ConstImageVariableGroup | |
| std::set< ImageVariableEnum > | m_variables |
| The set of variables which make up this group. | |
| const PanoramaData & | m_pano |
| The panorama this group works on. | |
| std::vector< unsigned int > | m_image_part_numbers |
| The part numbers for each image. | |
| unsigned int | m_num_parts |
Same as above, but use a non const panorama.
This can be used for changing part numbers and linking and unlink of variables.
Definition at line 145 of file ImageVariableGroup.h.
|
inline |
constructor
Assign the ImageVariableGroup the image variables and the panorama that it should be handling.
Definition at line 153 of file ImageVariableGroup.h.
| void HuginBase::ImageVariableGroup::linkVariableImage | ( | ImageVariableEnum | variable, |
| unsigned int | imageNr | ||
| ) |
link one of the variables across a part containing a given image
Definition at line 171 of file ImageVariableGroup.cpp.
References linkVariablePart(), HuginBase::ConstImageVariableGroup::m_image_part_numbers, and threshold().
| void HuginBase::ImageVariableGroup::linkVariablePart | ( | ImageVariableEnum | variable, |
| unsigned int | partNr | ||
| ) |
link one of the variables across a given part
Definition at line 138 of file ImageVariableGroup.cpp.
References DEBUG_ASSERT, HuginBase::ConstImageVariableGroup::m_image_part_numbers, HuginBase::ConstImageVariableGroup::m_variables, HuginBase::ConstImageVariableGroup::setPartNumbers(), and threshold().
Referenced by linkVariableImage(), main(), and PanoCommand::LinkLensVarsCmd::processPanorama().
switch a given image to a different part number.
The part numbers may change after this call, so it not necessarily the case that the image has the given part number, but it is the case that the part the image is in after the call has the properties of the part specified as it was just before the call.
Definition at line 177 of file ImageVariableGroup.cpp.
References DEBUG_ERROR, DEBUG_TRACE, HuginBase::PanoramaData::imageChanged(), HuginBase::ConstImageVariableGroup::m_image_part_numbers, HuginBase::ConstImageVariableGroup::m_num_parts, m_pano, HuginBase::ConstImageVariableGroup::m_variables, HuginBase::ConstImageVariableGroup::setPartNumbers(), and threshold().
Referenced by PossiblePano::GeneratePanorama().
| void HuginBase::ImageVariableGroup::unlinkVariableImage | ( | ImageVariableEnum | variable, |
| unsigned int | imageNr | ||
| ) |
unlink one the variables across the part containing a given image.
Definition at line 132 of file ImageVariableGroup.cpp.
References HuginBase::ConstImageVariableGroup::m_image_part_numbers, threshold(), and unlinkVariablePart().
| void HuginBase::ImageVariableGroup::unlinkVariablePart | ( | ImageVariableEnum | variable, |
| unsigned int | partNr | ||
| ) |
unlink one of the variables across a given part.
Definition at line 108 of file ImageVariableGroup.cpp.
References DEBUG_ASSERT, HuginBase::ConstImageVariableGroup::m_image_part_numbers, HuginBase::ConstImageVariableGroup::m_variables, HuginBase::ConstImageVariableGroup::setPartNumbers(), and threshold().
Referenced by unlinkVariableImage().
|
private |
Definition at line 192 of file ImageVariableGroup.h.
Referenced by switchParts().