47 ITK_DISALLOW_COPY_AND_ASSIGN(
Command);
82 template<
typename T >
109 m_MemberFunction = memberFunction;
116 m_ConstMemberFunction = memberFunction;
122 if ( m_MemberFunction )
124 ( ( *m_This ).*( m_MemberFunction ) )( caller, event );
132 if ( m_ConstMemberFunction )
134 ( ( *m_This ).*( m_ConstMemberFunction ) )( caller, event );
146 m_MemberFunction( nullptr ),
147 m_ConstMemberFunction( nullptr )
162 template<
typename T >
187 m_MemberFunction = memberFunction;
193 if ( m_MemberFunction )
195 ( ( *m_This ).*( m_MemberFunction ) )( event );
203 if ( m_MemberFunction )
205 ( ( *m_This ).*( m_MemberFunction ) )( event );
216 m_MemberFunction( nullptr )
231 template<
typename T >
238 using TMemberFunctionPointer = void (T::*)();
252 TMemberFunctionPointer memberFunction)
255 m_MemberFunction = memberFunction;
261 if ( m_MemberFunction )
263 ( ( *m_This ).*( m_MemberFunction ) )( );
270 if ( m_MemberFunction )
272 ( ( *m_This ).*( m_MemberFunction ) )( );
282 m_MemberFunction( nullptr )
297 template<
typename T >
321 m_MemberFunction = memberFunction;
327 if ( m_MemberFunction )
329 ( ( *m_This ).*( m_MemberFunction ) )( );
336 if ( m_MemberFunction )
338 ( ( *m_This ).*( m_MemberFunction ) )( );
348 m_MemberFunction( nullptr )
387 void SetClientData(
void *cd);
407 void * m_ClientData{
nullptr };
void Execute(Object *, const EventObject &event) override
TConstMemberFunctionPointer m_ConstMemberFunction
void(*)(void *) DeleteDataFunctionPointer
void Execute(Object *caller, const EventObject &event) override
TMemberFunctionPointer m_MemberFunction
void SetCallbackFunction(const T *object, TMemberFunctionPointer memberFunction)
TMemberFunctionPointer m_MemberFunction
void Execute(const Object *, const EventObject &) override
TMemberFunctionPointer m_MemberFunction
A Command subclass that calls a pointer to a C function.
TMemberFunctionPointer m_MemberFunction
A Command subclass that calls a pointer to a member function.
void Execute(const Object *, const EventObject &) override
void(*)(Object *, const EventObject &, void *) FunctionPointer
void Execute(Object *, const EventObject &) override
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
SimpleConstMemberCommand()
void(T::*)() const TMemberFunctionPointer
void Execute(Object *, const EventObject &) override
void(T::*)(const EventObject &) TMemberFunctionPointer
void SetCallbackFunction(T *object, TConstMemberFunctionPointer memberFunction)
int Execute(int argc, char *argv[])
A Command subclass that calls a pointer to a member function.
Abstraction of the Events used to communicating among filters and with GUIs.
A Command subclass that calls a pointer to a member function.
void(T::*)(const Object *, const EventObject &) TConstMemberFunctionPointer
void(*)(const Object *, const EventObject &, void *) ConstFunctionPointer
void Execute(const Object *, const EventObject &event) override
A Command subclass that calls a pointer to a member function.
class ITK_FORWARD_EXPORT Command
Base class for most ITK classes.
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
Superclass for callback/observer methods.
void(T::*)(Object *, const EventObject &) TMemberFunctionPointer
void Execute(const Object *caller, const EventObject &event) override
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)