Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Types | List of all members
HuginBase::SmallRemappedImageCache Class Reference

class to cache remapped images, loaded from the hugin small image cache. More...

#include <CachedImageRemapper.h>

Inheritance diagram for HuginBase::SmallRemappedImageCache:
Inheritance graph

Public Member Functions

virtual ~SmallRemappedImageCache ()
 
virtual MRemappedImagegetRemapped (const PanoramaData &pano, const PanoramaOptions &opts, unsigned int imgNr, vigra::Rect2D outputROI, AppBase::ProgressDisplay *progress)
 create a remapped pano image. More...
 
virtual void release (MRemappedImage *d)
 
void invalidate ()
 invalidates all images More...
 
void invalidate (unsigned int imgNr)
 invalidate a specific image More...
 
- Public Member Functions inherited from HuginBase::Nona::SingleImageRemapper< vigra::FRGBImage, vigra::BImage >
 SingleImageRemapper ()
 
virtual ~SingleImageRemapper ()
 
void setAdvancedOptions (const HuginBase::Nona::AdvancedOptions advancedOptions)
 
virtual void release (RemappedPanoImage< vigra::FRGBImage, vigra::BImage > *d)=0
 

Protected Attributes

std::map< unsigned,
MRemappedImage * > 
m_images
 
std::map< unsigned, SrcPanoImagem_imagesParam
 
std::map< unsigned,
PanoramaOptions
m_panoOpts
 
- Protected Attributes inherited from HuginBase::Nona::SingleImageRemapper< vigra::FRGBImage, vigra::BImage >
HuginBase::Nona::AdvancedOptions m_advancedOptions
 

Private Types

typedef
Nona::RemappedPanoImage
< vigra::FRGBImage,
vigra::BImage > 
MRemappedImage
 

Detailed Description

class to cache remapped images, loaded from the hugin small image cache.

This is meant to be used by the preview stitcher.

Definition at line 40 of file CachedImageRemapper.h.

Member Typedef Documentation

typedef Nona::RemappedPanoImage<vigra::FRGBImage, vigra::BImage> HuginBase::SmallRemappedImageCache::MRemappedImage
private

Definition at line 43 of file CachedImageRemapper.h.

Constructor & Destructor Documentation

HuginBase::SmallRemappedImageCache::~SmallRemappedImageCache ( )
virtual

Definition at line 36 of file CachedImageRemapper.cpp.

References invalidate().

Member Function Documentation

SmallRemappedImageCache::MRemappedImage * HuginBase::SmallRemappedImageCache::getRemapped ( const PanoramaData pano,
const PanoramaOptions opts,
unsigned int  imgNr,
vigra::Rect2D  outputROI,
AppBase::ProgressDisplay progress 
)
virtual
void HuginBase::SmallRemappedImageCache::invalidate ( )

invalidates all images

Definition at line 167 of file CachedImageRemapper.cpp.

References DEBUG_DEBUG, m_images, and m_imagesParam.

Referenced by PreviewPanel::OnResize(), PreviewPanel::panoramaChanged(), and ~SmallRemappedImageCache().

void HuginBase::SmallRemappedImageCache::invalidate ( unsigned int  imgNr)

invalidate a specific image

Definition at line 180 of file CachedImageRemapper.cpp.

References DEBUG_DEBUG, m_images, m_imagesParam, and set_contains().

virtual void HuginBase::SmallRemappedImageCache::release ( MRemappedImage d)
inlinevirtual

Definition at line 60 of file CachedImageRemapper.h.

Member Data Documentation

std::map<unsigned, MRemappedImage*> HuginBase::SmallRemappedImageCache::m_images
protected

Definition at line 73 of file CachedImageRemapper.h.

Referenced by getRemapped(), and invalidate().

std::map<unsigned, SrcPanoImage> HuginBase::SmallRemappedImageCache::m_imagesParam
protected

Definition at line 77 of file CachedImageRemapper.h.

Referenced by getRemapped(), and invalidate().

std::map<unsigned, PanoramaOptions> HuginBase::SmallRemappedImageCache::m_panoOpts
protected

Definition at line 78 of file CachedImageRemapper.h.

Referenced by getRemapped().


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