Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkModelParameterizerBase.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 
15 
17 {
18  m_DefaultTimeGrid.SetSize(1);
19  m_DefaultTimeGrid[0] = 0.0;
20 };
21 
23 {
24 };
25 
28 {
29  if (m_InitialDelegate.IsNotNull())
30  {
31  return m_InitialDelegate->GetInitialParameterization();
32  }
33 
34  return this->GetDefaultInitialParameterization();
35 }
36 
39 {
40  if (m_InitialDelegate.IsNotNull())
41  {
42  return m_InitialDelegate->GetInitialParameterization(currentPosition);
43  }
44 
45  return this->GetDefaultInitialParameterization();
46 }
47 
48 void
51 {
52  this->m_InitialDelegate = delegate;
53 };
virtual ParametersType GetDefaultInitialParameterization() const =0
ParametersType GetInitialParameterization() const
void SetInitialParameterizationDelegate(const InitialParameterizationDelegateBase *delegate)
ModelBaseType::ParametersType ParametersType
InitialParameterizationDelegateBase::ConstPointer m_InitialDelegate