BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
anonymous_namespace{ParticleLayout.cpp} Namespace Reference

Functions

bool particleDensityIsProvidedByInterference (const IInterferenceFunction &iff)
 

Function Documentation

◆ particleDensityIsProvidedByInterference()

bool anonymous_namespace{ParticleLayout.cpp}::particleDensityIsProvidedByInterference ( const IInterferenceFunction iff)

Returns true if interference function is able to calculate particle density automatically, which is the case for 2D functions.

Definition at line 28 of file ParticleLayout.cpp.

29 {
30  return iff.getName() == "Interference2DLattice" || iff.getName() == "Interference2DParaCrystal"
31  || iff.getName() == "Interference2DSuperLattice"
32  || iff.getName() == "InterferenceFinite2DLattice"
33  || iff.getName() == "InterferenceHardDisk";
34 }
const std::string & getName() const

References IParameterized::getName().

Referenced by ParticleLayout::setAndRegisterInterferenceFunction().

Here is the call graph for this function: