15 #ifndef BORNAGAIN_CORE_AGGREGATE_INTERFERENCEFUNCTION2DLATTICE_H
16 #define BORNAGAIN_CORE_AGGREGATE_INTERFERENCEFUNCTION2DLATTICE_H
64 std::pair<
double,
double>
rotateOrthonormal(
double qx,
double qy,
double gamma) const;
Defines classes IFTDecayFunction1D, IFTDecayFunction2D,.
Defines classes IFTDecayFunction1D, IFTDecayFunction2D,.
Defines and implements the interface class IInterferenceFunction.
Defines classes of Lattice2D family.
Interface for two-dimensional decay function in reciprocal space.
Pure virtual base class of interference functions.
Visitor interface to visit ISample objects.
Base class for tree-like structures containing parameterized objects.
Interference function of a 2D lattice.
void onChange() override final
Action to be taken in inherited class when a parameter has changed.
void initialize_calc_factors()
Initializes factors needed in each calculation.
Lattice2D::ReciprocalBases m_sbase
reciprocal lattice is stored without xi
void initialize_rec_vectors()
Initializes the x,y coordinates of the a*,b* reciprocal bases.
double iff_without_dw(const kvector_t q) const override final
Calculates the structure factor without Debye-Waller factor.
std::pair< double, double > calculateReciprocalVectorFraction(double qx, double qy, double xi) const
Returns qx,qy coordinates of q - qint, where qint is a reciprocal lattice vector bounding the recipro...
bool m_integrate_xi
Integrate over the orientation xi.
bool integrationOverXi() const
static InterferenceFunction2DLattice * createSquare(double lattice_length, double xi)
Creates square lattice.
void setIntegrationOverXi(bool integrate_xi)
std::pair< double, double > rotateOrthonormal(double qx, double qy, double gamma) const
Returns reciprocal coordinates in the coordinate system rotated by the angle gamma.
void accept(INodeVisitor *visitor) const override final
Calls the INodeVisitor's visit method.
std::unique_ptr< IFTDecayFunction2D > m_decay
static InterferenceFunction2DLattice * createHexagonal(double lattice_length, double xi)
Creates hexagonal lattice.
int m_nb
determines the number of reciprocal lattice points to use
std::vector< const INode * > getChildren() const override final
Returns a vector of children (const).
double getParticleDensity() const override final
Returns the particle density associated with this 2d lattice.
double interferenceAtOneRecLatticePoint(double qx, double qy) const
Returns interference from a single reciprocal lattice vector.
std::unique_ptr< Lattice2D > m_lattice
InterferenceFunction2DLattice(double length_1, double length_2, double alpha, double xi)
Constructor of two-dimensional interference function.
void setDecayFunction(const IFTDecayFunction2D &decay)
Sets two-dimensional decay function.
void setLattice(const Lattice2D &lattice)
InterferenceFunction2DLattice * clone() const override final
Returns a clone of this ISample object.
~InterferenceFunction2DLattice() final
const Lattice2D & lattice() const
double interferenceForXi(double xi) const