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

#include <Texture.h>

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

Public Member Functions

 TextureObjectSet (TextureObjectManager *parent, const TextureProfile &profile)
 
const TextureProfilegetProfile () const
 
void handlePendingOrphandedTextureObjects ()
 
void deleteAllTextureObjects ()
 
void discardAllTextureObjects ()
 
void flushAllDeletedTextureObjects ()
 
void discardAllDeletedTextureObjects ()
 
void flushDeletedTextureObjects (double currentTime, double &availableTime)
 
osg::ref_ptr< TextureObjecttakeFromOrphans (Texture *texture)
 
osg::ref_ptr< TextureObjecttakeOrGenerate (Texture *texture)
 
void moveToBack (TextureObject *to)
 
void addToBack (TextureObject *to)
 
void orphan (TextureObject *to)
 
void remove (TextureObject *to)
 
void moveToSet (TextureObject *to, TextureObjectSet *set)
 
unsigned int size () const
 
bool makeSpace (unsigned int &size)
 
bool checkConsistency () const
 
TextureObjectManagergetParent ()
 
unsigned int computeNumTextureObjectsInList () const
 
unsigned int getNumOfTextureObjects () const
 
unsigned int getNumOrphans () const
 
unsigned int getNumPendingOrphans () const
 
- 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 Member Functions

virtual ~TextureObjectSet ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

OpenThreads::Mutex _mutex
 
TextureObjectManager_parent
 
unsigned int _contextID
 
TextureProfile _profile
 
unsigned int _numOfTextureObjects
 
TextureObjectList _orphanedTextureObjects
 
TextureObjectList _pendingOrphanedTextureObjects
 
TextureObject_head
 
TextureObject_tail
 
- 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 ()
 

Detailed Description

Definition at line 1089 of file Texture.h.

Constructor & Destructor Documentation

osg::Texture::TextureObjectSet::TextureObjectSet ( TextureObjectManager parent,
const TextureProfile profile 
)
virtual osg::Texture::TextureObjectSet::~TextureObjectSet ( )
protectedvirtual

Member Function Documentation

void osg::Texture::TextureObjectSet::addToBack ( TextureObject to)
bool osg::Texture::TextureObjectSet::checkConsistency ( ) const
unsigned int osg::Texture::TextureObjectSet::computeNumTextureObjectsInList ( ) const
void osg::Texture::TextureObjectSet::deleteAllTextureObjects ( )
void osg::Texture::TextureObjectSet::discardAllDeletedTextureObjects ( )
void osg::Texture::TextureObjectSet::discardAllTextureObjects ( )
void osg::Texture::TextureObjectSet::flushAllDeletedTextureObjects ( )
void osg::Texture::TextureObjectSet::flushDeletedTextureObjects ( double  currentTime,
double &  availableTime 
)
unsigned int osg::Texture::TextureObjectSet::getNumOfTextureObjects ( ) const
inline

Definition at line 1121 of file Texture.h.

unsigned int osg::Texture::TextureObjectSet::getNumOrphans ( ) const
inline

Definition at line 1122 of file Texture.h.

unsigned int osg::Texture::TextureObjectSet::getNumPendingOrphans ( ) const
inline

Definition at line 1123 of file Texture.h.

TextureObjectManager* osg::Texture::TextureObjectSet::getParent ( )
inline

Definition at line 1118 of file Texture.h.

const TextureProfile& osg::Texture::TextureObjectSet::getProfile ( ) const
inline

Definition at line 1094 of file Texture.h.

void osg::Texture::TextureObjectSet::handlePendingOrphandedTextureObjects ( )
bool osg::Texture::TextureObjectSet::makeSpace ( unsigned int &  size)
void osg::Texture::TextureObjectSet::moveToBack ( TextureObject to)
void osg::Texture::TextureObjectSet::moveToSet ( TextureObject to,
TextureObjectSet set 
)
void osg::Texture::TextureObjectSet::orphan ( TextureObject to)
void osg::Texture::TextureObjectSet::remove ( TextureObject to)
unsigned int osg::Texture::TextureObjectSet::size ( ) const
inline

Definition at line 1112 of file Texture.h.

osg::ref_ptr<TextureObject> osg::Texture::TextureObjectSet::takeFromOrphans ( Texture texture)
osg::ref_ptr<TextureObject> osg::Texture::TextureObjectSet::takeOrGenerate ( Texture texture)

Member Data Documentation

unsigned int osg::Texture::TextureObjectSet::_contextID
protected

Definition at line 1132 of file Texture.h.

TextureObject* osg::Texture::TextureObjectSet::_head
protected

Definition at line 1138 of file Texture.h.

OpenThreads::Mutex osg::Texture::TextureObjectSet::_mutex
protected

Definition at line 1129 of file Texture.h.

unsigned int osg::Texture::TextureObjectSet::_numOfTextureObjects
protected

Definition at line 1134 of file Texture.h.

TextureObjectList osg::Texture::TextureObjectSet::_orphanedTextureObjects
protected

Definition at line 1135 of file Texture.h.

TextureObjectManager* osg::Texture::TextureObjectSet::_parent
protected

Definition at line 1131 of file Texture.h.

TextureObjectList osg::Texture::TextureObjectSet::_pendingOrphanedTextureObjects
protected

Definition at line 1136 of file Texture.h.

TextureProfile osg::Texture::TextureObjectSet::_profile
protected

Definition at line 1133 of file Texture.h.

TextureObject* osg::Texture::TextureObjectSet::_tail
protected

Definition at line 1139 of file Texture.h.


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