Hugintrunk
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. More... | |
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, and m_viewState.
TextureManager::TextureInfo::TextureInfo | ( | ViewState * | new_view_state, |
unsigned int | width_p, | ||
unsigned int | height_p | ||
) |
Definition at line 593 of file TextureManager.cpp.
TextureManager::TextureInfo::~TextureInfo | ( | ) |
Definition at line 675 of file TextureManager.cpp.
References DEBUG_DEBUG.
void TextureManager::TextureInfo::Bind | ( | ) |
Definition at line 683 of file TextureManager.cpp.
void TextureManager::TextureInfo::BindImageTexture | ( | ) |
Definition at line 697 of file TextureManager.cpp.
void TextureManager::TextureInfo::BindMaskTexture | ( | ) |
Definition at line 707 of file TextureManager.cpp.
|
private |
Definition at line 606 of file TextureManager.cpp.
References DEBUG_DEBUG.
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::destImageRange(), vigra_ext::enforceMonotonicity(), huginApp::Get(), huginApp::getMainFrame(), HuginBase::Color::detail::GetMonitorProfile(), vigra_ext::EMoR::h, huginApp::HasMonitorProfile(), TextureManager::LoadingImageFinished(), celeste::max(), celeste::min(), HuginBase::PanoramaOptions::outputExposureValue, HuginBase::PanoramaOptions::outputRangeCompression, TextureManager::photometric_correct, vigra_ext::pow(), GLPreviewFrame::redrawPreview(), HuginBase::BaseSrcPanoImage::RESPONSE_EMOR, HuginBase::BaseSrcPanoImage::RESPONSE_LINEAR, HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::setOutput(), and vigra_ext::srcImageRange().
Referenced by TextureManager::CheckUpdate().
void TextureManager::TextureInfo::DefineMaskTexture | ( | const HuginBase::SrcPanoImage & | srcImg | ) |
Definition at line 1079 of file TextureManager.cpp.
References vigra_ext::applyMask(), vigra_ext::destImageRange(), HuginBase::SrcPanoImage::getHeight(), HuginBase::SrcPanoImage::getWidth(), vigra_ext::EMoR::h, and HuginBase::SrcPanoImage::hasActiveMasks().
Referenced by TextureManager::CheckUpdate().
|
inline |
Definition at line 117 of file TextureManager.h.
|
inline |
Definition at line 114 of file TextureManager.h.
References num.
|
inline |
Definition at line 116 of file TextureManager.h.
References has_mask.
void TextureManager::TextureInfo::SetMaxLevel | ( | int | level | ) |
Definition at line 1131 of file TextureManager.cpp.
References DEBUG_ERROR.
Referenced by TextureManager::CheckUpdate().
|
private |
Definition at line 617 of file TextureManager.cpp.
References DEBUG_ERROR, and DEBUG_INFO.
void TextureManager::TextureInfo::UpdateMask | ( | const HuginBase::SrcPanoImage & | srcImg | ) |
Definition at line 1118 of file TextureManager.cpp.
|
private |
Definition at line 122 of file TextureManager.h.
Referenced by TextureInfo().
|
private |
Definition at line 121 of file TextureManager.h.
Referenced by GetUseAlpha(), and TextureInfo().
unsigned int TextureManager::TextureInfo::height |
Definition at line 98 of file TextureManager.h.
Referenced by TextureManager::CheckUpdate().
unsigned int TextureManager::TextureInfo::height_p |
Definition at line 100 of file TextureManager.h.
Referenced by TextureManager::CheckUpdate().
|
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.
Referenced by TextureManager::CheckUpdate().
|
private |
Definition at line 117 of file TextureManager.h.
Referenced by GetNumber().
|
private |
Definition at line 120 of file TextureManager.h.
unsigned int TextureManager::TextureInfo::width |
Definition at line 98 of file TextureManager.h.
Referenced by TextureManager::CheckUpdate().
unsigned int TextureManager::TextureInfo::width_p |
Definition at line 100 of file TextureManager.h.
Referenced by TextureManager::CheckUpdate().