Hugin trunk 0.1
Loading...
Searching...
No Matches
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.
 
virtual void release (MRemappedImage *d)
 
void invalidate ()
 invalidates all images
 
void invalidate (unsigned int imgNr)
 invalidate a specific image
 
- 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, PanoramaOptionsm_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

◆ MRemappedImage

Definition at line 43 of file CachedImageRemapper.h.

Constructor & Destructor Documentation

◆ ~SmallRemappedImageCache()

HuginBase::SmallRemappedImageCache::~SmallRemappedImageCache ( )
virtual

Definition at line 36 of file CachedImageRemapper.cpp.

References invalidate().

Member Function Documentation

◆ getRemapped()

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

◆ invalidate() [1/2]

void HuginBase::SmallRemappedImageCache::invalidate ( )

invalidates all images

Definition at line 167 of file CachedImageRemapper.cpp.

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

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

◆ invalidate() [2/2]

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().

◆ release()

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

Definition at line 60 of file CachedImageRemapper.h.

Member Data Documentation

◆ m_images

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

Definition at line 73 of file CachedImageRemapper.h.

Referenced by getRemapped(), invalidate(), and invalidate().

◆ m_imagesParam

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

Definition at line 77 of file CachedImageRemapper.h.

Referenced by getRemapped(), invalidate(), and invalidate().

◆ m_panoOpts

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: