BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
A reprocessed simple particle, with shape m_ff.
Definition at line 33 of file ReParticle.h.
Public Member Functions | |
ReParticle (const IFormFactor &ff) | |
~ReParticle () override | |
double | bottomZ (const IRotation *rotation) const override |
Returns the z-coordinate of the lowest point in this shape after a given rotation. More... | |
ReParticle * | clone () const override |
const IFormFactor * | formfactor_at_bottom () const |
virtual complex_t | formfactor_at_bottom (C3 q) const |
double | radialExtension () const override |
Returns the (approximate in some cases) radial size of the particle of this form factor's shape. This is used for SSCA calculations. More... | |
void | setAmbientMaterial (const Material &ambient_material) override |
Sets the ambient material. More... | |
void | setMaterial (const Material &material) |
Sets the material of the scatterer. More... | |
void | setPosition (const R3 &position) |
void | setRotMatrix (const RotMatrix &rotMatrix) |
complex_t | theFF (const WavevectorInfo &wavevectors) const override |
Returns scattering amplitude for complex wavevectors ki, kf. More... | |
SpinMatrix | thePolFF (const WavevectorInfo &wavevectors) const override |
Returns scattering amplitude for matrix interactions. More... | |
double | topZ (const IRotation *rotation) const override |
Returns the z-coordinate of the lowest point in this shape after a given rotation. More... | |
virtual void | transferToCPP () |
Used for Python overriding of clone (see swig/tweaks.py) More... | |
double | volume () const override |
Returns the total volume of the particle of this form factor's shape. More... | |
Static Public Member Functions | |
static ReParticle * | createTransformedFormFactor (const IFormFactor &formfactor, const IRotation *rot, R3 translation) |
Protected Member Functions | |
ReParticle (IFormFactor *ff, const Material *material, const Material *ambient_material, const R3 *position, const RotMatrix *rotMatrix) | |
Protected Attributes | |
std::unique_ptr< const Material > | m_ambient_material |
std::unique_ptr< const IFormFactor > | m_ff |
std::unique_ptr< const Material > | m_material |
std::unique_ptr< const R3 > | m_position |
std::unique_ptr< const RotMatrix > | m_rotMatrix |
ReParticle::ReParticle | ( | const IFormFactor & | ff | ) |
Definition at line 33 of file ReParticle.cpp.
Referenced by clone(), and createTransformedFormFactor().
|
overridedefault |
|
protected |
Definition at line 23 of file ReParticle.cpp.
|
overridevirtual |
Returns the z-coordinate of the lowest point in this shape after a given rotation.
Implements IReParticle.
Definition at line 134 of file ReParticle.cpp.
References IRotation::createRotation(), m_ff, m_position, m_rotMatrix, IRotation::rotMatrix(), and IRotation::transformed().
Referenced by ReMesocrystal::bottomZ().
|
overridevirtual |
Implements IReParticle.
Definition at line 40 of file ReParticle.cpp.
References ReParticle(), m_ambient_material, m_ff, m_material, m_position, and m_rotMatrix.
|
static |
Definition at line 49 of file ReParticle.cpp.
References ReParticle(), IRotation::isIdentity(), and IRotation::rotMatrix().
const IFormFactor * ReParticle::formfactor_at_bottom | ( | ) | const |
|
virtual |
Definition at line 95 of file ReParticle.cpp.
References m_ff.
|
overridevirtual |
Returns the (approximate in some cases) radial size of the particle of this form factor's shape. This is used for SSCA calculations.
Implements IReParticle.
Definition at line 85 of file ReParticle.cpp.
References m_ff.
Referenced by ReMesocrystal::radialExtension().
|
overridevirtual |
Sets the ambient material.
Reimplemented from IReParticle.
Definition at line 65 of file ReParticle.cpp.
References m_ambient_material.
void ReParticle::setMaterial | ( | const Material & | material | ) |
Sets the material of the scatterer.
Definition at line 60 of file ReParticle.cpp.
References m_material.
void ReParticle::setPosition | ( | const R3 & | position | ) |
Definition at line 70 of file ReParticle.cpp.
References m_position.
void ReParticle::setRotMatrix | ( | const RotMatrix & | rotMatrix | ) |
Definition at line 75 of file ReParticle.cpp.
References m_rotMatrix.
|
overridevirtual |
Returns scattering amplitude for complex wavevectors ki, kf.
Implements IReParticle.
Definition at line 100 of file ReParticle.cpp.
References WavevectorInfo::getQ(), m_ambient_material, m_ff, m_material, m_position, m_rotMatrix, and WavevectorInfo::transformed().
Referenced by ReMesocrystal::theFF(), and ReMesocrystal::thePolFF().
|
overridevirtual |
Returns scattering amplitude for matrix interactions.
Reimplemented from IReParticle.
Definition at line 114 of file ReParticle.cpp.
References WavevectorInfo::getQ(), m_ambient_material, m_ff, m_material, m_position, m_rotMatrix, and WavevectorInfo::transformed().
|
overridevirtual |
Returns the z-coordinate of the lowest point in this shape after a given rotation.
Implements IReParticle.
Definition at line 146 of file ReParticle.cpp.
References IRotation::createRotation(), m_ff, m_position, m_rotMatrix, IRotation::rotMatrix(), and IRotation::transformed().
Referenced by ReMesocrystal::topZ().
|
inlinevirtualinherited |
Used for Python overriding of clone (see swig/tweaks.py)
Definition at line 32 of file ICloneable.h.
|
overridevirtual |
Returns the total volume of the particle of this form factor's shape.
Reimplemented from IReParticle.
Definition at line 80 of file ReParticle.cpp.
References m_ff.
Referenced by ReMesocrystal::volume().
|
protected |
Definition at line 75 of file ReParticle.h.
Referenced by clone(), setAmbientMaterial(), theFF(), and thePolFF().
|
protected |
Definition at line 68 of file ReParticle.h.
Referenced by bottomZ(), clone(), formfactor_at_bottom(), radialExtension(), theFF(), thePolFF(), topZ(), and volume().
|
protected |
Definition at line 74 of file ReParticle.h.
Referenced by clone(), setMaterial(), theFF(), and thePolFF().
|
protected |
Definition at line 76 of file ReParticle.h.
Referenced by bottomZ(), clone(), setPosition(), theFF(), thePolFF(), and topZ().
|
protected |
Definition at line 77 of file ReParticle.h.
Referenced by bottomZ(), clone(), setRotMatrix(), theFF(), thePolFF(), and topZ().