Hugintrunk
0.1
|
#include <PanoramaData.h>
Public Member Functions | |
virtual | ~ManagedPanoramaData () |
virtual void | addObserver (PanoramaObserver *o)=0 |
add a panorama observer. More... | |
virtual bool | removeObserver (PanoramaObserver *observer)=0 |
remove a panorama observer. More... | |
virtual void | clearObservers ()=0 |
remove all panorama observers. More... | |
virtual void | changeFinished ()=0 |
notify observers about changes in this class More... | |
virtual void | clearDirty ()=0 |
clear dirty flag. More... | |
virtual void | imageChanged (unsigned int imgNr)=0 |
mark image for change notification. More... | |
virtual PanoramaDataMemento * | getNewMemento () const =0 |
get the internal state More... | |
virtual bool | setMementoToCopyOf (const PanoramaDataMemento *const memento)=0 |
set the internal state More... | |
virtual bool | needsOptimization ()=0 |
true if control points or lens variables have been changed after the last optimisation More... | |
virtual void | markAsOptimized (bool optimized=true)=0 |
Public Member Functions inherited from HuginBase::PanoramaData | |
virtual | ~PanoramaData () |
virtual PanoramaData * | getNewSubset (const UIntSet &imgs) const =0 |
virtual PanoramaData * | getNewCopy () const =0 |
virtual PanoramaData * | getUnlinkedSubset (UIntSetVector &imageGroups) const =0 |
virtual std::size_t | getNrOfImages () const =0 |
number of images. More... | |
virtual const SrcPanoImage & | getImage (std::size_t nr) const =0 |
get a panorama image, counting starts with 0 More... | |
virtual void | setImage (std::size_t nr, const SrcPanoImage &img)=0 |
set a panorama image, counting starts with 0 More... | |
virtual unsigned int | addImage (const SrcPanoImage &img)=0 |
the the number for a specific image More... | |
virtual void | removeImage (unsigned int nr)=0 |
creates an image, from filename, and a Lens, if needed More... | |
virtual void | swapImages (unsigned int img1, unsigned int img2)=0 |
swap images. More... | |
virtual void | moveImage (size_t img1, size_t img2)=0 |
moves images. More... | |
virtual SrcPanoImage | getSrcImage (unsigned imgNr) const =0 |
get a complete description of a source image More... | |
virtual void | setSrcImage (unsigned int nr, const SrcPanoImage &img)=0 |
set input image parameters TODO: Propagate changes to linked images. More... | |
virtual void | setImageFilename (unsigned int img, const std::string &fname)=0 |
set a new image filename More... | |
virtual void | activateImage (unsigned int imgNr, bool active=true)=0 |
mark an image as active or inactive. More... | |
virtual UIntSet | getActiveImages () const =0 |
get active images More... | |
virtual std::size_t | getNrOfCtrlPoints () const =0 |
number of control points More... | |
virtual const ControlPoint & | getCtrlPoint (std::size_t nr) const =0 |
get a control point, counting starts with 0 More... | |
virtual const CPVector & | getCtrlPoints () const =0 |
get all control point of this Panorama More... | |
virtual std::vector< unsigned int > | getCtrlPointsForImage (unsigned int imgNr) const =0 |
return all control points for a given image. More... | |
virtual void | setCtrlPoints (const CPVector &points)=0 |
set all control points (Ippei: Is this supposed to be 'add' method?) More... | |
virtual unsigned int | addCtrlPoint (const ControlPoint &point)=0 |
add a new control point. More... | |
virtual void | removeCtrlPoint (unsigned int pNr)=0 |
remove a control point. More... | |
virtual void | removeDuplicateCtrlPoints ()=0 |
removes duplicates control points More... | |
virtual void | changeControlPoint (unsigned int pNr, const ControlPoint &point)=0 |
change a control Point. More... | |
virtual int | getNextCPTypeLineNumber () const =0 |
get the number of a control point More... | |
virtual void | updateLineCtrlPoints ()=0 |
assign new mode line numbers, if required More... | |
virtual void | updateCtrlPointErrors (const CPVector &controlPoints)=0 |
update control points distances. More... | |
virtual void | updateCtrlPointErrors (const UIntSet &imgs, const CPVector &cps)=0 |
update control points for a subset of images. More... | |
virtual VariableMapVector | getVariables () const =0 |
get variables of this panorama More... | |
virtual const VariableMap | getImageVariables (unsigned int imgNr) const =0 |
get variables of an image More... | |
virtual void | updateVariables (const VariableMapVector &vars)=0 |
Set the variables. More... | |
virtual void | updateVariables (const UIntSet &imgs, const VariableMapVector &var)=0 |
update variables for some specific images More... | |
virtual void | updateVariables (unsigned int imgNr, const VariableMap &var)=0 |
Set variables for a single picture. More... | |
virtual void | updateVariable (unsigned int imgNr, const Variable &var)=0 |
update a single variable More... | |
virtual void | updateWhiteBalance (double redFactor, double blueFactor)=0 |
update the global white balace of the panorama by multiplying the red and blue factor of each image with given factors More... | |
virtual const OptimizeVector & | getOptimizeVector () const =0 |
return the optimize settings stored inside panorama More... | |
virtual void | setOptimizeVector (const OptimizeVector &optvec)=0 |
set optimize setting More... | |
virtual const int | getOptimizerSwitch () const =0 |
returns optimizer master switch More... | |
virtual void | setOptimizerSwitch (const int newSwitch)=0 |
set optimizer master switch More... | |
virtual const int | getPhotometricOptimizerSwitch () const =0 |
return the photometric optimizer master switch More... | |
virtual void | setPhotometricOptimizerSwitch (const int newSwitch)=0 |
sets the photometric optimizer master switch More... | |
virtual const PanoramaOptions & | getOptions () const =0 |
returns the options for this panorama More... | |
virtual void | setOptions (const PanoramaOptions &opt)=0 |
set new output settings This is not used directly for optimizing/stiching, but it can be feed into runOptimizer() and runStitcher(). More... | |
virtual void | printPanoramaScript (std::ostream &o, const OptimizeVector &optvars, const PanoramaOptions &options, const UIntSet &imgs, bool forPTOptimizer, const std::string &stripPrefix="") const =0 |
create an optimizer script More... | |
virtual void | printStitcherScript (std::ostream &o, const PanoramaOptions &target, const UIntSet &imgs) const =0 |
create the stitcher script More... | |
virtual void | updateMasksForImage (unsigned int imgNr, MaskPolygonVector newMasks)=0 |
set complete mask list for image with number More... | |
virtual void | updateMasks (bool convertPosMaskToNeg=false)=0 |
updates all active masks More... | |
virtual void | transferMask (MaskPolygon mask, unsigned int imgNr, const UIntSet &targetImgs)=0 |
transfers given mask from image imgNr to all targetImgs More... | |
virtual void | updateOptimizeVector ()=0 |
updates the optimize vector according to master switches More... | |
virtual std::set< size_t > | getRefImages ()=0 |
returns set of reference image and images linked with reference images More... | |
virtual void | checkRefOptStatus (bool &linkRefImgsYaw, bool &linkRefImgsPitch, bool &linkRefImgsRoll)=0 |
checks if yaw/pitch/roll of reference image can be check, it depends on number and type of control points More... | |
Definition at line 456 of file PanoramaData.h.
|
inlinevirtual |
Definition at line 461 of file PanoramaData.h.
|
pure virtual |
add a panorama observer.
It will recieve all change messages. An observer can only be added once. if its added twice, the second addObserver() will have no effect.
Implemented in HuginBase::Panorama.
|
pure virtual |
notify observers about changes in this class
This needs to be called explicitly by somebody after changes have been made. Allows to compress multiple changes into one notification.
Implements HuginBase::PanoramaData.
Implemented in HuginBase::Panorama.
|
pure virtual |
|
pure virtual |
remove all panorama observers.
Implemented in HuginBase::Panorama.
|
pure virtual |
get the internal state
Implemented in HuginBase::Panorama.
|
pure virtual |
mark image for change notification.
Does not send the notification, this is left to changedFinished()
Implements HuginBase::PanoramaData.
Implemented in HuginBase::Panorama.
|
pure virtual |
Implemented in HuginBase::Panorama.
|
pure virtual |
true if control points or lens variables have been changed after the last optimisation
Implemented in HuginBase::Panorama.
|
pure virtual |
remove a panorama observer.
Observers must be removed before they are destroyed, else Panorama will try to notify them after they have been destroyed
Implemented in HuginBase::Panorama.
|
pure virtual |
set the internal state
Implemented in HuginBase::Panorama.