OSG
3.4.0
|
#include <ImagePager.h>
Classes | |
struct | ImageRequest |
class | ImageThread |
struct | ReadQueue |
struct | RequestQueue |
Public Member Functions | |
ImagePager () | |
ImageThread * | getImageThread (unsigned int i) |
const ImageThread * | getImageThread (unsigned int i) const |
unsigned int | getNumImageThreads () const |
void | setPreLoadTime (double preLoadTime) |
virtual double | getPreLoadTime () const |
virtual osg::Image * | readImageFile (const std::string &fileName, const osg::Referenced *options=0) |
virtual void | requestImageFile (const std::string &fileName, osg::Object *attachmentPoint, int attachmentIndex, double timeToMergeBy, const osg::FrameStamp *framestamp, osg::ref_ptr< osg::Referenced > &imageRequest, const osg::Referenced *options) |
virtual bool | requiresUpdateSceneGraph () const |
virtual void | updateSceneGraph (const osg::FrameStamp &frameStamp) |
virtual void | signalBeginFrame (const osg::FrameStamp *framestamp) |
virtual void | signalEndFrame () |
int | cancel () |
![]() | |
ImageRequestHandler () | |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
Protected Types | |
typedef std::vector < osg::ref_ptr< ImageThread > > | ImageThreads |
Protected Member Functions | |
virtual | ~ImagePager () |
![]() | |
virtual | ~ImageRequestHandler () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
OpenThreads::Mutex | _run_mutex |
bool | _startThreadCalled |
bool | _done |
bool | _databasePagerThreadPaused |
OpenThreads::Atomic | _frameNumber |
OpenThreads::Mutex | _ir_mutex |
osg::ref_ptr< ReadQueue > | _readQueue |
ImageThreads | _imageThreads |
osg::ref_ptr< RequestQueue > | _completedQueue |
double | _preLoadTime |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Friends | |
struct | SortFileRequestFunctor |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
Definition at line 32 of file ImagePager.h.
|
protected |
Definition at line 178 of file ImagePager.h.
osgDB::ImagePager::ImagePager | ( | ) |
|
protectedvirtual |
int osgDB::ImagePager::cancel | ( | ) |
|
inline |
Definition at line 71 of file ImagePager.h.
|
inline |
Definition at line 73 of file ImagePager.h.
|
inline |
Definition at line 75 of file ImagePager.h.
|
inlinevirtual |
Implements osg::NodeVisitor::ImageRequestHandler.
Definition at line 79 of file ImagePager.h.
|
virtual |
Implements osg::NodeVisitor::ImageRequestHandler.
|
virtual |
Implements osg::NodeVisitor::ImageRequestHandler.
|
virtual |
Return true if there are pending updates to the scene graph that require a call to updateSceneGraph(double).
|
inline |
Definition at line 78 of file ImagePager.h.
|
virtual |
Signal the image thread that the update, cull and draw has begun for a new frame. Note, this is called by the application so that the image pager can go to sleep while the CPU is busy on the main rendering threads.
|
virtual |
Signal the image thread that the update, cull and draw dispatch has completed. Note, this is called by the application so that the image pager can go to wake back up now the main rendering threads are iddle waiting for the next frame.
|
virtual |
Merge the changes to the scene graph.
|
friend |
Definition at line 107 of file ImagePager.h.
|
protected |
Definition at line 181 of file ImagePager.h.
|
protected |
Definition at line 171 of file ImagePager.h.
|
protected |
Definition at line 170 of file ImagePager.h.
|
protected |
Definition at line 173 of file ImagePager.h.
|
protected |
Definition at line 179 of file ImagePager.h.
|
protected |
Definition at line 175 of file ImagePager.h.
|
protected |
Definition at line 183 of file ImagePager.h.
|
protected |
Definition at line 176 of file ImagePager.h.
|
protected |
Definition at line 167 of file ImagePager.h.
|
protected |
Definition at line 168 of file ImagePager.h.