OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Types | Protected Attributes | List of all members
osg::Texture::TextureObjectManager Class Reference

#include <Texture.h>

Inheritance diagram for osg::Texture::TextureObjectManager:
Inheritance graph
[legend]
Collaboration diagram for osg::Texture::TextureObjectManager:
Collaboration graph
[legend]

Public Member Functions

 TextureObjectManager (unsigned int contextID)
 
unsigned int getContextID () const
 
void setNumberActiveTextureObjects (unsigned int size)
 
unsigned int & getNumberActiveTextureObjects ()
 
unsigned int getNumberActiveTextureObjects () const
 
void setNumberOrphanedTextureObjects (unsigned int size)
 
unsigned int & getNumberOrphanedTextureObjects ()
 
unsigned int getNumberOrphanedTextureObjects () const
 
void setCurrTexturePoolSize (unsigned int size)
 
unsigned int & getCurrTexturePoolSize ()
 
unsigned int getCurrTexturePoolSize () const
 
void setMaxTexturePoolSize (unsigned int size)
 
unsigned int getMaxTexturePoolSize () const
 
bool hasSpace (unsigned int size) const
 
bool makeSpace (unsigned int size)
 
osg::ref_ptr< TextureObjectgenerateTextureObject (const Texture *texture, GLenum target)
 
osg::ref_ptr< TextureObjectgenerateTextureObject (const Texture *texture, GLenum target, GLint numMipmapLevels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border)
 
void handlePendingOrphandedTextureObjects ()
 
void deleteAllTextureObjects ()
 
void discardAllTextureObjects ()
 
void flushAllDeletedTextureObjects ()
 
void discardAllDeletedTextureObjects ()
 
void flushDeletedTextureObjects (double currentTime, double &availableTime)
 
void releaseTextureObject (TextureObject *to)
 
TextureObjectSetgetTextureObjectSet (const TextureProfile &profile)
 
void newFrame (osg::FrameStamp *fs)
 
void resetStats ()
 
void reportStats (std::ostream &out)
 
void recomputeStats (std::ostream &out) const
 
bool checkConsistency () const
 
unsigned int & getFrameNumber ()
 
unsigned int & getNumberFrames ()
 
unsigned int & getNumberDeleted ()
 
double & getDeleteTime ()
 
unsigned int & getNumberGenerated ()
 
double & getGenerateTime ()
 
unsigned int & getNumberApplied ()
 
double & getApplyTime ()
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Types

typedef std::map
< TextureProfile, osg::ref_ptr
< TextureObjectSet > > 
TextureSetMap
 

Protected Attributes

unsigned int _contextID
 
unsigned int _numActiveTextureObjects
 
unsigned int _numOrphanedTextureObjects
 
unsigned int _currTexturePoolSize
 
unsigned int _maxTexturePoolSize
 
TextureSetMap _textureSetMap
 
unsigned int _frameNumber
 
unsigned int _numFrames
 
unsigned int _numDeleted
 
double _deleteTime
 
unsigned int _numGenerated
 
double _generateTime
 
unsigned int _numApplied
 
double _applyTime
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Detailed Description

Definition at line 1143 of file Texture.h.

Member Typedef Documentation

Definition at line 1210 of file Texture.h.

Constructor & Destructor Documentation

osg::Texture::TextureObjectManager::TextureObjectManager ( unsigned int  contextID)

Member Function Documentation

bool osg::Texture::TextureObjectManager::checkConsistency ( ) const
void osg::Texture::TextureObjectManager::deleteAllTextureObjects ( )
void osg::Texture::TextureObjectManager::discardAllDeletedTextureObjects ( )
void osg::Texture::TextureObjectManager::discardAllTextureObjects ( )
void osg::Texture::TextureObjectManager::flushAllDeletedTextureObjects ( )
void osg::Texture::TextureObjectManager::flushDeletedTextureObjects ( double  currentTime,
double &  availableTime 
)
osg::ref_ptr<TextureObject> osg::Texture::TextureObjectManager::generateTextureObject ( const Texture texture,
GLenum  target 
)
osg::ref_ptr<TextureObject> osg::Texture::TextureObjectManager::generateTextureObject ( const Texture texture,
GLenum  target,
GLint  numMipmapLevels,
GLenum  internalFormat,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border 
)
double& osg::Texture::TextureObjectManager::getApplyTime ( )
inline

