selxMetricComponent1.h 2.44 KB
Newer Older
Floris Berendsen's avatar
Floris Berendsen committed
1
2
/*=========================================================================
 *
3
 *  Copyright Leiden University Medical Center, Erasmus University Medical
Floris Berendsen's avatar
Floris Berendsen committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 *  Center and contributors
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0.txt
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 *=========================================================================*/

20
21
#ifndef itkMetricComponent1_h
#define itkMetricComponent1_h
22

23
#include "selxSuperElastixComponent.h"
24
#include "selxExamplesInterfaces.h"
25
#include "selxMacro.h"
26

Floris Berendsen's avatar
Floris Berendsen committed
27
namespace selx
28
{
29
30
31
32
class MetricComponent1 :
  public SuperElastixComponent<
  Accepting< TransformedImageInterface >,
  Providing< MetricValueInterface >
Floris Berendsen's avatar
Floris Berendsen committed
33
  >
34
35
{
public:
36

37
  /** Standard class typedefs. */
38
39
40
41
  typedef MetricComponent1                Self;
  typedef ComponentBase                   Superclass;
  typedef itk::SmartPointer< Self >       Pointer;
  typedef itk::SmartPointer< const Self > ConstPointer;
42
43

  /** New macro for creation of through the object factory. */
44
  //selxNewMacro(Self, ComponentBase);
45
  itkNewMacro( Self );
46
47

  /** Run-time type information (and related methods). */
48
49
50
  itkTypeMacro( MetricComponent1, ComponentBase );

  typedef Superclass::CriteriaType  CriteriaType;
Floris Berendsen's avatar
Floris Berendsen committed
51
  typedef Superclass::CriterionType CriterionType;
52

53
54
  virtual int Set( TransformedImageInterface * ) override;

55
  virtual int GetValue() override { return 0; }
56

Floris Berendsen's avatar
Floris Berendsen committed
57
  //std::string GetComponentTypeAsString() const;
58
  //static const char * GetName(){ return "MetricComponent1"; };
59
60
  static const char * GetDescription(){ return "Example Metric Component 1"; }

61
62
protected:

63
64
  MetricComponent1();
  virtual ~MetricComponent1()
65
66
67
  {
  }

68

69
70
private:

71
72
  MetricComponent1( const Self & ); // purposely not implemented
  void operator=( const Self & );   // purposely not implemented
73

74
75
76
  virtual bool MeetsCriterion( const CriterionType & criterion );

  //virtual bool MeetsCriteria(const CriteriaType&);
77
};
Floris Berendsen's avatar
Floris Berendsen committed
78
} // end namespace selx
79

80
81
82
//#ifndef ITK_MANUAL_INSTANTIATION
//#include "itkMetricComponent1.hxx"
//#endif
83
84

#endif