Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkDescriptionParameterImageGeneratorBase.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
14 
17 
18 bool
20 {
21  bool result = this->GetMTime() > this->m_GenerationTimeStamp;
22 
23  return result;
24 };
25 
26 void
28 {
29 };
30 
31 
32 void
34 {
36 
37  if (!this->HasOutdatedResult())
38  { //still up to date -> nothing to do
39  return;
40  }
41 
42  ParameterImageMapType paramImages;
43 
45 
46  m_ParameterImageMap = paramImages;
47 
48  this->m_GenerationTimeStamp.Modified();
49 };
50 
53 {
54  if (this->HasOutdatedResult())
55  {
56  Generate();
57  }
58 
59 
60  return m_ParameterImageMap;
61 };
62 
std::map< ParameterNameType, Image::Pointer > ParameterImageMapType
virtual void DoParameterCalculationAndGetResults(ParameterImageMapType &parameterImages)=0