Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
Medical Imaging Interaction Toolkit
mitkConstraintCheckerInterface.h
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 
13 #ifndef CONSTRAINTCHECKER_INTERFACE_H
14 #define CONSTRAINTCHECKER_INTERFACE_H
15 
16 #include "mitkModelBase.h"
17 
18 #include "MitkModelFitExports.h"
19 
20 namespace mitk
21 {
27  {
28  public:
29 
31 
32  typedef double PenaltyValueType;
33  typedef itk::Array<PenaltyValueType> PenaltyArrayType;
34  typedef itk::Array<double> SignalType;
36 
41  virtual PenaltyArrayType GetPenalties(const ParametersType &parameters) const = 0;
42 
46  virtual PenaltyValueType GetPenaltySum(const ParametersType &parameters) const = 0;
47 
49  virtual unsigned int GetNumberOfConstraints() const = 0;
50 
52  virtual PenaltyValueType GetFailedConstraintValue() const = 0;
53 
54  protected:
55 
57  {}
58 
60  {}
61 
62  private:
64  void operator=(const ConstraintCheckerInterface&); //purposely not implemented
65  };
66 
67 }
68 
69 #endif // MODELFITCOSTFUNCTION_H
ModelTraitsInterface::ParametersType ParametersType
Definition: mitkModelBase.h:59
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKMODELFIT_EXPORT
itk::Array< PenaltyValueType > PenaltyArrayType