BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorIcosahedron.h
Go to the documentation of this file.
1
// ************************************************************************** //
2
//
3
// BornAgain: simulate and fit scattering at grazing incidence
4
//
5
//! @file Sample/HardParticle/FormFactorIcosahedron.h
6
//! @brief Defines class FormFactorIcosahedron.
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2018
11
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************** //
14
15
#ifndef BORNAGAIN_CORE_HARDPARTICLE_FORMFACTORICOSAHEDRON_H
16
#define BORNAGAIN_CORE_HARDPARTICLE_FORMFACTORICOSAHEDRON_H
17
18
#include "
Sample/HardParticle/IFormFactorPolyhedron.h
"
19
20
//! A regular icosahedron.
21
//! @ingroup hardParticle
22
23
class
FormFactorIcosahedron
:
public
IFormFactorPolyhedron
24
{
25
public
:
26
FormFactorIcosahedron
(
const
std::vector<double> P);
27
FormFactorIcosahedron
(
double
edge);
28
29
FormFactorIcosahedron
*
clone
() const override final
30
{
31
return
new
FormFactorIcosahedron
(
m_edge
);
32
}
33
void
accept
(
INodeVisitor
* visitor)
const
override
final
{ visitor->visit(
this
); }
34
35
double
getEdge
()
const
{
return
m_edge
; }
36
37
protected
:
38
void
onChange
() override final;
39
40
private:
41
static const
PolyhedralTopology
topology
;
42
const
double
&
m_edge
;
43
};
44
45
#endif
// BORNAGAIN_CORE_HARDPARTICLE_FORMFACTORICOSAHEDRON_H
IFormFactorPolyhedron.h
Defines class IFormFactorPolyhedron.
FormFactorIcosahedron
A regular icosahedron.
Definition:
FormFactorIcosahedron.h:24
FormFactorIcosahedron::accept
void accept(INodeVisitor *visitor) const override final
Calls the INodeVisitor's visit method.
Definition:
FormFactorIcosahedron.h:33
FormFactorIcosahedron::clone
FormFactorIcosahedron * clone() const override final
Returns a clone of this ISample object.
Definition:
FormFactorIcosahedron.h:29
FormFactorIcosahedron::topology
static const PolyhedralTopology topology
Definition:
FormFactorIcosahedron.h:41
FormFactorIcosahedron::getEdge
double getEdge() const
Definition:
FormFactorIcosahedron.h:35
FormFactorIcosahedron::onChange
void onChange() override final
Action to be taken in inherited class when a parameter has changed.
Definition:
FormFactorIcosahedron.cpp:58
FormFactorIcosahedron::m_edge
const double & m_edge
Definition:
FormFactorIcosahedron.h:42
FormFactorIcosahedron::FormFactorIcosahedron
FormFactorIcosahedron(const std::vector< double > P)
Definition:
FormFactorIcosahedron.cpp:45
IFormFactorPolyhedron
A polyhedron, for form factor computation.
Definition:
IFormFactorPolyhedron.h:27
INodeVisitor
Visitor interface to visit ISample objects.
Definition:
INodeVisitor.h:149
PolyhedralTopology
For internal use in IFormFactorPolyhedron.
Definition:
PolyhedralTopology.h:30
Sample
HardParticle
FormFactorIcosahedron.h
Generated by
1.9.1