|
Hugin trunk 0.1
|
#include <TextureManager.h>
Public Member Functions | |
| TextureInfo (ViewState *new_view_state) | |
| TextureInfo (ViewState *new_view_state, unsigned int width_p, unsigned int height_p) | |
| ~TextureInfo () | |
| void | DefineLevels (int min, int max, bool photometric_correct, const HuginBase::PanoramaOptions &dest_img, const HuginBase::SrcPanoImage &state) |
| void | DefineMaskTexture (const HuginBase::SrcPanoImage &srcImg) |
| void | UpdateMask (const HuginBase::SrcPanoImage &srcImg) |
| void | SetMaxLevel (int level) |
| void | Bind () |
| void | BindImageTexture () |
| void | BindMaskTexture () |
| unsigned int | GetNumber () |
| bool | GetUseAlpha () |
| bool | GetHasActiveMasks () |
Public Attributes | |
| unsigned int | width |
| unsigned int | height |
| unsigned int | width_p |
| unsigned int | height_p |
| int | min_lod |
Private Member Functions | |
| void | CreateTexture () |
| void | SetParameters () |
Private Attributes | |
| unsigned int | num |
| unsigned int | numMask |
| bool | has_mask |
| bool | has_active_masks |
| ViewState * | m_viewState |
| HuginBase::ImageCache::RequestPtr | m_imageRequest |
| a request for an image, if it was not loaded before. | |
Definition at line 85 of file TextureManager.h.
|
explicit |
Definition at line 583 of file TextureManager.cpp.
References CreateTexture(), DEBUG_ASSERT, has_active_masks, has_mask, m_viewState, and threshold().
| TextureManager::TextureInfo::TextureInfo | ( | ViewState * | new_view_state, |
| unsigned int | width_p, | ||
| unsigned int | height_p | ||
| ) |
Definition at line 593 of file TextureManager.cpp.
References threshold().
| TextureManager::TextureInfo::~TextureInfo | ( | ) |
Definition at line 675 of file TextureManager.cpp.
References DEBUG_DEBUG, and threshold().
| void TextureManager::TextureInfo::Bind | ( | ) |
Definition at line 683 of file TextureManager.cpp.
References threshold().
| void TextureManager::TextureInfo::BindImageTexture | ( | ) |
Definition at line 697 of file TextureManager.cpp.
References threshold().
| void TextureManager::TextureInfo::BindMaskTexture | ( | ) |
Definition at line 707 of file TextureManager.cpp.
References threshold().
|
private |
Definition at line 606 of file TextureManager.cpp.
References DEBUG_DEBUG, and threshold().
Referenced by TextureInfo().
| void TextureManager::TextureInfo::DefineLevels | ( | int | min, |
| int | max, | ||
| bool | photometric_correct, | ||
| const HuginBase::PanoramaOptions & | dest_img, | ||
| const HuginBase::SrcPanoImage & | state | ||
| ) |
Definition at line 719 of file TextureManager.cpp.
References vigra_ext::EMoR::createEMoRLUT(), DEBUG_ERROR, DEBUG_INFO, vigra_ext::enforceMonotonicity(), huginApp::Get(), huginApp::getMainFrame(), HUGIN_IMGCACHE_MAPPING_FLOAT, TextureManager::LoadingImageFinished(), TextureManager::photometric_correct, GLPreviewFrame::redrawPreview(), HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR, and threshold().
Referenced by TextureManager::CheckUpdate().
| void TextureManager::TextureInfo::DefineMaskTexture | ( | const HuginBase::SrcPanoImage & | srcImg | ) |
Definition at line 1079 of file TextureManager.cpp.
References vigra_ext::applyMask(), and threshold().
|
inline |
Definition at line 117 of file TextureManager.h.
References has_active_masks.
Definition at line 114 of file TextureManager.h.
References num.
|
inline |
Definition at line 116 of file TextureManager.h.
References has_mask.
Definition at line 1131 of file TextureManager.cpp.
References DEBUG_ERROR, and threshold().
|
private |
Definition at line 617 of file TextureManager.cpp.
References DEBUG_ERROR, DEBUG_INFO, and threshold().
| void TextureManager::TextureInfo::UpdateMask | ( | const HuginBase::SrcPanoImage & | srcImg | ) |
Definition at line 1118 of file TextureManager.cpp.
References threshold().
|
private |
Definition at line 122 of file TextureManager.h.
Referenced by GetHasActiveMasks(), and TextureInfo().
|
private |
Definition at line 121 of file TextureManager.h.
Referenced by GetUseAlpha(), and TextureInfo().
Definition at line 98 of file TextureManager.h.
Definition at line 100 of file TextureManager.h.
|
private |
a request for an image, if it was not loaded before.
Definition at line 125 of file TextureManager.h.
|
private |
Definition at line 123 of file TextureManager.h.
Referenced by TextureInfo().
| int TextureManager::TextureInfo::min_lod |
Definition at line 102 of file TextureManager.h.
Definition at line 119 of file TextureManager.h.
Referenced by GetNumber().
Definition at line 120 of file TextureManager.h.
Definition at line 98 of file TextureManager.h.
Definition at line 100 of file TextureManager.h.