Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

Definition at line 167 of file TextureManager.h.

Constructor & Destructor Documentation

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

Definition at line 75 of file TextureManager.cpp.

References m_pano, photometric_correct, and view_state.

TextureManager::~TextureManager ( )
virtual

Definition at line 82 of file TextureManager.cpp.

References textures.

Member Function Documentation

void TextureManager::Begin ( )
void TextureManager::BindTexture ( unsigned int  image_number)
void TextureManager::CheckUpdate ( )
void TextureManager::CleanTextures ( )
protected
void TextureManager::DisableTexture ( bool  maskOnly = false)
void TextureManager::DrawImage ( unsigned int  image_number,
unsigned int  display_list 
)
void TextureManager::End ( )
unsigned int TextureManager::GetMaxTextureSizePower ( )
protected

Definition at line 507 of file TextureManager.cpp.

References DEBUG_ERROR, and DEBUG_INFO.

Referenced by CheckUpdate().

unsigned int TextureManager::GetMaxTotalTexels ( )
protected

Definition at line 484 of file TextureManager.cpp.

References celeste::max().

Referenced by CheckUpdate().

bool TextureManager::GetPhotometricCorrect ( )
inline

Definition at line 66 of file TextureManager.h.

References photometric_correct.

Referenced by PreviewDifferenceTool::AfterDrawImagesEvent().

unsigned int TextureManager::GetTextureName ( unsigned int  image_number)
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.

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

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

HuginBase::Panorama* TextureManager::m_pano
protected

Definition at line 80 of file TextureManager.h.

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

bool TextureManager::photometric_correct
protected
float TextureManager::texel_density
protected

Definition at line 173 of file TextureManager.h.

Referenced by CheckUpdate().

TexturesMap TextureManager::textures
protected
ViewState* TextureManager::view_state
protected
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: