HuginBase::ManagedPanoramaData Class Reference

#include <PanoramaData.h>

Inheritance diagram for HuginBase::ManagedPanoramaData:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ManagedPanoramaData ()
virtual void addObserver (PanoramaObserver *o)=0
 add a panorama observer.
virtual bool removeObserver (PanoramaObserver *observer)=0
 remove a panorama observer.
virtual void clearObservers ()=0
 remove all panorama observers.
virtual void changeFinished ()=0
 notify observers about changes in this class
virtual void clearDirty ()=0
 clear dirty flag.
virtual void imageChanged (unsigned int imgNr)=0
 mark image for change notification.
virtual PanoramaDataMementogetNewMemento () const =0
 get the internal state
virtual bool setMementoToCopyOf (const PanoramaDataMemento *const memento)=0
 set the internal state
virtual bool needsOptimization ()=0
 true if control points or lens variables have been changed after the last optimisation
virtual void markAsOptimized (bool optimized=true)=0

Detailed Description

Definition at line 806 of file PanoramaData.h.


Constructor & Destructor Documentation

virtual HuginBase::ManagedPanoramaData::~ManagedPanoramaData (  )  [inline, virtual]

Definition at line 811 of file PanoramaData.h.


Member Function Documentation

virtual void HuginBase::ManagedPanoramaData::addObserver ( PanoramaObserver o  )  [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.

virtual void HuginBase::ManagedPanoramaData::changeFinished (  )  [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.

Referenced by HuginBase::PanoCommand< std::string >::execute(), HuginBase::PanoCommand< std::string >::redo(), and HuginBase::PanoCommand< std::string >::undo().

virtual void HuginBase::ManagedPanoramaData::clearDirty (  )  [pure virtual]

clear dirty flag.

call after load, save or new project

Implemented in HuginBase::Panorama.

Referenced by HuginBase::PanoCommand< std::string >::execute().

virtual void HuginBase::ManagedPanoramaData::clearObservers (  )  [pure virtual]

remove all panorama observers.

Warning:
this is a hack. it must not be used on normal Panorama's.

Implemented in HuginBase::Panorama.

virtual PanoramaDataMemento* HuginBase::ManagedPanoramaData::getNewMemento (  )  const [pure virtual]

get the internal state

Implemented in HuginBase::Panorama.

Referenced by HuginBase::PanoCommand< std::string >::saveMemento(), and HuginBase::PanoCommand< std::string >::saveRedoMemento().

virtual void HuginBase::ManagedPanoramaData::imageChanged ( unsigned int  imgNr  )  [pure virtual]

mark image for change notification.

Does not send the notification, this is left to changedFinished()

Implements HuginBase::PanoramaData.

Implemented in HuginBase::Panorama.

virtual void HuginBase::ManagedPanoramaData::markAsOptimized ( bool  optimized = true  )  [pure virtual]

Implemented in HuginBase::Panorama.

virtual bool HuginBase::ManagedPanoramaData::needsOptimization (  )  [pure virtual]

true if control points or lens variables have been changed after the last optimisation

Implemented in HuginBase::Panorama.

virtual bool HuginBase::ManagedPanoramaData::removeObserver ( PanoramaObserver observer  )  [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

Returns:
true if observer was known, false otherwise.

Implemented in HuginBase::Panorama.

virtual bool HuginBase::ManagedPanoramaData::setMementoToCopyOf ( const PanoramaDataMemento *const   memento  )  [pure virtual]

set the internal state

Implemented in HuginBase::Panorama.

Referenced by HuginBase::PanoCommand< std::string >::execute(), HuginBase::PanoCommand< std::string >::redo(), and HuginBase::PanoCommand< std::string >::undo().


The documentation for this class was generated from the following file:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7