48 ITK_DISALLOW_COPY_AND_MOVE(
Command);
112 m_MemberFunction = memberFunction;
119 m_ConstMemberFunction = memberFunction;
126 if (m_MemberFunction)
128 (m_This->*(m_MemberFunction))(caller, event);
137 if (m_ConstMemberFunction)
139 (m_This->*(m_ConstMemberFunction))(caller, event);
145 T * m_This{
nullptr };
188 m_MemberFunction = memberFunction;
195 if (m_MemberFunction)
197 (m_This->*(m_MemberFunction))(event);
206 if (m_MemberFunction)
208 (m_This->*(m_MemberFunction))(event);
214 T * m_This{
nullptr };
255 m_MemberFunction = memberFunction;
262 if (m_MemberFunction)
264 (m_This->*(m_MemberFunction))();
272 if (m_MemberFunction)
274 (m_This->*(m_MemberFunction))();
279 T * m_This{
nullptr };
320 m_MemberFunction = memberFunction;
327 if (m_MemberFunction)
329 (m_This->*(m_MemberFunction))();
337 if (m_MemberFunction)
339 (m_This->*(m_MemberFunction))();
344 const T * m_This{
nullptr };
411 void * m_ClientData{
nullptr };
A Command subclass that calls a pointer to a C function.
void Execute(Object *caller, const EventObject &event) override
void(*)(void *) DeleteDataFunctionPointer
~CStyleCommand() override
void Execute(const Object *caller, const EventObject &event) override
void(*)(Object *, const EventObject &, void *) FunctionPointer
void SetCallback(FunctionPointer f)
void(*)(const Object *, const EventObject &, void *) ConstFunctionPointer
void SetConstCallback(ConstFunctionPointer f)
void SetClientData(void *cd)
void SetClientDataDeleteCallback(DeleteDataFunctionPointer f)
Superclass for callback/observer methods.
virtual void Execute(Object *caller, const EventObject &event)=0
virtual void Execute(const Object *caller, const EventObject &event)=0
Abstraction of the Events used to communicating among filters and with GUIs.
A Command subclass that calls a std::function object.
std::function< void(const EventObject &)> FunctionObjectType
~FunctionCommand() override
void Execute(Object *, const EventObject &event) override
void SetCallback(FunctionObjectType f)
void Execute(const Object *, const EventObject &event) override
A Command subclass that calls a pointer to a member function.
void(T::*)(Object *, const EventObject &) TMemberFunctionPointer
void Execute(const Object *caller, const EventObject &event) override
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
void SetCallbackFunction(T *object, TConstMemberFunctionPointer memberFunction)
void(T::*)(const Object *, const EventObject &) TConstMemberFunctionPointer
void Execute(Object *caller, const EventObject &event) override
~MemberCommand() override=default
Base class for most ITK classes.
A Command subclass that calls a pointer to a member function.
~ReceptorMemberCommand() override=default
void(T::*)(const EventObject &) TMemberFunctionPointer
ReceptorMemberCommand()=default
void Execute(Object *, const EventObject &event) override
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
void Execute(const Object *, const EventObject &event) override
A Command subclass that calls a pointer to a member function.
~SimpleConstMemberCommand() override=default
SimpleConstMemberCommand()=default
void Execute(const Object *, const EventObject &) override
void Execute(Object *, const EventObject &) override
void(T::*)() const TMemberFunctionPointer
void SetCallbackFunction(const T *object, TMemberFunctionPointer memberFunction)
A Command subclass that calls a pointer to a member function.
~SimpleMemberCommand() override=default
void Execute(const Object *, const EventObject &) override
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
void(T::*)() TMemberFunctionPointer
void Execute(Object *, const EventObject &) override
SimpleMemberCommand()=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
class ITK_FORWARD_EXPORT Command