Skip to content
Snippets Groups Projects
IComputeFF.cpp 1.13 KiB
//  ************************************************************************************************
//
//  BornAgain: simulate and fit reflection and scattering
//
//! @file      Resample/FFCompute/IComputeFF.cpp
//! @brief     Implements interface class IFormFactor.
//!
//! @homepage  http://www.bornagainproject.org
//! @license   GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors   Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
//  ************************************************************************************************

#include "Resample/FFCompute/IComputeFF.h"
#include "Sample/Scattering/IFormFactor.h"

IComputeFF::IComputeFF(std::unique_ptr<const IFormFactor>&& ff, size_t i_layer)
    : m_ff(std::move(ff)), m_i_layer(i_layer)
{
}

IComputeFF::~IComputeFF() = default;

double IComputeFF::radialExtension() const
{
    return m_ff->radialExtension();
}

double IComputeFF::bottomZ(const IRotation& rotation) const
{
    return m_ff->bottomZ(rotation);
}

double IComputeFF::topZ(const IRotation& rotation) const
{
    return m_ff->topZ(rotation);
}