VTK
9.4.20241202
|
temporal cache ospray structures to speed flipbooks More...
#include <vtkOSPRayCache.h>
Public Member Functions | |
vtkOSPRayCache () | |
~vtkOSPRayCache () | |
void | Set (double tstep, std::shared_ptr< T > payload) |
Insert a new object into the cache. | |
std::shared_ptr< T > | Get (double tstep) |
Obtain an object from the cache. | |
bool | Contains (double tstep) |
Query whether cache contains tstep. | |
bool | HasRoom () |
Check if the cache has space left. | |
void | SetSize (size_t sz) |
Set/Get the number of slots available in the cache. | |
size_t | GetSize () |
Set/Get the number of slots available in the cache. | |
temporal cache ospray structures to speed flipbooks
A temporal cache of templated objects that are created on the first playthrough and reused afterward to speed up animations. Cache is first come first serve. In other words the first 'Size' Set() calls will succeed, later calls will be silently ignored. Decreasing the size of the cache frees all previously held contents.
This class is internal.
Definition at line 28 of file vtkOSPRayCache.h.
|
inline |
Definition at line 31 of file vtkOSPRayCache.h.
|
inline |
Definition at line 33 of file vtkOSPRayCache.h.
|
inline |
Insert a new object into the cache.
Definition at line 38 of file vtkOSPRayCache.h.
|
inline |
Obtain an object from the cache.
Return nullptr if none present at tstep.
Definition at line 51 of file vtkOSPRayCache.h.
|
inline |
Set/Get the number of slots available in the cache.
Default is 0.
Definition at line 66 of file vtkOSPRayCache.h.
|
inline |
Set/Get the number of slots available in the cache.
Default is 0.
Definition at line 78 of file vtkOSPRayCache.h.
|
inline |
Query whether cache contains tstep.
Definition at line 84 of file vtkOSPRayCache.h.
|
inline |
Check if the cache has space left.
Definition at line 89 of file vtkOSPRayCache.h.