Commit c9123918 authored by Floris Berendsen's avatar Floris Berendsen
Browse files

COMP: renamed Implements to SuperElastixComponent

parent 0ac374c2
......@@ -29,7 +29,7 @@ namespace selx
{
template <class InternalComputationValueType, int Dimensionality>
class ItkGaussianExponentialDiffeomorphicTransformComponent :
public Implements<
public SuperElastixComponent<
Accepting< itkImageDomainFixedInterface<Dimensionality> >,
Providing< itkTransformInterface<InternalComputationValueType,Dimensionality>,
RunRegistrationInterface>
......
......@@ -29,7 +29,7 @@ namespace selx
{
template <class InternalComputationValueType>
class ItkGradientDescentOptimizerv4Component :
public Implements<
public SuperElastixComponent<
Accepting< >,
Providing< itkOptimizerv4Interface<InternalComputationValueType>>
>
......
......@@ -39,7 +39,7 @@ namespace selx
{
template <int Dimensionality, class TPixel>
class ItkImageRegistrationMethodv4Component :
public Implements<
public SuperElastixComponent<
Accepting< itkImageFixedInterface<Dimensionality, TPixel>,
itkImageMovingInterface<Dimensionality, TPixel>,
itkTransformInterface<double, Dimensionality>,
......
......@@ -29,7 +29,7 @@ namespace selx
{
template <int Dimensionality, class TPixel>
class ItkMeanSquaresImageToImageMetricv4Component :
public Implements<
public SuperElastixComponent<
Accepting< >,
Providing< itkMetricv4Interface<Dimensionality, TPixel>>
>
......
......@@ -39,7 +39,7 @@ namespace selx
{
template <int Dimensionality, class TPixel, class TInternalComputationValue>
class ItkResampleFilterComponent :
public Implements<
public SuperElastixComponent<
Accepting< itkTransformInterface<TInternalComputationValue, Dimensionality>,
itkImageFixedInterface<Dimensionality, TPixel>, //TODO should be FixedImageDomainInterface, we do not require intensities
itkImageMovingInterface<Dimensionality, TPixel>
......
......@@ -39,7 +39,7 @@ namespace selx
{
template <int Dimensionality, class TPixel, class TInternalComputationValue>
class ItkTransformDisplacementFilterComponent :
public Implements<
public SuperElastixComponent<
Accepting< itkTransformInterface<TInternalComputationValue, Dimensionality>,
itkImageDomainFixedInterface<Dimensionality>
>,
......
......@@ -269,7 +269,7 @@ protected:
//TODO rename Implements to SuperElastixComponent
template<typename AcceptingInterfaces, typename ProvidingInterfaces>
class Implements : public AcceptingInterfaces, public ProvidingInterfaces, public ComponentBase
class SuperElastixComponent : public AcceptingInterfaces, public ProvidingInterfaces, public ComponentBase
{
public:
virtual interfaceStatus AcceptConnectionFrom(const char *, ComponentBase*);
......
......@@ -39,25 +39,25 @@ int InterfaceAcceptor<InterfaceT>::Connect(ComponentBase* providerComponent){
}
//////////////////////////////////////////////////////////////////////////
template<typename AcceptingInterfaces, typename ProvidingInterfaces>
ComponentBase::interfaceStatus Implements<AcceptingInterfaces, ProvidingInterfaces>::AcceptConnectionFrom(const char * interfacename, ComponentBase* other)
ComponentBase::interfaceStatus SuperElastixComponent<AcceptingInterfaces, ProvidingInterfaces>::AcceptConnectionFrom(const char * interfacename, ComponentBase* other)
{
return AcceptingInterfaces::ConnectFromImpl(interfacename, other);
}
template<typename AcceptingInterfaces, typename ProvidingInterfaces>
int Implements<AcceptingInterfaces, ProvidingInterfaces>::AcceptConnectionFrom(ComponentBase* other)
int SuperElastixComponent<AcceptingInterfaces, ProvidingInterfaces>::AcceptConnectionFrom(ComponentBase* other)
{
return AcceptingInterfaces::ConnectFromImpl(other);
}
template<typename AcceptingInterfaces, typename ProvidingInterfaces>
bool Implements<AcceptingInterfaces, ProvidingInterfaces>::HasAcceptingInterface(const char * interfacename)
bool SuperElastixComponent<AcceptingInterfaces, ProvidingInterfaces>::HasAcceptingInterface(const char * interfacename)
{
return AcceptingInterfaces::HasInterface(interfacename);
}
template<typename AcceptingInterfaces, typename ProvidingInterfaces>
bool Implements<AcceptingInterfaces, ProvidingInterfaces>::HasProvidingInterface(const char * interfacename)
bool SuperElastixComponent<AcceptingInterfaces, ProvidingInterfaces>::HasProvidingInterface(const char * interfacename)
{
return ProvidingInterfaces::HasInterface(interfacename);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment