Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ProgressBar Class Reference

Sending a message to the applications ProgressBar. More...

#include <mitkProgressBar.h>

Inheritance diagram for mitk::ProgressBar:
Collaboration diagram for mitk::ProgressBar:

Public Member Functions

virtual const char * GetClassName () const
 
void RegisterImplementationInstance (ProgressBarImplementation *implementation)
 Supply a GUI- dependent ProgressBar. Has to be set by the application to connect the application dependent subclass of mitkProgressBar. More...
 
void UnregisterImplementationInstance (ProgressBarImplementation *implementation)
 
void AddStepsToDo (unsigned int steps)
 Adds steps to totalSteps. More...
 
void Reset ()
 Explicitly reset progress bar. More...
 
void Progress (unsigned int steps=1)
 Sets the current amount of progress to current progress + steps. More...
 
void SetPercentageVisible (bool visible)
 Sets whether the current progress value is displayed. More...
 

Static Public Member Functions

static ProgressBarGetInstance ()
 static method to get the GUI dependent ProgressBar-instance so the methods for steps to do and progress can be called No reference counting, cause of decentral static use! More...
 

Protected Types

typedef std::vector< ProgressBarImplementation * > ProgressBarImplementationsList
 
typedef ProgressBarImplementationsList::iterator ProgressBarImplementationsListIterator
 

Protected Member Functions

 ProgressBar ()
 
virtual ~ProgressBar ()
 

Protected Attributes

ProgressBarImplementationsList m_Implementations
 

Static Protected Attributes

static ProgressBarm_Instance
 

Detailed Description

Sending a message to the applications ProgressBar.

Holds a GUI dependent ProgressBarImplementation and sends the progress further. All mitk-classes use this class to display progress on GUI-ProgressBar. The mainapplication has to set the internal held ProgressBarImplementation with SetImplementationInstance(..).

Definition at line 33 of file mitkProgressBar.h.

Member Typedef Documentation

Definition at line 69 of file mitkProgressBar.h.

typedef ProgressBarImplementationsList::iterator mitk::ProgressBar::ProgressBarImplementationsListIterator
protected

Definition at line 70 of file mitkProgressBar.h.

Constructor & Destructor Documentation

mitk::ProgressBar::ProgressBar ( )
protected

Definition at line 140 of file mitkProgressBar.cpp.

Referenced by GetInstance().

mitk::ProgressBar::~ProgressBar ( )
protectedvirtual

Definition at line 141 of file mitkProgressBar.cpp.

Member Function Documentation

virtual const char* mitk::ProgressBar::GetClassName ( ) const
virtual
ProgressBar * mitk::ProgressBar::GetInstance ( )
static

static method to get the GUI dependent ProgressBar-instance so the methods for steps to do and progress can be called No reference counting, cause of decentral static use!

Get the instance of this ProgressBar

Definition at line 110 of file mitkProgressBar.cpp.

References m_Instance, and ProgressBar().

