VTK
9.4.20250311
|
Manages key types in vtkFiltering. More...
#include <vtkFilteringInformationKeyManager.h>
Public Member Functions | |
vtkFilteringInformationKeyManager () | |
~vtkFilteringInformationKeyManager () | |
Static Public Member Functions | |
static void | Register (vtkInformationKey *key) |
Called by constructors of vtkInformationKey subclasses defined in vtkFiltering to register themselves with the manager. | |
static void | AddFinalizer (std::function< void()> finalizer) |
Ensure that finalizer is invoked before ClassFinalizer() runs. | |
Manages key types in vtkFiltering.
vtkFilteringInformationKeyManager is included in the header of any subclass of vtkInformationKey defined in the vtkFiltering library. It makes sure that the table of keys is created before and destroyed after it is used.
Definition at line 29 of file vtkFilteringInformationKeyManager.h.
vtkFilteringInformationKeyManager::vtkFilteringInformationKeyManager | ( | ) |
vtkFilteringInformationKeyManager::~vtkFilteringInformationKeyManager | ( | ) |
|
static |
Called by constructors of vtkInformationKey subclasses defined in vtkFiltering to register themselves with the manager.
The instances will be deleted when vtkFiltering is unloaded on program exit.
|
static |
Ensure that finalizer is invoked before ClassFinalizer() runs.
If your application holds VTK objects (i.e., instances of classes that inherit vtkObjectBase) for its duration, then adding finalizer function that frees them will prevent this class's static ClassFinalizer() method from freeing keys that may be in use.