#include <mitkLandmarkWarping.h>
Public Types | |
| typedef Observer | Self |
| typedef itk::Command | Superclass |
| typedef itk::SmartPointer< Self > | Pointer |
Public Member Functions | |
| void | Execute (itk::Object *object, const itk::EventObject &event) |
| void | Execute (const itk::Object *object, const itk::EventObject &) |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| Observer () | |
Protected Attributes | |
| unsigned int | m_Counter |
Definition at line 72 of file mitkLandmarkWarping.h.
| typedef itk::SmartPointer<Self> mitk::LandmarkWarping::Observer::Pointer |
Definition at line 77 of file mitkLandmarkWarping.h.
Definition at line 75 of file mitkLandmarkWarping.h.
| typedef itk::Command mitk::LandmarkWarping::Observer::Superclass |
Definition at line 76 of file mitkLandmarkWarping.h.
| mitk::LandmarkWarping::Observer::Observer | ( | ) | [inline, protected] |
| void mitk::LandmarkWarping::Observer::Execute | ( | itk::Object * | object, |
| const itk::EventObject & | event | ||
| ) | [inline] |
Definition at line 90 of file mitkLandmarkWarping.h.
{
Execute( (const itk::Object*) object, event );
}
| void mitk::LandmarkWarping::Observer::Execute | ( | const itk::Object * | object, |
| const itk::EventObject & | |||
| ) | [inline] |
Definition at line 95 of file mitkLandmarkWarping.h.
References mitk::ProgressBar::GetInstance(), m_Counter, and mitk::ProgressBar::Progress().
{
const itk::ProcessObject * internalFilter = dynamic_cast<const itk::ProcessObject *>( object );
if (!(internalFilter->GetProgress() == 0 || internalFilter->GetProgress() == 1))
{
++m_Counter;
mitk::ProgressBar::GetInstance()->Progress();
}
if (internalFilter->GetProgress() == 1 && m_Counter > 20 && m_Counter < 120)
{
mitk::ProgressBar::GetInstance()->Progress(120 - m_Counter);
m_Counter = 120;
}
}
| static Pointer mitk::LandmarkWarping::Observer::New | ( | ) | [static] |
unsigned int mitk::LandmarkWarping::Observer::m_Counter [protected] |
Definition at line 85 of file mitkLandmarkWarping.h.
Referenced by Execute(), and Observer().
1.7.2