TextureManager::TextureInfo Class Reference

#include <TextureManager.h>

List of all members.

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
ViewStatem_viewState
HuginBase::ImageCache::RequestPtr m_imageRequest
 a request for an image, if it was not loaded before.


Constructor & Destructor Documentation

TextureManager::TextureInfo::TextureInfo ViewState new_view_state  ) 
 

Definition at line 542 of file TextureManager.cpp.

References CreateTexture(), DEBUG_ASSERT, has_active_masks, and m_viewState.

TextureManager::TextureInfo::TextureInfo ViewState new_view_state,
unsigned int  width_p,
unsigned int  height_p
 

Definition at line 551 of file TextureManager.cpp.

References CreateTexture(), has_active_masks, height, height_p, m_viewState, width, and width_p.

TextureManager::TextureInfo::~TextureInfo  ) 
 

Definition at line 628 of file TextureManager.cpp.

References DEBUG_DEBUG, num, and numMask.


Member Function Documentation

void TextureManager::TextureInfo::Bind  ) 
 

Definition at line 636 of file TextureManager.cpp.

References BindImageTexture(), BindMaskTexture(), ViewState::GetSupportMultiTexture(), and m_viewState.

void TextureManager::TextureInfo::BindImageTexture  ) 
 

Definition at line 650 of file TextureManager.cpp.

References ViewState::GetSupportMultiTexture(), m_viewState, and num.

Referenced by Bind(), DefineLevels(), SetMaxLevel(), and SetParameters().

void TextureManager::TextureInfo::BindMaskTexture  ) 
 

Definition at line 660 of file TextureManager.cpp.

References ViewState::GetSupportMultiTexture(), m_viewState, and numMask.

Referenced by Bind(), DefineMaskTexture(), SetMaxLevel(), and SetParameters().

void TextureManager::TextureInfo::CreateTexture  )  [private]
 

Definition at line 563 of file TextureManager.cpp.

References DEBUG_DEBUG, min_lod, num, numMask, and SetParameters().

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 672 of file TextureManager.cpp.

References BindImageTexture(), vigra_ext::EMoR::createEMoRLUT(), DEBUG_ERROR, DEBUG_INFO, DefineLevels(), vigra_ext::destImageRange(), vigra_ext::enforceMonotonicity(), hugin_utils::FDiff2D, ViewState::GetSrcImage(), has_mask, height_p, m_imageRequest, m_viewState, num, HuginBase::PanoramaOptions::outputExposureValue, vigra_ext::pow(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::setOutput(), SetParameters(), vigra_ext::srcImageRange(), and width_p.

Referenced by TextureManager::CheckUpdate(), and DefineLevels().

void TextureManager::TextureInfo::DefineMaskTexture const HuginBase::SrcPanoImage srcImg  ) 
 

Definition at line 878 of file TextureManager.cpp.

References vigra_ext::applyMask(), BindMaskTexture(), HuginBase::SrcPanoImage::getHeight(), HuginBase::SrcPanoImage::getWidth(), has_active_masks, HuginBase::SrcPanoImage::hasActiveMasks(), and width.

Referenced by TextureManager::CheckUpdate(), and UpdateMask().

bool TextureManager::TextureInfo::GetHasActiveMasks  )  [inline]
 

Definition at line 123 of file TextureManager.h.

unsigned int TextureManager::TextureInfo::GetNumber  )  [inline]
 

Definition at line 120 of file TextureManager.h.

bool TextureManager::TextureInfo::GetUseAlpha  )  [inline]
 

Definition at line 122 of file TextureManager.h.

void TextureManager::TextureInfo::SetMaxLevel int  level  ) 
 

Definition at line 930 of file TextureManager.cpp.

References BindImageTexture(), BindMaskTexture(), DEBUG_ERROR, ViewState::GetSupportMultiTexture(), and m_viewState.

Referenced by TextureManager::CheckUpdate().

void TextureManager::TextureInfo::SetParameters  )  [private]
 

Definition at line 574 of file TextureManager.cpp.

References BindImageTexture(), BindMaskTexture(), DEBUG_ERROR, DEBUG_INFO, ViewState::GetSupportMultiTexture(), and m_viewState.

Referenced by CreateTexture(), DefineLevels(), and UpdateMask().

void TextureManager::TextureInfo::UpdateMask const HuginBase::SrcPanoImage srcImg  ) 
 

Definition at line 917 of file TextureManager.cpp.

References DefineMaskTexture(), ViewState::GetSupportMultiTexture(), m_viewState, numMask, and SetParameters().

Referenced by TextureManager::CheckUpdate().


Member Data Documentation

bool TextureManager::TextureInfo::has_active_masks [private]
 

Definition at line 128 of file TextureManager.h.

Referenced by DefineMaskTexture(), and TextureInfo().

bool TextureManager::TextureInfo::has_mask [private]
 

Definition at line 127 of file TextureManager.h.

Referenced by DefineLevels().

unsigned int TextureManager::TextureInfo::height
 

Definition at line 104 of file TextureManager.h.

Referenced by TextureManager::CheckUpdate(), and TextureInfo().

unsigned int TextureManager::TextureInfo::height_p
 

Definition at line 106 of file TextureManager.h.

Referenced by TextureManager::CheckUpdate(), DefineLevels(), and TextureInfo().

HuginBase::ImageCache::RequestPtr TextureManager::TextureInfo::m_imageRequest [private]
 

a request for an image, if it was not loaded before.

Definition at line 131 of file TextureManager.h.

Referenced by DefineLevels().

ViewState* TextureManager::TextureInfo::m_viewState [private]
 

Definition at line 129 of file TextureManager.h.

Referenced by Bind(), BindImageTexture(), BindMaskTexture(), DefineLevels(), SetMaxLevel(), SetParameters(), TextureInfo(), and UpdateMask().

int TextureManager::TextureInfo::min_lod
 

Definition at line 108 of file TextureManager.h.

Referenced by TextureManager::CheckUpdate(), and CreateTexture().

unsigned int TextureManager::TextureInfo::num [private]
 

Definition at line 125 of file TextureManager.h.

Referenced by BindImageTexture(), CreateTexture(), DefineLevels(), and ~TextureInfo().

unsigned int TextureManager::TextureInfo::numMask [private]
 

Definition at line 126 of file TextureManager.h.

Referenced by BindMaskTexture(), CreateTexture(), UpdateMask(), and ~TextureInfo().

unsigned int TextureManager::TextureInfo::width
 

Definition at line 104 of file TextureManager.h.

Referenced by TextureManager::CheckUpdate(), DefineMaskTexture(), and TextureInfo().

unsigned int TextureManager::TextureInfo::width_p
 

Definition at line 106 of file TextureManager.h.

Referenced by TextureManager::CheckUpdate(), DefineLevels(), and TextureInfo().


The documentation for this class was generated from the following files:
Generated on Sun Apr 20 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1