Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkRegistrationBase.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
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 
17 #include "mitkRegistrationBase.h"
18 #include "mitkProgressBar.h"
19 
20 namespace mitk
21 {
25  {
26  m_ReferenceImage = fixedImage;
27  SetNthInput(1, m_ReferenceImage);
28  Modified();
29  }
30 
31  void RegistrationBase::SetProgress(const itk::EventObject &)
32  {
35  }
36 
39 }
void Progress(unsigned int steps=1)
Sets the current amount of progress to current progress + steps.
DataCollection - Class to facilitate loading/accessing structured data.
virtual void SetReferenceImage(Image::Pointer fixedImage)
Sets the reference image (fixed image) for the registration.
virtual void SetRemainingProgress(int steps)
Sets the remaining progress to the progress bar.
static ProgressBar * GetInstance()
static method to get the GUI dependent ProgressBar-instance so the methods for steps to do and progre...
virtual void AddStepsToDo(int steps)
Adds steps to the progress bar, which will be done with AddStepsToDo(int steps) and SetRemainingProgr...
virtual void SetProgress(const itk::EventObject &)
Sets one step of progress to the progress bar.
static Pointer New()
void AddStepsToDo(unsigned int steps)
Adds steps to totalSteps.
RegistrationBase()
Default constructor.
virtual ~RegistrationBase()
Default destructor.