70 void operator=(const
Self &) ITK_DELETE_FUNCTION;
84 template< typename T >
90 typedef void ( T::*TConstMemberFunctionPointer )(
const Object *,
107 TMemberFunctionPointer memberFunction)
110 m_MemberFunction = memberFunction;
114 TConstMemberFunctionPointer memberFunction)
117 m_ConstMemberFunction = memberFunction;
123 if ( m_MemberFunction )
125 ( ( *m_This ).*( m_MemberFunction ) )( caller, event );
133 if ( m_ConstMemberFunction )
135 ( ( *m_This ).*( m_ConstMemberFunction ) )( caller, event );
146 m_This( ITK_NULLPTR ),
147 m_MemberFunction( ITK_NULLPTR ),
148 m_ConstMemberFunction( ITK_NULLPTR )
155 void operator=(const Self &) ITK_DELETE_FUNCTION;
167 template< typename T >
187 TMemberFunctionPointer memberFunction)
190 m_MemberFunction = memberFunction;
196 if ( m_MemberFunction )
198 ( ( *m_This ).*( m_MemberFunction ) )( event );
206 if ( m_MemberFunction )
208 ( ( *m_This ).*( m_MemberFunction ) )( event );
218 m_This( ITK_NULLPTR ),
219 m_MemberFunction( ITK_NULLPTR )
226 void operator=(const Self &) ITK_DELETE_FUNCTION;
238 template< typename T >
243 typedef void ( T::*TMemberFunctionPointer )();
257 TMemberFunctionPointer memberFunction)
260 m_MemberFunction = memberFunction;
266 if ( m_MemberFunction )
268 ( ( *m_This ).*( m_MemberFunction ) )( );
275 if ( m_MemberFunction )
277 ( ( *m_This ).*( m_MemberFunction ) )( );
286 m_This( ITK_NULLPTR ),
287 m_MemberFunction( ITK_NULLPTR )
294 void operator=(const Self &) ITK_DELETE_FUNCTION;
306 template< typename T >
311 typedef void ( T::*TMemberFunctionPointer )()
const;
325 TMemberFunctionPointer memberFunction)
328 m_MemberFunction = memberFunction;
334 if ( m_MemberFunction )
336 ( ( *m_This ).*( m_MemberFunction ) )( );
343 if ( m_MemberFunction )
345 ( ( *m_This ).*( m_MemberFunction ) )( );
354 m_This( ITK_NULLPTR ),
355 m_MemberFunction( ITK_NULLPTR )
362 void operator=(const Self &) ITK_DELETE_FUNCTION;
382 typedef void ( *ConstFunctionPointer )(
const Object *,
383 const EventObject &,
void *);
384 typedef void ( *DeleteDataFunctionPointer )(
void *);
399 void SetClientData(
void *cd);
402 void SetCallback(FunctionPointer f);
403 void SetConstCallback(ConstFunctionPointer f);
407 void SetClientDataDeleteCallback(DeleteDataFunctionPointer f);
410 virtual void Execute(
Object *caller,
const EventObject & event) ITK_OVERRIDE;
413 virtual void Execute(
const Object *caller,
const EventObject & event) ITK_OVERRIDE;
FunctionPointer m_Callback
virtual void Execute(Object *, const EventObject &event) override
ReceptorMemberCommand Self
SmartPointer< Self > Pointer
TConstMemberFunctionPointer m_ConstMemberFunction
TMemberFunctionPointer m_MemberFunction
void SetCallbackFunction(const T *object, TMemberFunctionPointer memberFunction)
TMemberFunctionPointer m_MemberFunction
SmartPointer< Self > Pointer
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.
virtual void Execute(Object *, const EventObject &) override
virtual ~ReceptorMemberCommand()
virtual void Execute(Object *, const EventObject &) override
virtual void Execute(const Object *, const EventObject &) override
virtual ~SimpleConstMemberCommand()
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
SimpleConstMemberCommand()
ConstFunctionPointer m_ConstCallback
virtual void Execute(const Object *, const EventObject &event) override
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
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.
DeleteDataFunctionPointer m_ClientDataDeleteCallback
virtual ~SimpleMemberCommand()
virtual void Execute(Object *caller, const EventObject &event) override
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
A Command subclass that calls a pointer to a member function.
virtual void Execute(const Object *, const EventObject &) override
SmartPointer< Self > Pointer
Base class for most ITK classes.
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)
virtual void Execute(const Object *caller, const EventObject &event) override
Superclass for callback/observer methods.
SimpleConstMemberCommand Self
void SetCallbackFunction(T *object, TMemberFunctionPointer memberFunction)