OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osg::Texture::TextureObjectSet Class Reference
Inheritance diagram for osg::Texture::TextureObjectSet:
Inheritance 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)
TextureObjecttakeFromOrphans (Texture *texture)
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)
 Set whether to use a mutex to ensure ref() and unref() are thread safe.
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe.
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref().
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it.
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int referenceCount () const
 Return the number of pointers currently referencing this object.
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL.
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet.
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted.
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object.

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::Mutex * getGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced.
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 Set whether reference counting should use a mutex for thread safe reference counting.
static bool getThreadSafeReferenceCounting ()
 Get whether reference counting is active.
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated.
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler.

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
unsigned int osg::Texture::TextureObjectSet::getNumOrphans ( ) const
inline
unsigned int osg::Texture::TextureObjectSet::getNumPendingOrphans ( ) const
inline
TextureObjectManager* osg::Texture::TextureObjectSet::getParent ( )
inline
const TextureProfile& osg::Texture::TextureObjectSet::getProfile ( ) const
inline
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
TextureObject* osg::Texture::TextureObjectSet::takeFromOrphans ( Texture texture)
TextureObject* osg::Texture::TextureObjectSet::takeOrGenerate ( Texture texture)

Member Data Documentation

unsigned int osg::Texture::TextureObjectSet::_contextID
protected
TextureObject* osg::Texture::TextureObjectSet::_head
protected
OpenThreads::Mutex osg::Texture::TextureObjectSet::_mutex
protected
unsigned int osg::Texture::TextureObjectSet::_numOfTextureObjects
protected
TextureObjectList osg::Texture::TextureObjectSet::_orphanedTextureObjects
protected
TextureObjectManager* osg::Texture::TextureObjectSet::_parent
protected
TextureObjectList osg::Texture::TextureObjectSet::_pendingOrphanedTextureObjects
protected
TextureProfile osg::Texture::TextureObjectSet::_profile
protected
TextureObject* osg::Texture::TextureObjectSet::_tail
protected

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

osg logo
Generated at Fri Sep 7 2012 02:20:12 for the OpenSceneGraph by doxygen 1.8.1.2.