|
VTK
9.6.20260417
|
An RAII class to easily use vtkDataObjectMeshCache. More...
#include <vtkMeshCacheRunner.h>
Public Member Functions | |
| vtkMeshCacheRunner (vtkDataObjectMeshCache *cache, vtkDataObject *input, vtkDataObject *output, bool alwaysUpdate) | |
| Initialize the runner. | |
| ~vtkMeshCacheRunner () | |
| Cleanup temporary arrays, and update cache if AlwaysUpdateCache is true. | |
| void | UpdateCache () |
| Update the cache with output. | |
| bool | GetCacheLoaded () |
| Return true if the cache was loaded into output at construction. | |
An RAII class to easily use vtkDataObjectMeshCache.
At construction, it tries to copy the cache to the output, with sanity checks. At destruction, it cleans up temporary data arrays that may have been used and optionally update the cache with output.
Definition at line 26 of file vtkMeshCacheRunner.h.
| vtkMeshCacheRunner::vtkMeshCacheRunner | ( | vtkDataObjectMeshCache * | cache, |
| vtkDataObject * | input, | ||
| vtkDataObject * | output, | ||
| bool | alwaysUpdate ) |
Initialize the runner.
Do sanity checks and try to copy the cache into output. If output was updated from cache, GetCacheLoaded will return true.
| vtkMeshCacheRunner::~vtkMeshCacheRunner | ( | ) |
Cleanup temporary arrays, and update cache if AlwaysUpdateCache is true.
| void vtkMeshCacheRunner::UpdateCache | ( | ) |
Update the cache with output.
| bool vtkMeshCacheRunner::GetCacheLoaded | ( | ) |
Return true if the cache was loaded into output at construction.