SoCpuBufferObjectCache Class Reference

VSG extension CPUBufferObject cache management class. More...

#include <Inventor/caches/SoCpuBufferObjectCache.h>

List of all members.

Public Member Functions

virtual void flush ()
virtual void resize (const size_t newSize)
virtual size_t getSize ()

Detailed Description

VSG extension CPUBufferObject cache management class.

A base class used to manage a simple cache of SoCpuBufferObject objects.

SoBufferObject creates an instance of this class that is primarily used for the LDM tile cache (see SoLDMGlobalResourceParameters for more information). The buffer object cache can be accessed using the SoBufferObject static method getBufferObjectCache. Default size is 50 or the value of OIV_BUFFER_OBJECT_CACHE_SIZE.

This class was added in Open Inventor 8.5.


Member Function Documentation

virtual void SoCpuBufferObjectCache::flush (  )  [virtual]

Remove all unused buffers (ref count = 0) from the cache.

virtual size_t SoCpuBufferObjectCache::getSize (  )  [virtual]

Return the max size of the cache (number of buffers).

virtual void SoCpuBufferObjectCache::resize ( const size_t  newSize  )  [virtual]

Resize cache to the given size.

Parameters:
newSize new size for the cache (number of buffers).
Default is 50 or the value specified for OIV_BUFFER_OBJECT_CACHE_SIZE.

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

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/