Referenced by QmitkSliceBasedInterpolatorWidget::AcceptAllInterpolations(), QmitkSlicesInterpolator::AcceptAllInterpolations(), mitk::ToolCommand::AddStepsToDo(), mitk::RegistrationBase::AddStepsToDo(), mitk::RigidRegistrationObserver::AddStepsToDo(), QmitkDemonsRegistrationView::CalculateTransformation(), mitk::ImageToSurfaceFilter::CreateSurface(), mitk::ToolCommand::Execute(), mitk::RigidRegistrationObserver::Execute(), mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), mitk::ManualSegmentationToSurfaceFilter::GenerateData(), mitk::ContourModelSetToImageFilter::GenerateData(), mitk::ImageToSurfaceFilter::GenerateData(), mitk::ImageToContourFilter::GenerateData(), mitk::ComputeContourSetNormalsFilter::GenerateData(), mitk::ReduceContourSetFilter::GenerateData(), mitk::CreateDistanceImageFromSurfaceFilter::GenerateData(), mitk::SurfaceInterpolationController::Interpolate(), mitk::IOUtil::Load(), mitk::SceneReaderV1::LoadScene(), mitk::TractAnalyzer::MakeRoi(), QmitkWatershedToolGUI::OnCreateSegmentation(), mitk::CreateSurfaceTool::OnSurfaceCalculationDone(), mitk::SegmentationsProcessingTool::ProcessAllObjects(), mitk::CreateSurfaceTool::ProcessOneWorkingData(), mitk::CalculateGrayValueStatisticsTool::ProcessOneWorkingData(), QmitkProgressBar::QmitkProgressBar(), mitk::DicomSeriesReaderService::Read(), mitk::DataNodeFactory::ReadFileSeriesTypeDCM(), QmitkExtFileSaveProjectAction::Run(), mitk::IOUtil::Save(), mitk::SceneIO::SaveScene(), QmitkTrackingDeviceConfigurationWidgetScanPortsWorker::ScanPortsThreadFunc(), mitk::ToolCommand::SetProgress(), mitk::RegistrationBase::SetProgress(), mitk::RegistrationBase::SetRemainingProgress(), mitk::RigidRegistrationObserver::SetRemainingProgress(), QmitkTrackingDeviceConfigurationWidgetConnectionWorker::TestConnectionThreadFunc(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateFunction(), mitk::AnisotropicIterativeClosestPointRegistration::Update(), and QmitkProgressBar::~QmitkProgressBar().

void mitk::ProgressBar::Progress ( unsigned int  steps = 1)

Sets the current amount of progress to current progress + steps.

Parameters

Definition at line 34 of file mitkProgressBar.cpp.

References m_Implementations.

Referenced by QmitkSliceBasedInterpolatorWidget::AcceptAllInterpolations(), QmitkSlicesInterpolator::AcceptAllInterpolations(), QmitkDemonsRegistrationView::CalculateTransformation(), mitk::ImageToSurfaceFilter::CreateSurface(), mitk::ToolCommand::Execute(), mitk::RigidRegistrationObserver::Execute(), mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), mitk::ManualSegmentationToSurfaceFilter::GenerateData(), mitk::ContourModelSetToImageFilter::GenerateData(), mitk::ImageToSurfaceFilter::GenerateData(), mitk::ImageToContourFilter::GenerateData(), mitk::ComputeContourSetNormalsFilter::GenerateData(), mitk::ReduceContourSetFilter::GenerateData(), mitk::CreateDistanceImageFromSurfaceFilter::GenerateData(), mitk::SurfaceInterpolationController::Interpolate(), mitk::IOUtil::Load(), mitk::SceneReaderV1::LoadScene(), mitk::TractAnalyzer::MakeRoi(), QmitkWatershedToolGUI::OnCreateSegmentation(), mitk::CreateSurfaceTool::OnSurfaceCalculationDone(), mitk::SegmentationsProcessingTool::ProcessAllObjects(), mitk::CalculateGrayValueStatisticsTool::ProcessOneWorkingData(), mitk::DicomSeriesReaderService::Read(), mitk::DataNodeFactory::ReadFileSeriesTypeDCM(), QmitkExtFileSaveProjectAction::Run(), mitk::IOUtil::Save(), mitk::SceneIO::SaveScene(), QmitkTrackingDeviceConfigurationWidgetScanPortsWorker::ScanPortsThreadFunc(), mitk::ToolCommand::SetProgress(), mitk::RegistrationBase::SetProgress(), mitk::RegistrationBase::SetRemainingProgress(), mitk::RigidRegistrationObserver::SetRemainingProgress(), QmitkTrackingDeviceConfigurationWidgetConnectionWorker::TestConnectionThreadFunc(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateFunction(), and mitk::AnisotropicIterativeClosestPointRegistration::Update().

void mitk::ProgressBar::RegisterImplementationInstance ( ProgressBarImplementation implementation)

Supply a GUI- dependent ProgressBar. Has to be set by the application to connect the application dependent subclass of mitkProgressBar.

Set an instance of this; application must do this!See Header!

Definition at line 123 of file mitkProgressBar.cpp.

References m_Implementations.

Referenced by QmitkProgressBar::QmitkProgressBar().

void mitk::ProgressBar::Reset ( )

Explicitly reset progress bar.

Explicitely reset progress bar.

Definition at line 53 of file mitkProgressBar.cpp.

References m_Implementations.

Referenced by QmitkSliceBasedInterpolatorWidget::AcceptAllInterpolations().

void mitk::ProgressBar::SetPercentageVisible ( bool  visible)

Sets whether the current progress value is displayed.

Sets whether the current progress value is displayed.

Definition at line 91 of file mitkProgressBar.cpp.

References m_Implementations.

void mitk::ProgressBar::UnregisterImplementationInstance ( ProgressBarImplementation implementation)

Definition at line 131 of file mitkProgressBar.cpp.

References m_Implementations.

Referenced by QmitkProgressBar::~QmitkProgressBar().

Member Data Documentation

ProgressBar * mitk::ProgressBar::m_Instance
staticprotected

Definition at line 78 of file mitkProgressBar.h.

Referenced by GetInstance().


The documentation for this class was generated from the following files: