selxSSDMetric3rdPartyComponent.h 2.27 KB
Newer Older
Floris Berendsen's avatar
Floris Berendsen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*=========================================================================
 *
 *  Copyright Leiden University Medical Center, Erasmus University Medical 
 *  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
22
#ifndef SSDMetric3rdPartyComponent_h
#define SSDMetric3rdPartyComponent_h

23
24
#include "selxComponentBase.h"
#include "selxInterfaces.hxx"
25
#include "selxExample3rdPartyCode.h"
26

Floris Berendsen's avatar
Floris Berendsen committed
27
namespace selx
28
29
{
  // SSDMetric3rdPartyComponent provides a value and a derivative
30
  class SSDMetric3rdPartyComponent : 
31
    public SuperElastixComponent<
32
33
34
35
    Accepting<>,
    Providing< MetricDerivativeInterface, MetricValueInterface>
    >
  {
36
  public:
37
38
39
40
41
42
43
44
45
46
47
48
    /** Standard class typedefs. */
    typedef SSDMetric3rdPartyComponent                        Self;
    typedef ComponentBase Superclass;
    typedef itk::SmartPointer< Self >             Pointer;
    typedef itk::SmartPointer< const Self >       ConstPointer;

    /** New macro for creation of through the object factory. */
    itkNewMacro(Self);

    /** Run-time type information (and related methods). */
    itkTypeMacro(SSDMetric3rdPartyComponent, Superclass);

49
    SSDMetric3rdPartyComponent();
50
    virtual ~SSDMetric3rdPartyComponent();
51
    Example3rdParty::SSDMetric3rdParty* theImplementation;
52
53
    virtual int GetValue() override;
    virtual int GetDerivative() override;
54
    //virtual bool MeetsCriteria(const CriteriaType &criteria);
55
    virtual bool MeetsCriterion(const CriterionType &criterion) override;
Floris Berendsen's avatar
Floris Berendsen committed
56
57
    static const char * GetName(){ return "SSDMetric3rdPartyComponent"; }
    static const char * GetDescription(){ return "SSD Metric 3rd Party Component"; };
58
  };
Floris Berendsen's avatar
Floris Berendsen committed
59
} //end namespace selx
60
#endif // #define SSDMetric3rdPartyComponent_h