[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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.

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.


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.


Member Function Documentation

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

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

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

link one of the variables across a given part

Note:
This file is #included multiple times after defining a macro for image_variable. The idea is to reduce the amount of tedoius code copy & pasted for each image variable. The list will be used to generate things the following:
  1. Member variables: ImageVarianle<[type]> m_[name];
  2. Accessor functions: [type] get[name]() const;
  3. Set functions: void set[name](const [type] data);
  4. Link functions: void link[name](SrcPanoImg)
  5. Unlink functions: void unlink[name]();
The arguments work as follows:
  1. the name of the variable
  2. the type of the variable
  3. the default value
There is some non automatic stuff in ImageVariableTranslate.h that will need changing if this list changes. That file handles the translation to and from PTO file format style variables.
See also:
ImageVariableTranslate.h

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.

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

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

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

unlink one of the variables across a given part.

Note:
This file is #included multiple times after defining a macro for image_variable. The idea is to reduce the amount of tedoius code copy & pasted for each image variable. The list will be used to generate things the following:
  1. Member variables: ImageVarianle<[type]> m_[name];
  2. Accessor functions: [type] get[name]() const;
  3. Set functions: void set[name](const [type] data);
  4. Link functions: void link[name](SrcPanoImg)
  5. Unlink functions: void unlink[name]();
The arguments work as follows:
  1. the name of the variable
  2. the type of the variable
  3. the default value
There is some non automatic stuff in ImageVariableTranslate.h that will need changing if this list changes. That file handles the translation to and from PTO file format style variables.
See also:
ImageVariableTranslate.h


The documentation for this class was generated from the following files:

Generated on Mon Sep 20 01:01:36 2010 for Hugintrunk by doxygen 1.3.9.1