Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryProgressProvider.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
18 #include "berryProgressProvider.h"
19 
20 namespace berry
21 {
22 
23 // returns the default NullProgressProvider
25 {
26  IProgressMonitor::Pointer sptr_progressGroup(new NullProgressMonitor());
27  return sptr_progressGroup;
28 }
29 
30 // returns the default NullProgressProvider
32 {
33  IProgressMonitor::Pointer sptr_defaultMonitor(new NullProgressMonitor());
34  return sptr_defaultMonitor;
35 }
36 
38  IProgressMonitor::Pointer /*group*/, int /*ticks*/)
39 {
40  //TODO SubProgressMonitor class
41  // not implemented yet ( because the subProgressMonitor class is not implemented )returns a dummy null IProgressMonitor
42  //Pointer
43  //return IProgressMonitor::Pointer sptr_subProgressMonitor (new SubProgressMonitor()) ;
44  IProgressMonitor::Pointer dummy(nullptr);
45  return dummy;
46 }
47 
48 }
itk::SmartPointer< Self > Pointer
virtual IProgressMonitor::Pointer CreateProgressGroup()
virtual IProgressMonitor::Pointer CreateMonitor(Job::Pointer job)=0
virtual IProgressMonitor::Pointer GetDefaultMonitor()