Hugintrunk
0.1
|
Make an ImageVariableGroup for lenses and other common concepts. More...
#include <StandardImageVariableGroups.h>
Public Member Functions | |
ConstStandardImageVariableGroups (const PanoramaData &pano) | |
constructor. More... | |
ConstImageVariableGroup & | getLenses () |
Get the ImageVariableGroup representing the group of lens variables. More... | |
Lens | getLens (std::size_t lens_number) |
A panorama.getLens equivalent, not for new code. More... | |
Lens | getLensForImage (std::size_t imgNr) |
Get the lens object for a specific image, also not for new code. More... | |
ConstImageVariableGroup & | getStacks () |
Get the ImageVariableGroup representing the group of stack variables. More... | |
void | update () |
Update part numbers for each variable group. More... | |
Static Public Member Functions | |
static const std::set < ConstImageVariableGroup::ImageVariableEnum > & | getLensVariables () |
Get the set of lens image variables. More... | |
static const std::set < ConstImageVariableGroup::ImageVariableEnum > & | getStackVariables () |
Get the set of stack image variables. More... | |
Protected Attributes | |
ConstImageVariableGroup | m_lenses |
the lens ImageVariableGroup. More... | |
ConstImageVariableGroup | m_stacks |
the stack ImageVariableGroup. More... | |
const PanoramaData & | m_pano |
Make an ImageVariableGroup for lenses and other common concepts.
Must be given a const panorama when created, this panorama remains with the object its entire life, but will never be changed by the StandardImageVariableGroups object. It can still react to changes in the panorama, to update part numbers use UpdatePartNumbers().
Definition at line 43 of file StandardImageVariableGroups.h.
|
explicit |
constructor.
creates ImageVariableGroups for lenses, etc.
pano | The panorama data to use for the lenses, etc. |
Definition at line 92 of file StandardImageVariableGroups.cpp.
Lens HuginBase::ConstStandardImageVariableGroups::getLens | ( | std::size_t | lens_number | ) |
A panorama.getLens equivalent, not for new code.
This is a temporary solution to replace code that used Panorama.getLens. It will generate a lens on the spot using the SrcPanoImg object. New code should instead use the ImageVariableGroup returned by getLenses(), as it does not generate the lens object on the fly.
lens_number | the number of the lens. |
Definition at line 111 of file StandardImageVariableGroups.cpp.
References DEBUG_ASSERT, DEBUG_ERROR, getLensForImage(), HuginBase::PanoramaData::getNrOfImages(), HuginBase::ConstImageVariableGroup::getNumberOfParts(), HuginBase::ConstImageVariableGroup::getPartNumber(), m_lenses, and m_pano.
Referenced by PanoOperation::ChangeLensOperation::GetInternalCommand().
|
inline |
Get the ImageVariableGroup representing the group of lens variables.
Use this to manipulate lens variable links, and to find lens numbers.
Definition at line 58 of file StandardImageVariableGroups.h.
Referenced by main(), OptimizePhotometricPanel::runOptimizer(), HuginBase::LensDB::SaveLensDataFromPano(), MaskEditorPanel::UpdateCrop(), and HuginBase::Panorama::updateMasks().
Lens HuginBase::ConstStandardImageVariableGroups::getLensForImage | ( | std::size_t | imgNr | ) |
Get the lens object for a specific image, also not for new code.
Called by getLens.
imgNr | the number of the image to generate a Lens object for. |
Referenced by getLens(), and SaveLensParameters().
|
static |
Get the set of lens image variables.
Definition at line 100 of file StandardImageVariableGroups.cpp.
References HuginBase::lens_variables_set.
Referenced by ApplyLensDBParameters(), PanoOperation::NewLensOperation::GetInternalCommand(), PanoOperation::ChangeLensOperation::GetInternalCommand(), Papywizard::ImportPapywizardFile(), main(), ImagesTreeCtrl::OnContextMenu(), ImagesTreeCtrl::OnLeftUp(), and ImagesTreeCtrl::UnLinkImageVariables().
|
inline |
Get the ImageVariableGroup representing the group of stack variables.
Use this to manipulate angle links, and to find stack numbers.
Definition at line 99 of file StandardImageVariableGroups.h.
Referenced by HuginBase::getHDRStacks(), HuginBase::getSortedStacks(), and main().
|
static |
Get the set of stack image variables.
Definition at line 106 of file StandardImageVariableGroups.cpp.
References HuginBase::stack_variables_set.
Referenced by PanoOperation::NewStackOperation::GetInternalCommand(), PanoOperation::ChangeStackOperation::GetInternalCommand(), PanoOperation::AssignStacksOperation::GetInternalCommand(), Papywizard::ImportPapywizardFile(), main(), ImagesTreeCtrl::OnLeftUp(), and ImagesTreeCtrl::UnLinkImageVariables().
void HuginBase::ConstStandardImageVariableGroups::update | ( | ) |
Update part numbers for each variable group.
Should be called when the panorama images change
Definition at line 163 of file StandardImageVariableGroups.cpp.
References m_lenses, m_stacks, and HuginBase::ConstImageVariableGroup::updatePartNumbers().
Referenced by MaskEditorPanel::panoramaImagesChanged(), and HuginBase::StandardImageVariableGroups::update().
|
protected |
the lens ImageVariableGroup.
Definition at line 119 of file StandardImageVariableGroups.h.
|
protected |
Definition at line 127 of file StandardImageVariableGroups.h.
Referenced by getLens().
|
protected |
the stack ImageVariableGroup.
Definition at line 125 of file StandardImageVariableGroups.h.
Referenced by update().