Hugintrunk
0.1
|
Memento class for a Panorama object. More...
#include <Panorama.h>
Public Member Functions | |
PanoramaMemento () | |
PanoramaMemento (const PanoramaMemento &o) | |
copy ctor. More... | |
PanoramaMemento & | operator= (const PanoramaMemento &o) |
assignment operator More... | |
virtual | ~PanoramaMemento () |
bool | loadPTScript (std::istream &i, int &ptoVersion, const std::string &prefix="") |
load a Hugin file More... | |
Public Member Functions inherited from HuginBase::PanoramaDataMemento | |
virtual | ~PanoramaDataMemento () |
Private Types | |
enum | PTParseState { P_NONE, P_OUTPUT, P_MODIFIER, P_IMAGE, P_OPTIMIZE, P_CP } |
Private Member Functions | |
void | deleteAllImages () |
Private Attributes | |
std::vector< SrcPanoImage * > | images |
The images inside the panorama. More... | |
std::string | iccProfileDesc |
description of the icc profile More... | |
int | bands = 0 |
number of bands of first image (without alpha channel), currently we can't mix grayscale and RGB images More... | |
CPVector | ctrlPoints |
PanoramaOptions | options |
OptimizeVector | optvec |
int | optSwitch |
stores the optimizer switch, use OR of HuginBase::OptimizerSwitches More... | |
int | optPhotoSwitch |
stores the photometric optimizer switch, use OR of HuginBase::OptimizerSwitches More... | |
bool | needsOptimization |
Friends | |
class | Panorama |
Additional Inherited Members | |
Protected Member Functions inherited from HuginBase::PanoramaDataMemento | |
PanoramaDataMemento () | |
force pure abstract behaviour More... | |
Memento class for a Panorama object.
Holds the internal state of a Panorama. Used when other objects need to get/set the state without knowing anything about the internals.
Definition at line 49 of file Panorama.h.
|
private |
Enumerator | |
---|---|
P_NONE | |
P_OUTPUT | |
P_MODIFIER | |
P_IMAGE | |
P_OPTIMIZE | |
P_CP |
Definition at line 74 of file Panorama.h.
|
inline |
Definition at line 55 of file Panorama.h.
HuginBase::PanoramaMemento::PanoramaMemento | ( | const PanoramaMemento & | o | ) |
|
virtual |
Definition at line 2305 of file Panorama.cpp.
References deleteAllImages().
|
private |
Definition at line 2310 of file Panorama.cpp.
References images.
Referenced by HuginBase::Panorama::reset(), and ~PanoramaMemento().
bool HuginBase::PanoramaMemento::loadPTScript | ( | std::istream & | i, |
int & | ptoVersion, | ||
const std::string & | prefix = "" |
||
) |
load a Hugin file
initializes the PanoramaMemento from a script file
Referenced by RunStitchPanel::DetectProject(), MainFrame::OnMergeProject(), iCPApp::OnRun(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), PanoCommand::wxApplyTemplateCmd::processPanorama(), Project::ReadOptions(), GenerateSequenceDialog::ReadPTOFile(), HuginBase::Panorama::ReadPTOFile(), AutoCtrlPointCreator::readUpdatedControlPoints(), and RunStitchPanel::StitchProject().
PanoramaMemento& HuginBase::PanoramaMemento::operator= | ( | const PanoramaMemento & | o | ) |
assignment operator
|
friend |
Definition at line 52 of file Panorama.h.
|
private |
number of bands of first image (without alpha channel), currently we can't mix grayscale and RGB images
Definition at line 95 of file Panorama.h.
Referenced by HuginBase::Panorama::getNrOfBands(), and HuginBase::Panorama::setNrOfBands().
|
private |
Definition at line 97 of file Panorama.h.
Referenced by HuginBase::Panorama::addCtrlPoint(), HuginBase::Panorama::changeControlPoint(), HuginBase::Panorama::getCtrlPointsForImage(), HuginBase::Panorama::getCtrlPointsVectorForImage(), HuginBase::Panorama::getNextCPTypeLineNumber(), HuginBase::Panorama::moveImage(), HuginBase::Panorama::removeCtrlPoint(), HuginBase::Panorama::removeDuplicateCtrlPoints(), HuginBase::Panorama::removeImage(), HuginBase::Panorama::reset(), HuginBase::Panorama::setCtrlPoints(), HuginBase::Panorama::swapImages(), HuginBase::Panorama::updateCtrlPointErrors(), and HuginBase::Panorama::updateLineCtrlPoints().
|
private |
description of the icc profile
Definition at line 92 of file Panorama.h.
Referenced by HuginBase::Panorama::getICCProfileDesc(), and HuginBase::Panorama::setICCProfileDesc().
|
private |
The images inside the panorama.
The image variables are stored inside. We use pointers to the real objects so that the memory addresses of them remain constant when we remove and swap the order of images. We should create and free images when necessary.
Definition at line 90 of file Panorama.h.
Referenced by HuginBase::Panorama::activateImage(), HuginBase::Panorama::addImage(), HuginBase::Panorama::centerCrop(), HuginBase::Panorama::centerCropImage(), HuginBase::Panorama::changeFinished(), deleteAllImages(), HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getImageVariables(), HuginBase::Panorama::getMaxExposureDifference(), HuginBase::Panorama::getSrcImage(), HuginBase::Panorama::getVariables(), HuginBase::Panorama::hasPossibleStacks(), HuginBase::Panorama::linkPossibleStacks(), HuginBase::Panorama::moveImage(), HuginBase::Panorama::printStitcherScript(), HuginBase::Panorama::removeImage(), HuginBase::Panorama::setImageFilename(), HuginBase::Panorama::setMemento(), HuginBase::Panorama::setOptimizeVector(), HuginBase::Panorama::swapImages(), HuginBase::Panorama::transferMask(), HuginBase::Panorama::UpdateCropFactor(), HuginBase::Panorama::updateCropMode(), HuginBase::Panorama::UpdateFocalLength(), HuginBase::Panorama::updateMasks(), HuginBase::Panorama::updateMasksForImage(), HuginBase::Panorama::updateOptimizeVector(), HuginBase::Panorama::updateVariables(), and HuginBase::Panorama::updateWhiteBalance().
|
private |
Definition at line 110 of file Panorama.h.
Referenced by HuginBase::Panorama::addCtrlPoint(), HuginBase::Panorama::changeControlPoint(), HuginBase::Panorama::removeCtrlPoint(), HuginBase::Panorama::reset(), and HuginBase::Panorama::setCtrlPoints().
|
private |
Definition at line 99 of file Panorama.h.
Referenced by HuginBase::Panorama::moveImage(), HuginBase::Panorama::removeImage(), HuginBase::Panorama::reset(), HuginBase::Panorama::setOptions(), HuginBase::Panorama::swapImages(), and HuginBase::Panorama::updateOptimizeVector().
|
private |
stores the photometric optimizer switch, use OR of HuginBase::OptimizerSwitches
Definition at line 105 of file Panorama.h.
Referenced by HuginBase::Panorama::reset(), HuginBase::Panorama::setPhotometricOptimizerSwitch(), and HuginBase::Panorama::updateOptimizeVector().
|
private |
stores the optimizer switch, use OR of HuginBase::OptimizerSwitches
Definition at line 103 of file Panorama.h.
Referenced by HuginBase::Panorama::reset(), HuginBase::Panorama::setOptimizerSwitch(), and HuginBase::Panorama::updateOptimizeVector().
|
private |
Definition at line 101 of file Panorama.h.
Referenced by HuginBase::Panorama::addImage(), HuginBase::Panorama::moveImage(), HuginBase::Panorama::removeImage(), HuginBase::Panorama::reset(), HuginBase::Panorama::setOptimizeVector(), and HuginBase::Panorama::updateOptimizeVector().