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
osgSim::DatabaseCacheReadCallback Class Reference

#include <LineOfSight.h>

Inheritance diagram for osgSim::DatabaseCacheReadCallback:
Inheritance graph
[legend]
Collaboration diagram for osgSim::DatabaseCacheReadCallback:
Collaboration graph
[legend]

Public Member Functions

 DatabaseCacheReadCallback ()
 
void setMaximumNumOfFilesToCache (unsigned int maxNumFilesToCache)
 
unsigned int getMaximumNumOfFilesToCache () const
 
void clearDatabaseCache ()
 
void pruneUnusedDatabaseCache ()
 
virtual osg::NodereadNodeFile (const std::string &filename)
 
- 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< std::string,
osg::ref_ptr< osg::Node > > 
FileNameSceneMap
 

Protected Attributes

unsigned int _maxNumFilesToCache
 
OpenThreads::Mutex _mutex
 
FileNameSceneMap _filenameSceneMap
 
- 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 23 of file LineOfSight.h.

Member Typedef Documentation

Definition at line 39 of file LineOfSight.h.

Constructor & Destructor Documentation

osgSim::DatabaseCacheReadCallback::DatabaseCacheReadCallback ( )

Member Function Documentation

void osgSim::DatabaseCacheReadCallback::clearDatabaseCache ( )
unsigned int osgSim::DatabaseCacheReadCallback::getMaximumNumOfFilesToCache ( ) const
inline

Definition at line 29 of file LineOfSight.h.

void osgSim::DatabaseCacheReadCallback::pruneUnusedDatabaseCache ( )
virtual osg::Node* osgSim::DatabaseCacheReadCallback::readNodeFile ( const std::string &  filename)
virtual
void osgSim::DatabaseCacheReadCallback::setMaximumNumOfFilesToCache ( unsigned int  maxNumFilesToCache)
inline

Definition at line 28 of file LineOfSight.h.

Member Data Documentation

FileNameSceneMap osgSim::DatabaseCacheReadCallback::_filenameSceneMap
protected

Definition at line 43 of file LineOfSight.h.

unsigned int osgSim::DatabaseCacheReadCallback::_maxNumFilesToCache
protected

Definition at line 41 of file LineOfSight.h.

OpenThreads::Mutex osgSim::DatabaseCacheReadCallback::_mutex
protected

Definition at line 42 of file LineOfSight.h.


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