|
Hugin trunk 0.1
|
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"
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 | |
implementation of ImageCache Class
$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.
| void GeneratePreviewSelectedFile | ( | wxStaticBitmap * | control, |
| ImageCache::EntryPtr | cacheEntry, | ||
| const bool | hasMonitorProfile, | ||
| const cmsHPROFILE & | monitorProfile | ||
| ) |
load given image from image cache and display in wxStaticBitmap control
Definition at line 67 of file wxImageCache.cpp.
References HuginBase::Color::CorrectImage(), imageCacheEntry2wxImage(), and threshold().
Referenced by EnfusePanel::OnFileSelectionChanged(), StackerPanel::OnFileSelectionChanged(), EnfusePanel::OnImageLoaded(), StackerPanel::OnImageLoaded(), and ImagesPanel::UpdatePreviewImage().
| wxImage imageCacheEntry2wxImage | ( | ImageCache::EntryPtr | e | ) |
Definition at line 33 of file wxImageCache.cpp.
References vigra_ext::applyMapping(), HUGIN_IMGCACHE_MAPPING_FLOAT, and threshold().
Referenced by GeneratePreviewSelectedFile(), CPImageCtrl::rescaleImage(), MaskImageCtrl::rescaleImage(), PerspectiveImageCtrl::rescaleImage(), and LensCalImageCtrl::SetImage().
| 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 | ( | EVT_IMAGE_READY | , |
| ImageReadyEvent | |||
| ) |
| wxDEFINE_EVENT | ( | EVT_LOADING_FAILED | , |
| wxCommandEvent | |||
| ) |