22 #ifndef vtkOldStyleCallbackCommand_h
23 #define vtkOldStyleCallbackCommand_h
26 #include "vtkCommonCoreModule.h"
30 VTK_ABI_NAMESPACE_BEGIN
43 void Execute(
vtkObject* invoker,
unsigned long eid,
void* calldata)
override;
50 void SetCallback(
void (*f)(
void* clientdata)) { this->Callback = f; }
55 void (*Callback)(
void*);
56 void (*ClientDataDeleteCallback)(
void*);
virtual void Execute(vtkObject *caller, unsigned long eventId, void *callData)=0
All derived classes of vtkCommand must implement this method.
abstract base class for most VTK objects
void SetClientData(void *cd)
Methods to set and get client and callback information.
superclass for callback/observer methods
#define VTK_DEPRECATED_IN_9_6_0(reason)
supports legacy function callbacks for VTK
static vtkOldStyleCallbackCommand * New()
void SetCallback(void(*f)(void *clientdata))
Methods to set and get client and callback information.
void SetClientDataDeleteCallback(void(*f)(void *))
Methods to set and get client and callback information.