#include <freEvents.h>


Public Types | |
| typedef void(T::* | ProgEvent )(const long status, const std::string &sComment, void *pSender, long threadID) |
| typedef itk::SmartPointer < ProgressEvent< T > > | Pointer |
Public Member Functions | |
| virtual const char * | GetNameOfClass () const |
| virtual void | Execute (const long status, const std::string &sComment, void *pSender, long threadID=0) |
Static Public Member Functions | |
| static Pointer | New (T *pObject, ProgEvent pE) |
Protected Member Functions | |
| ProgressEvent (T *pObject, ProgEvent pPE) | |
Private Attributes | |
| T * | m_Object |
| ProgEvent | m_ProgressEvent |
ProgressEventBase is the generic event object within f.r.e.e. and used for realize callbacks to nonstatic member functions of f.r.e.e. Objects.
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 283 of file freEvents.h.
| typedef void(T::* FREE::ProgressEvent< T >::ProgEvent)(const long status, const std::string &sComment, void *pSender, long threadID) |
| typedef itk::SmartPointer<ProgressEvent<T> > FREE::ProgressEvent< T >::Pointer |
| FREE::ProgressEvent< T >::ProgressEvent | ( | T * | pObject, | |
| ProgEvent | pPE | |||
| ) | [inline, protected] |
Definition at line 297 of file freEvents.h.
| static Pointer FREE::ProgressEvent< T >::New | ( | T * | pObject, | |
| ProgEvent | pE | |||
| ) | [inline, static] |
Definition at line 289 of file freEvents.h.
Referenced by FREE::PrecisionSOMetric< VImageDimension >::PrecisionSOMetric().
| virtual const char* FREE::ProgressEvent< T >::GetNameOfClass | ( | ) | const [inline, virtual] |
| virtual void FREE::ProgressEvent< T >::Execute | ( | const long | status, | |
| const std::string & | sComment, | |||
| void * | pSender, | |||
| long | threadID = 0 | |||
| ) | [inline, virtual] |
Event type that is used, if an iteration is finished. The current values and position of the optimizer are passed with the event. pSender is the pointer to the object how called the event.
| [in] | iStatusID | ID of the current status of progress. |
| [in] | sComment | String for adding any comments concerning the new status. |
| [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::ProgressEventBase.
Definition at line 313 of file freEvents.h.
T* FREE::ProgressEvent< T >::m_Object [private] |
Definition at line 290 of file freEvents.h.
Referenced by FREE::ProgressEvent< FREE::PrecisionSOMetric< VImageDimension > >::Execute(), and FREE::ProgressEvent< FREE::PrecisionSOMetric< VImageDimension > >::ProgressEvent().
ProgEvent FREE::ProgressEvent< T >::m_ProgressEvent [private] |
Reimplemented from FREE::ProgressEventBase.
Definition at line 294 of file freEvents.h.
Referenced by FREE::ProgressEvent< FREE::PrecisionSOMetric< VImageDimension > >::Execute(), and FREE::ProgressEvent< FREE::PrecisionSOMetric< VImageDimension > >::ProgressEvent().
1.5.3 written by Dimitri van Heesch,
© 1997-2000