VTK
|
temporal cache ospray structures to speed flipbooks More...
#include <vtkOSPRayVolumeCache.h>
Public Member Functions | |
vtkOSPRayVolumeCache () | |
~vtkOSPRayVolumeCache () | |
void | AddToCache (double tstep, OSPVolume payload) |
Insert a new volume into the cache. More... | |
OSPVolume | GetFromCache (double tstep) |
Obtain a volume from the cache. More... | |
void | SetSize (int) |
Set/Get the number of slots available in the cache. More... | |
int | GetSize () |
Set/Get the number of slots available in the cache. More... | |
temporal cache ospray structures to speed flipbooks
A temporal cache of ospray volumes 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' AddToCache calls will succeed, later calls will be silently ignored. Decreasing the size of the cache frees all previously held contents.
Definition at line 35 of file vtkOSPRayVolumeCache.h.
vtkOSPRayVolumeCache::vtkOSPRayVolumeCache | ( | ) |
vtkOSPRayVolumeCache::~vtkOSPRayVolumeCache | ( | ) |
void vtkOSPRayVolumeCache::AddToCache | ( | double | tstep, |
OSPVolume | payload | ||
) |
Insert a new volume into the cache.
OSPVolume vtkOSPRayVolumeCache::GetFromCache | ( | double | tstep | ) |
Obtain a volume from the cache.
Return nullptr if none present at tstep.
void vtkOSPRayVolumeCache::SetSize | ( | int | ) |
Set/Get the number of slots available in the cache.
Default is 0.
int vtkOSPRayVolumeCache::GetSize | ( | ) |
Set/Get the number of slots available in the cache.
Default is 0.