15 #ifndef BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTION2DLATTICE_H
16 #define BORNAGAIN_SAMPLE_AGGREGATE_INTERFERENCEFUNCTION2DLATTICE_H
45 std::vector<const INode*>
getChildren()
const override;
58 std::pair<double, double>
rotateOrthonormal(
double qx,
double qy,
double gamma)
const;
72 std::unique_ptr<IFTDecayFunction2D>
m_decay;
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.
Abstract base class of interference functions.
Visitor interface to visit ISampleNode objects.
virtual void visit(const BasicLattice2D *)
Interference function of a 2D lattice.
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
void initialize_calc_factors()
Initializes factors needed in each calculation.
std::vector< const INode * > getChildren() const override
Returns a vector of children.
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.
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...
double getParticleDensity() const override
Returns the particle density associated with this 2d lattice.
~InterferenceFunction2DLattice() override
bool m_integrate_xi
Integrate over the orientation xi.
bool integrationOverXi() const
InterferenceFunction2DLattice(const Lattice2D &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.
std::unique_ptr< IFTDecayFunction2D > m_decay
InterferenceFunction2DLattice * clone() const override
Returns a clone of this ISampleNode object.
int m_nb
determines the number of reciprocal lattice points to use
double iff_without_dw(const kvector_t q) const override
Calculates the structure factor without Debye-Waller factor.
double interferenceAtOneRecLatticePoint(double qx, double qy) const
Returns interference from a single reciprocal lattice vector.
std::unique_ptr< Lattice2D > m_lattice
void setDecayFunction(const IFTDecayFunction2D &decay)
Sets two-dimensional decay function.
void onChange() override
Action to be taken in inherited class when a parameter has changed.
const Lattice2D & lattice() const
double interferenceForXi(double xi) const
A two-dimensional Bravais lattice.