Hugin trunk 0.1
Loading...
Searching...
No Matches
Functions
wxImageCache.cpp File Reference

implementation of ImageCache Class More...

#include "wxImageCache.h"
#include "vigra_ext/utils.h"
#include "hugin/config_defaults.h"
#include "base_wx/platform.h"
#include "wxcms.h"
Include dependency graph for wxImageCache.cpp:

Go to the source code of this file.

Functions

wxImage imageCacheEntry2wxImage (ImageCache::EntryPtr e)
 
void GeneratePreviewSelectedFile (wxStaticBitmap *control, ImageCache::EntryPtr cacheEntry, const bool hasMonitorProfile, const cmsHPROFILE &monitorProfile)
 load given image from image cache and display in wxStaticBitmap control
 
 wxDEFINE_EVENT (EVT_IMAGE_READY, ImageReadyEvent)
 
 wxDEFINE_EVENT (EVT_LOADING_FAILED, wxCommandEvent)
 
void UpdateImageCacheSize ()
 update the image cache size from the settings in wxConfig
 

Detailed Description

implementation of ImageCache Class

Author
Pablo d'Angelo pablo.nosp@m..dan.nosp@m.gelo@.nosp@m.web..nosp@m.de

$Id$

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/.

Definition in file wxImageCache.cpp.

Function Documentation

◆ GeneratePreviewSelectedFile()

void GeneratePreviewSelectedFile ( wxStaticBitmap *  control,
ImageCache::EntryPtr  cacheEntry,
const bool  hasMonitorProfile,
const cmsHPROFILE &  monitorProfile 
)

◆ imageCacheEntry2wxImage()

wxImage imageCacheEntry2wxImage ( ImageCache::EntryPtr  e)

◆ UpdateImageCacheSize()

void UpdateImageCacheSize ( )

update the image cache size from the settings in wxConfig

Definition at line 167 of file wxImageCache.cpp.

References HuginBase::ImageCache::getInstance(), HUGIN_IMGCACHE_UPPERBOUND, HuginBase::ImageCache::SetUpperLimit(), and threshold().

Referenced by ImageCacheApp::OnInit(), and MainFrame::OnShowPrefs().

◆ wxDEFINE_EVENT() [1/2]

wxDEFINE_EVENT ( EVT_IMAGE_READY  ,
ImageReadyEvent   
)

◆ wxDEFINE_EVENT() [2/2]

wxDEFINE_EVENT ( EVT_LOADING_FAILED  ,
wxCommandEvent   
)