manages data cache for flip book animations.
More...
#include <vtkPVCacheKeeper.h>
Inherits vtkDataObjectAlgorithm.
manages data cache for flip book animations.
vtkPVCacheKeeper manages data cache for flip book animations. When caching is disabled, this simply acts as a pass through filter. When caching is enabled, is the current time step has been previously cached then this filter shuts the update request, otherwise propagates the update and then cache the result for later use. The current time step is set using SetCacheTime().
- See also
- vtkPVCacheKeeperPipeline
Definition at line 37 of file vtkPVCacheKeeper.h.
§ Superclass
§ vtkPVCacheKeeper()
vtkPVCacheKeeper::vtkPVCacheKeeper |
( |
| ) |
|
|
protected |
§ ~vtkPVCacheKeeper()
vtkPVCacheKeeper::~vtkPVCacheKeeper |
( |
| ) |
|
|
protected |
§ New()
§ GetClassName()
virtual const char* vtkPVCacheKeeper::GetClassName |
( |
| ) |
|
|
virtual |
§ IsTypeOf()
static int vtkPVCacheKeeper::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
§ IsA()
virtual int vtkPVCacheKeeper::IsA |
( |
const char * |
type | ) |
|
|
virtual |
§ SafeDownCast()
§ PrintSelf()
void vtkPVCacheKeeper::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
§ RemoveAllCaches()
void vtkPVCacheKeeper::RemoveAllCaches |
( |
| ) |
|
Methods for saving, clearing and updating flip books.
This removes all saved cache.
§ SetCacheTime()
virtual void vtkPVCacheKeeper::SetCacheTime |
( |
double |
| ) |
|
|
virtual |
Set/Get the current cache time.
§ GetCacheTime()
virtual double vtkPVCacheKeeper::GetCacheTime |
( |
| ) |
|
|
virtual |
Set/Get the current cache time.
§ IsCached() [1/2]
bool vtkPVCacheKeeper::IsCached |
( |
double |
cacheTime | ) |
|
Returns if the given cacheTime
is available in the cache.
Does not cause any updates.
§ IsCached() [2/2]
bool vtkPVCacheKeeper::IsCached |
( |
| ) |
|
|
inline |
§ SetCachingEnabled()
virtual void vtkPVCacheKeeper::SetCachingEnabled |
( |
bool |
| ) |
|
|
virtual |
Get/Set if caching is enabled.
Default is true.
§ GetCachingEnabled()
virtual bool vtkPVCacheKeeper::GetCachingEnabled |
( |
| ) |
|
|
virtual |
Get/Set if caching is enabled.
Default is true.
§ CachingEnabledOn()
virtual void vtkPVCacheKeeper::CachingEnabledOn |
( |
| ) |
|
|
virtual |
Get/Set if caching is enabled.
Default is true.
§ CachingEnabledOff()
virtual void vtkPVCacheKeeper::CachingEnabledOff |
( |
| ) |
|
|
virtual |
Get/Set if caching is enabled.
Default is true.
§ ClearCacheStateFlags()
static void vtkPVCacheKeeper::ClearCacheStateFlags |
( |
| ) |
|
|
static |
These methods are used for testing.
Using this global state we can add checks to ensure that cache was used or not used for a particular sequence of actions.
§ GetCacheHits()
static int vtkPVCacheKeeper::GetCacheHits |
( |
| ) |
|
|
static |
These methods are used for testing.
Using this global state we can add checks to ensure that cache was used or not used for a particular sequence of actions.
§ GetCacheMisses()
static int vtkPVCacheKeeper::GetCacheMisses |
( |
| ) |
|
|
static |
These methods are used for testing.
Using this global state we can add checks to ensure that cache was used or not used for a particular sequence of actions.
§ GetCacheSkips()
static int vtkPVCacheKeeper::GetCacheSkips |
( |
| ) |
|
|
static |
These methods are used for testing.
Using this global state we can add checks to ensure that cache was used or not used for a particular sequence of actions.
§ SetCacheSizeKeeper()
Get/Set the cache size keeper.
The cacher reports its cache size to this keeper, if any.
§ GetCacheSizeKeeper()
Get/Set the cache size keeper.
The cacher reports its cache size to this keeper, if any.
§ RequestDataObject()
int vtkPVCacheKeeper::RequestDataObject |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protected |
§ RequestData()
int vtkPVCacheKeeper::RequestData |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protected |
§ CreateDefaultExecutive()
virtual vtkExecutive* vtkPVCacheKeeper::CreateDefaultExecutive |
( |
| ) |
|
|
protectedvirtual |
§ SaveData()
bool vtkPVCacheKeeper::SaveData |
( |
vtkDataObject * |
| ) |
|
|
protected |
Called to save the data in cache.
Returns true if data is saved otherwise false.
§ CachingEnabled
bool vtkPVCacheKeeper::CachingEnabled |
|
protected |
§ CacheTime
double vtkPVCacheKeeper::CacheTime |
|
protected |
§ CacheSizeKeeper
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/ParaView-v5.2.0/ParaViewCore/ClientServerCore/Rendering/vtkPVCacheKeeper.h