Hugin trunk 0.1
Loading...
Searching...
No Matches
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.
 

Detailed Description

Definition at line 85 of file TextureManager.h.

Constructor & Destructor Documentation

◆ TextureInfo() [1/2]

TextureManager::TextureInfo::TextureInfo ( ViewState new_view_state)
explicit

◆ TextureInfo() [2/2]

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().

◆ ~TextureInfo()

TextureManager::TextureInfo::~TextureInfo ( )

Definition at line 675 of file TextureManager.cpp.

References DEBUG_DEBUG, and threshold().

Member Function Documentation

◆ Bind()

void TextureManager::TextureInfo::Bind ( )

Definition at line 683 of file TextureManager.cpp.

References threshold().

◆ BindImageTexture()

void TextureManager::TextureInfo::BindImageTexture ( )

Definition at line 697 of file TextureManager.cpp.

References threshold().

◆ BindMaskTexture()

void TextureManager::TextureInfo::BindMaskTexture ( )

Definition at line 707 of file TextureManager.cpp.

References threshold().

◆ CreateTexture()

void TextureManager::TextureInfo::CreateTexture ( )
private

Definition at line 606 of file TextureManager.cpp.

References DEBUG_DEBUG, and threshold().

Referenced by TextureInfo().

◆ DefineLevels()

void TextureManager::TextureInfo::DefineLevels ( int  min,
int  max,
bool  photometric_correct,
const HuginBase::PanoramaOptions dest_img,
const HuginBase::SrcPanoImage state 
)

◆ DefineMaskTexture()

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

Definition at line 1079 of file TextureManager.cpp.

References vigra_ext::applyMask(), and threshold().

◆ GetHasActiveMasks()

bool TextureManager::TextureInfo::GetHasActiveMasks ( )
inline

Definition at line 117 of file TextureManager.h.

References has_active_masks.

◆ GetNumber()

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

Definition at line 114 of file TextureManager.h.

References num.

◆ GetUseAlpha()

bool TextureManager::TextureInfo::GetUseAlpha ( )
inline

Definition at line 116 of file TextureManager.h.

References has_mask.

◆ SetMaxLevel()

void TextureManager::TextureInfo::SetMaxLevel ( int  level)

Definition at line 1131 of file TextureManager.cpp.

References DEBUG_ERROR, and threshold().

◆ SetParameters()

void TextureManager::TextureInfo::SetParameters ( )
private

Definition at line 617 of file TextureManager.cpp.

References DEBUG_ERROR, DEBUG_INFO, and threshold().

◆ UpdateMask()

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

Definition at line 1118 of file TextureManager.cpp.

References threshold().

Member Data Documentation

◆ has_active_masks

bool TextureManager::TextureInfo::has_active_masks
private

Definition at line 122 of file TextureManager.h.

Referenced by GetHasActiveMasks(), and TextureInfo().

◆ has_mask

bool TextureManager::TextureInfo::has_mask
private

Definition at line 121 of file TextureManager.h.

Referenced by GetUseAlpha(), and TextureInfo().

◆ height

unsigned int TextureManager::TextureInfo::height

Definition at line 98 of file TextureManager.h.

◆ height_p

unsigned int TextureManager::TextureInfo::height_p

Definition at line 100 of file TextureManager.h.

◆ m_imageRequest

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.

◆ m_viewState

ViewState* TextureManager::TextureInfo::m_viewState
private

Definition at line 123 of file TextureManager.h.

Referenced by TextureInfo().

◆ min_lod

int TextureManager::TextureInfo::min_lod

Definition at line 102 of file TextureManager.h.

◆ num

unsigned int TextureManager::TextureInfo::num
private

Definition at line 119 of file TextureManager.h.

Referenced by GetNumber().

◆ numMask

unsigned int TextureManager::TextureInfo::numMask
private

Definition at line 120 of file TextureManager.h.

◆ width

unsigned int TextureManager::TextureInfo::width

Definition at line 98 of file TextureManager.h.

◆ width_p

unsigned int TextureManager::TextureInfo::width_p

Definition at line 100 of file TextureManager.h.


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