#include <freRegistrationEvents.h>


Public Types | |
| typedef void(T::* | NextIterationEvent )(const long lIteration, Statistics *pStatistic, void *pSender, long threadID) |
| typedef itk::SmartPointer < IterationEvent< T > > | Pointer |
Public Member Functions | |
| freNewEventMacro (IterationEvent, T, NextIterationEvent) | |
| itkTypeMacro (IterationEvent, IterationEventBase) | |
| virtual void | Execute (const long lIteration, Statistics *pStatistic, void *pSender, long threadID=0) |
Protected Member Functions | |
| IterationEvent (T *pObject, NextIterationEvent pNIE) | |
Private Attributes | |
| T * | m_Object |
| NextIterationEvent | m_IterationEvent |
IterationEvent is the event object for the interaction with RegistrationObserver. A RegistrationObserver makes a Callback by the use of this event Object.
Other then the EventBase this object is used by a class to pass a member function as a function pointer, to allow a callback. the template T is the class, which offers the function pointer. (This difference between Event and EventBase is needed, because the call of member function always passes a hidden pointer (this-pointer), unlike a global function.
Definition at line 120 of file freRegistrationEvents.h.
| typedef void(T::* FREE::IterationEvent< T >::NextIterationEvent)(const long lIteration, Statistics *pStatistic, void *pSender, long threadID) |
Reimplemented from FREE::IterationEventBase.
Definition at line 123 of file freRegistrationEvents.h.
| typedef itk::SmartPointer<IterationEvent<T> > FREE::IterationEvent< T >::Pointer |
Reimplemented from FREE::IterationEventBase.
Definition at line 125 of file freRegistrationEvents.h.
| FREE::IterationEvent< T >::IterationEvent | ( | T * | pObject, | |
| NextIterationEvent< T > | pNIE | |||
| ) | [inline, protected] |
Definition at line 135 of file freRegistrationEvents.h.
| FREE::IterationEvent< T >::freNewEventMacro | ( | IterationEvent< T > | , | |
| T | , | |||
| NextIterationEvent< T > | ||||
| ) |
| FREE::IterationEvent< T >::itkTypeMacro | ( | IterationEvent< T > | , | |
| IterationEventBase | ||||
| ) |
| virtual void FREE::IterationEvent< T >::Execute | ( | const long | lIteration, | |
| Statistics * | pStatistic, | |||
| void * | pSender, | |||
| long | threadID = 0 | |||
| ) | [inline, virtual] |
Event type that is used, if an iteration is finished. The actual values and position of the optimizer are passed with the event. pSender is the pointer to the object how called the event.
| [in] | lIteration | Number of the iteration. |
| [in] | OptimizerValue | Actual value of the optimizer when the event was called. |
| [in] | OptimizerPosition | Actual position of the transformation. |
| [in] | pSender | Pointer to the object, which called the event. |
| [in] | threadID | ID of the Thread executing the event. By default this value is 0. This ID is not unique over the complete system, it should only be assumed that it is unique in the context of the sender. |
Reimplemented from FREE::IterationEventBase.
Definition at line 152 of file freRegistrationEvents.h.
T* FREE::IterationEvent< T >::m_Object [private] |
Definition at line 131 of file freRegistrationEvents.h.
Referenced by FREE::IterationEvent< FREE::SetupOptimizationMetric >::Execute(), and FREE::IterationEvent< FREE::SetupOptimizationMetric >::IterationEvent().
NextIterationEvent FREE::IterationEvent< T >::m_IterationEvent [private] |
Reimplemented from FREE::IterationEventBase.
Definition at line 132 of file freRegistrationEvents.h.
Referenced by FREE::IterationEvent< FREE::SetupOptimizationMetric >::Execute(), and FREE::IterationEvent< FREE::SetupOptimizationMetric >::IterationEvent().
1.5.3 written by Dimitri van Heesch,
© 1997-2000