#include <itkCommand.h>
Inheritance diagram for itk::CStyleCommand:
Public Types | |
typedef CStyleCommand | Self |
typedef SmartPointer< Self > | Pointer |
typedef void(* | FunctionPointer )(Object *, const EventObject &, void *) |
typedef void(* | ConstFunctionPointer )(const Object *, const EventObject &, void *) |
typedef void(* | DeleteDataFunctionPointer )(void *) |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
void | SetClientData (void *cd) |
void | SetClientDataDeleteCallback (DeleteDataFunctionPointer f) |
void | SetCallback (FunctionPointer f) |
void | SetConstCallback (ConstFunctionPointer f) |
void | Execute (Object *caller, const EventObject &event) |
void | Execute (const Object *caller, const EventObject &event) |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
CStyleCommand () | |
~CStyleCommand () | |
Protected Attributes | |
void * | m_ClientData |
FunctionPointer | m_Callback |
ConstFunctionPointer | m_ConstCallback |
DeleteDataFunctionPointer | m_ClientDataDeleteCallback |
CStyleCommand calls a pointer to a C function with the following arguments void func(Object *,void *clientdata) The clientdata is data that the command wants passed to itself each time.
Definition at line 357 of file itkCommand.h.
|
Typedefs for C-style callbacks. Definition at line 362 of file itkCommand.h. |
|
Typedefs for C-style callbacks. Definition at line 363 of file itkCommand.h. |
|
Typedefs for C-style callbacks. Definition at line 361 of file itkCommand.h. |
|
Reimplemented from itk::Command. Definition at line 368 of file itkCommand.h. |
|
Standard class typedefs. Reimplemented from itk::Command. Definition at line 367 of file itkCommand.h. |
|
Definition at line 412 of file itkCommand.h. |
|
Definition at line 416 of file itkCommand.h. |
|
Execute the callback function with a const Object Implements itk::Command. Definition at line 402 of file itkCommand.h. References m_ClientData, and m_ClientDataDeleteCallback. |
|
Execute the callback function. Implements itk::Command. Definition at line 392 of file itkCommand.h. |
|
Run-time type information (and related methods). Reimplemented from itk::Command. |
|
Method for creation through the object factory. Reimplemented from itk::Object. |
|
Set the C callback function pointer to be called at Execute time. Definition at line 381 of file itkCommand.h. References m_Callback, and m_ClientData. |
|
Set the client data that will be passed into the C function when it is called. Definition at line 378 of file itkCommand.h. References m_Callback. |
|
Set the callback to delete the client data. Definition at line 388 of file itkCommand.h. References m_ClientData, and m_ConstCallback. |
|
Set the C callback function pointer to be called at Execute time. Definition at line 383 of file itkCommand.h. |
|
Definition at line 424 of file itkCommand.h. Referenced by SetCallback(), and SetClientData(). |
|
Definition at line 423 of file itkCommand.h. Referenced by Execute(), SetCallback(), and SetClientDataDeleteCallback(). |
|
Definition at line 426 of file itkCommand.h. Referenced by Execute(). |
|
Definition at line 425 of file itkCommand.h. Referenced by SetClientDataDeleteCallback(). |