selxTransformComponent1.h 2.3 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 itkTransformComponent1_h
#define itkTransformComponent1_h
22

23
#include "selxSuperElastixComponent.h"
24

25
#include "selxExamplesInterfaces.h"
26
#include "selxMacro.h"
27

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

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

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

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

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

54
55
56
57
  virtual int GetTransformedImage() override { return 0; }
  virtual bool MeetsCriterion( const CriterionType & criterion ) override;

  static const char * GetDescription(){ return "Example Transform Component 1"; }
58

Floris Berendsen's avatar
Floris Berendsen committed
59
protected:
60

61
62
  TransformComponent1();
  virtual ~TransformComponent1()
63
64
65
  {
  }

66

67
private:
68
69
70

  TransformComponent1( const Self & ); // purposely not implemented
  void operator=( const Self & );      // purposely not implemented
71

72
  //virtual bool MeetsCriteria(const CriteriaType&);
73
};
Floris Berendsen's avatar
Floris Berendsen committed
74
} // end namespace selx
75

76
77
78
//#ifndef ITK_MANUAL_INSTANTIATION
//#include "itkTransformComponent1.hxx"
//#endif
79
80

#endif