Definition at line 1205 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::getContextID ( ) const
inline

Definition at line 1148 of file Texture.h.

unsigned int& osg::Texture::TextureObjectManager::getCurrTexturePoolSize ( )
inline

Definition at line 1161 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::getCurrTexturePoolSize ( ) const
inline

Definition at line 1162 of file Texture.h.

double& osg::Texture::TextureObjectManager::getDeleteTime ( )
inline

Definition at line 1199 of file Texture.h.

unsigned int& osg::Texture::TextureObjectManager::getFrameNumber ( )
inline

Definition at line 1195 of file Texture.h.

double& osg::Texture::TextureObjectManager::getGenerateTime ( )
inline

Definition at line 1202 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::getMaxTexturePoolSize ( ) const
inline

Definition at line 1165 of file Texture.h.

unsigned int& osg::Texture::TextureObjectManager::getNumberActiveTextureObjects ( )
inline

Definition at line 1153 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::getNumberActiveTextureObjects ( ) const
inline

Definition at line 1154 of file Texture.h.

unsigned int& osg::Texture::TextureObjectManager::getNumberApplied ( )
inline

Definition at line 1204 of file Texture.h.

unsigned int& osg::Texture::TextureObjectManager::getNumberDeleted ( )
inline

Definition at line 1198 of file Texture.h.

unsigned int& osg::Texture::TextureObjectManager::getNumberFrames ( )
inline

Definition at line 1196 of file Texture.h.

unsigned int& osg::Texture::TextureObjectManager::getNumberGenerated ( )
inline

Definition at line 1201 of file Texture.h.

unsigned int& osg::Texture::TextureObjectManager::getNumberOrphanedTextureObjects ( )
inline

Definition at line 1157 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::getNumberOrphanedTextureObjects ( ) const
inline

Definition at line 1158 of file Texture.h.

TextureObjectSet* osg::Texture::TextureObjectManager::getTextureObjectSet ( const TextureProfile profile)
void osg::Texture::TextureObjectManager::handlePendingOrphandedTextureObjects ( )
bool osg::Texture::TextureObjectManager::hasSpace ( unsigned int  size) const
inline

Definition at line 1167 of file Texture.h.

bool osg::Texture::TextureObjectManager::makeSpace ( unsigned int  size)
void osg::Texture::TextureObjectManager::newFrame ( osg::FrameStamp fs)
void osg::Texture::TextureObjectManager::recomputeStats ( std::ostream &  out) const
void osg::Texture::TextureObjectManager::releaseTextureObject ( TextureObject to)
void osg::Texture::TextureObjectManager::reportStats ( std::ostream &  out)
void osg::Texture::TextureObjectManager::resetStats ( )
void osg::Texture::TextureObjectManager::setCurrTexturePoolSize ( unsigned int  size)
inline

Definition at line 1160 of file Texture.h.

void osg::Texture::TextureObjectManager::setMaxTexturePoolSize ( unsigned int  size)
void osg::Texture::TextureObjectManager::setNumberActiveTextureObjects ( unsigned int  size)
inline

Definition at line 1152 of file Texture.h.

void osg::Texture::TextureObjectManager::setNumberOrphanedTextureObjects ( unsigned int  size)
inline

Definition at line 1156 of file Texture.h.

Member Data Documentation

double osg::Texture::TextureObjectManager::_applyTime
protected

Definition at line 1228 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_contextID
protected

Definition at line 1211 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_currTexturePoolSize
protected

Definition at line 1214 of file Texture.h.

double osg::Texture::TextureObjectManager::_deleteTime
protected

Definition at line 1222 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_frameNumber
protected

Definition at line 1218 of file Texture.h.

double osg::Texture::TextureObjectManager::_generateTime
protected

Definition at line 1225 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_maxTexturePoolSize
protected

Definition at line 1215 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_numActiveTextureObjects
protected

Definition at line 1212 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_numApplied
protected

Definition at line 1227 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_numDeleted
protected

Definition at line 1221 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_numFrames
protected

Definition at line 1220 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_numGenerated
protected

Definition at line 1224 of file Texture.h.

unsigned int osg::Texture::TextureObjectManager::_numOrphanedTextureObjects
protected

Definition at line 1213 of file Texture.h.

TextureSetMap osg::Texture::TextureObjectManager::_textureSetMap
protected

Definition at line 1216 of file Texture.h.


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