Hugintrunk
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 More... | |
void | unlinkVariablePart (ImageVariableEnum variable, unsigned int partNr) |
unlink one of the variables across a given part. More... | |
void | unlinkVariableImage (ImageVariableEnum variable, unsigned int imageNr) |
unlink one the variables across the part containing a given image. More... | |
void | linkVariablePart (ImageVariableEnum variable, unsigned int partNr) |
link one of the variables across a given part More... | |
void | linkVariableImage (ImageVariableEnum variable, unsigned int imageNr) |
link one of the variables across a part containing a given image More... | |
void | switchParts (unsigned int ImageNr, unsigned int partNr) |
switch a given image to a different part number. More... | |
Public Member Functions inherited from HuginBase::ConstImageVariableGroup | |
ConstImageVariableGroup (std::set< ImageVariableEnum > variables, const PanoramaData &pano) | |
constructor More... | |
virtual | ~ConstImageVariableGroup () |
destructor More... | |
unsigned int | getPartNumber (unsigned int imageNr) const |
Get a part number from an image number. More... | |
UIntSetVector | getPartsSet () const |
return a vector which contains a HuginBase::UIntSet for each group with the corresponding images numbers More... | |
std::size_t | getNumberOfParts () const |
get the number of parts. More... | |
bool | getVarLinkedInPart (ImageVariableEnum variable, std::size_t part) const |
Get the linked status of a particular variable for a given part number. More... | |
void | updatePartNumbers () |
Update the part numbers, call this when the panorama changes. More... | |
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. More... | |
Protected Attributes inherited from HuginBase::ConstImageVariableGroup | |
std::set< ImageVariableEnum > | m_variables |
The set of variables which make up this group. More... | |
const PanoramaData & | m_pano |
The panorama this group works on. More... | |
std::vector< unsigned int > | m_image_part_numbers |
The part numbers for each image. More... | |
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(), and HuginBase::ConstImageVariableGroup::m_image_part_numbers.
Referenced by PanoCommand::ChangePartImagesLinkingCmd::processPanorama().
void HuginBase::ImageVariableGroup::linkVariablePart | ( | ImageVariableEnum | variable, |
unsigned int | partNr | ||
) |
link one of the variables across a given part
Referenced by linkVariableImage(), main(), PanoCommand::LinkLensVarsCmd::processPanorama(), and HuginBase::SmartOptimise::smartOptimize().
void HuginBase::ImageVariableGroup::switchParts | ( | unsigned int | ImageNr, |
unsigned int | partNr | ||
) |
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.
Referenced by PossiblePano::GeneratePanorama(), LensCalFrame::GetPanorama(), main(), main2(), processImg(), PanoCommand::wxAddImagesCmd::processPanorama(), PanoCommand::wxApplyTemplateCmd::processPanorama(), and PanoCommand::ChangePartNumberCmd::processPanorama().
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, and unlinkVariablePart().
Referenced by PanoCommand::ChangePartImagesLinkingCmd::processPanorama().
void HuginBase::ImageVariableGroup::unlinkVariablePart | ( | ImageVariableEnum | variable, |
unsigned int | partNr | ||
) |
unlink one of the variables across a given part.
Referenced by processImg(), and unlinkVariableImage().
|
private |
Definition at line 192 of file ImageVariableGroup.h.