HuginBase::ImageVariableGroup Class Reference

Same as above, but use a non const panorama. More...

#include <ImageVariableGroup.h>

Inheritance diagram for HuginBase::ImageVariableGroup:

Inheritance graph
[legend]
List of all members.

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.

Private Attributes

PanoramaDatam_pano
 The panorama this group works on.

Detailed Description

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 299 of file ImageVariableGroup.h.


Constructor & Destructor Documentation

HuginBase::ImageVariableGroup::ImageVariableGroup std::set< ImageVariableEnum variables,
PanoramaData pano
[inline]
 

constructor

Assign the ImageVariableGroup the image variables and the panorama that it should be handling.

Definition at line 307 of file ImageVariableGroup.h.


Member Function Documentation

void HuginBase::ImageVariableGroup::linkVariableImage ImageVariableEnum  variable,
unsigned int  imageNr
 

link one of the variables across a part containing a given image

Definition at line 632 of file ImageVariableGroup.cpp.

Referenced by PT::ChangePartImagesLinkingCmd::processPanorama(), and UnLinkVars().

void HuginBase::ImageVariableGroup::linkVariablePart ImageVariableEnum  variable,
unsigned int  partNr
 

link one of the variables across a given part

Definition at line 442 of file ImageVariableGroup.cpp.

Referenced by main(), PT::LinkLensVarsCmd::processPanorama(), PT::wxLoadPTProjectCmd::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.

Note:
When switching part numbers, Variables are linked by default, unless the variable is unlinked across multiple images in the part specified, in which case those variables are unlinked in the new member of that part.

Definition at line 638 of file ImageVariableGroup.cpp.

Referenced by PossiblePano::GeneratePanorama(), LensCalFrame::GetPanorama(), main(), main2(), processImg(), PT::ChangePartNumberCmd::processPanorama(), PT::wxApplyTemplateCmd::processPanorama(), and PT::wxAddImagesCmd::processPanorama().

void HuginBase::ImageVariableGroup::unlinkVariableImage ImageVariableEnum  variable,
unsigned int  imageNr
 

unlink one the variables across the part containing a given image.

Definition at line 436 of file ImageVariableGroup.cpp.

Referenced by PossiblePano::GeneratePanorama(), LensCalFrame::GetPanorama(), main(), PT::ChangePartImagesLinkingCmd::processPanorama(), PT::wxAddImagesCmd::processPanorama(), and UnLinkVars().

void HuginBase::ImageVariableGroup::unlinkVariablePart ImageVariableEnum  variable,
unsigned int  partNr
 

unlink one of the variables across a given part.

Definition at line 255 of file ImageVariableGroup.cpp.

References HuginBase::ConstImageVariableGroup::setPartNumbers().

Referenced by processImg().


Member Data Documentation

PanoramaData& HuginBase::ImageVariableGroup::m_pano [private]
 

The panorama this group works on.

Reimplemented from HuginBase::ConstImageVariableGroup.

Definition at line 346 of file ImageVariableGroup.h.


The documentation for this class was generated from the following files:
Generated on Wed Jul 30 01:25:55 2014 for Hugintrunk by  doxygen 1.3.9.1