Hugin trunk 0.1
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
TextureManager Class Reference

#include <TextureManager.h>

Classes

class  TextureInfo
 
class  TextureKey
 

Public Member Functions

 TextureManager (HuginBase::Panorama *pano, ViewState *view)
 
virtual ~TextureManager ()
 
void DrawImage (unsigned int image_number, unsigned int display_list)
 
void CheckUpdate ()
 
void Begin ()
 
void End ()
 
void SetPhotometricCorrect (bool state)
 
bool GetPhotometricCorrect ()
 
unsigned int GetTextureName (unsigned int image_number)
 
void BindTexture (unsigned int image_number)
 
void DisableTexture (bool maskOnly=false)
 
void LoadingImageFinished (int min, int max, bool texture_photometric_correct, const HuginBase::PanoramaOptions &dest_img, const HuginBase::SrcPanoImage &state)
 

Protected Types

typedef std::map< TextureKey, std::shared_ptr< TextureInfo > > TexturesMap
 

Protected Member Functions

void CleanTextures ()
 
unsigned int GetMaxTotalTexels ()
 
unsigned int GetMaxTextureSizePower ()
 

Protected Attributes

HuginBase::Panoramam_pano
 
ViewStateview_state
 
float viewer_exposure
 
TexturesMap textures
 
float texel_density
 
bool photometric_correct
 

Detailed Description

Definition at line 50 of file TextureManager.h.

Member Typedef Documentation

◆ TexturesMap

typedef std::map<TextureKey, std::shared_ptr<TextureInfo> > TextureManager::TexturesMap
protected

Definition at line 167 of file TextureManager.h.

Constructor & Destructor Documentation

◆ TextureManager()

TextureManager::TextureManager ( HuginBase::Panorama pano,
ViewState view 
)

Definition at line 75 of file TextureManager.cpp.

References m_pano, photometric_correct, threshold(), and view_state.

◆ ~TextureManager()

TextureManager::~TextureManager ( )
virtual

Definition at line 82 of file TextureManager.cpp.

References textures.

Member Function Documentation

◆ Begin()

void TextureManager::Begin ( )

◆ BindTexture()

void TextureManager::BindTexture ( unsigned int  image_number)

◆ CheckUpdate()

void TextureManager::CheckUpdate ( )

◆ CleanTextures()

void TextureManager::CleanTextures ( )
protected

◆ DisableTexture()

void TextureManager::DisableTexture ( bool  maskOnly = false)

◆ DrawImage()

void TextureManager::DrawImage ( unsigned int  image_number,
unsigned int  display_list 
)

◆ End()

void TextureManager::End ( )

◆ GetMaxTextureSizePower()

unsigned int TextureManager::GetMaxTextureSizePower ( )
protected

Definition at line 507 of file TextureManager.cpp.

References DEBUG_ERROR, DEBUG_INFO, and threshold().

Referenced by CheckUpdate().

◆ GetMaxTotalTexels()

unsigned int TextureManager::GetMaxTotalTexels ( )
protected

Definition at line 484 of file TextureManager.cpp.

References threshold().

Referenced by CheckUpdate().

◆ GetPhotometricCorrect()

bool TextureManager::GetPhotometricCorrect ( )
inline

Definition at line 66 of file TextureManager.h.

References photometric_correct.

◆ GetTextureName()

unsigned int TextureManager::GetTextureName ( unsigned int  image_number)

◆ LoadingImageFinished()

void TextureManager::LoadingImageFinished ( int  min,
int  max,
bool  texture_photometric_correct,
const HuginBase::PanoramaOptions dest_img,
const HuginBase::SrcPanoImage state 
)

Definition at line 568 of file TextureManager.cpp.

References textures, and threshold().

Referenced by TextureManager::TextureInfo::DefineLevels().

◆ SetPhotometricCorrect()

void TextureManager::SetPhotometricCorrect ( bool  state)

Definition at line 468 of file TextureManager.cpp.

References photometric_correct, and textures.

Referenced by GLViewer::SetPhotometricCorrect().

Member Data Documentation

◆ m_pano

HuginBase::Panorama* TextureManager::m_pano
protected

Definition at line 80 of file TextureManager.h.

Referenced by Begin(), CheckUpdate(), CleanTextures(), and TextureManager().

◆ photometric_correct

bool TextureManager::photometric_correct
protected

◆ texel_density

float TextureManager::texel_density
protected

Definition at line 173 of file TextureManager.h.

Referenced by CheckUpdate().

◆ textures

TexturesMap TextureManager::textures
protected

◆ view_state

ViewState* TextureManager::view_state
protected

◆ viewer_exposure

float TextureManager::viewer_exposure
protected

Definition at line 82 of file TextureManager.h.

Referenced by Begin(), and DrawImage().


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