Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
TextureManager::TextureInfo Class Reference

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

Detailed Description

Definition at line 85 of file TextureManager.h.

Constructor & Destructor Documentation

TextureManager::TextureInfo::TextureInfo ( ViewState new_view_state)
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.

Member Function Documentation

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.

void TextureManager::TextureInfo::CreateTexture ( )
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 
)
void TextureManager::TextureInfo::DefineMaskTexture ( const HuginBase::SrcPanoImage srcImg)
bool TextureManager::TextureInfo::GetHasActiveMasks ( )
inline

Definition at line 117 of file TextureManager.h.

unsigned int TextureManager::TextureInfo::GetNumber ( )
inline

Definition at line 114 of file TextureManager.h.

References num.

bool TextureManager::TextureInfo::GetUseAlpha ( )
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().

void TextureManager::TextureInfo::SetParameters ( )
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.

Member Data Documentation

bool TextureManager::TextureInfo::has_active_masks
private

Definition at line 122 of file TextureManager.h.

Referenced by TextureInfo().

bool TextureManager::TextureInfo::has_mask
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().

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

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

Definition at line 125 of file TextureManager.h.

ViewState* TextureManager::TextureInfo::m_viewState
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().

unsigned int TextureManager::TextureInfo::num
private

Definition at line 117 of file TextureManager.h.

Referenced by GetNumber().

unsigned int TextureManager::TextureInfo::numMask
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().


The documentation for this class was generated from the following files: