44 #ifndef vtkCallbackCommand_h 45 #define vtkCallbackCommand_h 47 #include "vtkCommonCoreModule.h" 66 void *callData)
override;
73 { this->ClientData = cd; }
75 {
return this->ClientData; }
77 void *clientdata,
void *calldata))
78 { this->Callback = f; }
80 { this->ClientDataDeleteCallback = f; }
88 { this->AbortFlagOnExecute = f; }
90 {
return this->AbortFlagOnExecute; }
92 { this->SetAbortFlagOnExecute(1); }
94 { this->SetAbortFlagOnExecute(0); }
96 void (*Callback)(
vtkObject *,
unsigned long,
void *,
void *);
97 void (*ClientDataDeleteCallback)(
void *);
virtual void Execute(vtkObject *caller, unsigned long eventId, void *callData)=0
All derived classes of vtkCommand must implement this method.
virtual void SetClientData(void *cd)
Methods to set and get client and callback information, and the callback function.
abstract base class for most VTK objects
static vtkCallbackCommand * New()
virtual void SetClientDataDeleteCallback(void(*f)(void *))
void SetAbortFlagOnExecute(int f)
Set/Get the abort flag on execute.
virtual void * GetClientData()
superclass for callback/observer methods
supports function callbacks
void AbortFlagOnExecuteOn()
int GetAbortFlagOnExecute()
void AbortFlagOnExecuteOff()
virtual void SetCallback(void(*f)(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata))