Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Sending a message to the applications ProgressBar. More...
#include <mitkProgressBar.h>
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 ProgressBar * | GetInstance () |
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 ProgressBar * | m_Instance |
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.
|
protected |
Definition at line 69 of file mitkProgressBar.h.
|
protected |
Definition at line 70 of file mitkProgressBar.h.
|
protected |
Definition at line 140 of file mitkProgressBar.cpp.
Referenced by GetInstance().
|
protectedvirtual |
Definition at line 141 of file mitkProgressBar.cpp.
void mitk::ProgressBar::AddStepsToDo | ( | unsigned int | steps | ) |
Adds steps to totalSteps.
Adds steps to totalSteps.
Definition at line 72 of file mitkProgressBar.cpp.
References m_Implementations.
Referenced by QmitkSliceBasedInterpolatorWidget::AcceptAllInterpolations(), QmitkSlicesInterpolator::AcceptAllInterpolations(), mitk::ToolCommand::AddStepsToDo(), mitk::RegistrationBase::AddStepsToDo(), mitk::RigidRegistrationObserver::AddStepsToDo(), mitk::RigidRegistrationObserver::Execute(), mitk::ManualSegmentationToSurfaceFilter::GenerateData(), mitk::ContourModelSetToImageFilter::GenerateData(), mitk::ImageToSurfaceFilter::GenerateData(), mitk::SurfaceInterpolationController::Interpolate(), mitk::IOUtil::Load(), mitk::SceneReaderV1::LoadScene(), mitk::SegmentationsProcessingTool::ProcessAllObjects(), mitk::CreateSurfaceTool::ProcessOneWorkingData(), mitk::CalculateGrayValueStatisticsTool::ProcessOneWorkingData(), mitk::DicomSeriesReaderService::Read(), mitk::DataNodeFactory::ReadFileSeriesTypeDCM(), QmitkExtFileSaveProjectAction::Run(), mitk::IOUtil::Save(), mitk::SceneIO::SaveScene(), QmitkTrackingDeviceConfigurationWidgetScanPortsWorker::ScanPortsThreadFunc(), mitk::RegistrationBase::SetProgress(), QmitkTrackingDeviceConfigurationWidgetConnectionWorker::TestConnectionThreadFunc(), and mitk::AnisotropicIterativeClosestPointRegistration::Update().
|
virtual |
|
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.
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().
|
protected |
Definition at line 76 of file mitkProgressBar.h.
Referenced by AddStepsToDo(), Progress(), RegisterImplementationInstance(), Reset(), SetPercentageVisible(), and UnregisterImplementationInstance().
|
staticprotected |
Definition at line 78 of file mitkProgressBar.h.
Referenced by GetInstance().