A Command class which allows setting an external function, or member function.
More...
#include <sitkFunctionCommand.h>
A Command class which allows setting an external function, or member function.
Definition at line 33 of file sitkFunctionCommand.h.
◆ FunctionObjectType
◆ Self
◆ ~FunctionCommand()
itk::simple::FunctionCommand::~FunctionCommand |
( |
| ) |
|
|
override |
◆ FunctionCommand()
itk::simple::FunctionCommand::FunctionCommand |
( |
| ) |
|
◆ Execute()
void itk::simple::FunctionCommand::Execute |
( |
| ) |
|
|
overridevirtual |
◆ SetCallbackFunction() [1/4]
void itk::simple::FunctionCommand::SetCallbackFunction |
( |
const std::function< void()> & |
| ) |
|
Set as a C++ function, which is compatible with lambdas.
◆ SetCallbackFunction() [2/4]
template<class T >
void itk::simple::FunctionCommand::SetCallbackFunction |
( |
T * |
object, |
|
|
void(T::*)() |
pMemberFunction |
|
) |
| |
|
inline |
Generic method to set a class's member function to be called in the Execute method.
Definition at line 51 of file sitkFunctionCommand.h.
◆ SetCallbackFunction() [3/4]
void itk::simple::FunctionCommand::SetCallbackFunction |
( |
void(*)() |
pFunction | ) |
|
Set a C-Style function to be called in the Execute method
◆ SetCallbackFunction() [4/4]
void itk::simple::FunctionCommand::SetCallbackFunction |
( |
void(*)(void *) |
pFunction, |
|
|
void * |
clientData |
|
) |
| |
Set a C-Style function with a void* clientData as an argument. The caller is responsible for managing the life of the clientData and that it's valid when Execute is called with the clientData.
◆ m_Function
The documentation for this class was generated from the following file: