BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorDodecahedron.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file Sample/HardParticle/FormFactorDodecahedron.h
6
//! @brief Defines class FormFactorDodecahedron.
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_SAMPLE_HARDPARTICLE_FORMFACTORDODECAHEDRON_H
16
#define BORNAGAIN_SAMPLE_HARDPARTICLE_FORMFACTORDODECAHEDRON_H
17
18
#include "
Sample/HardParticle/IFormFactorPolyhedron.h
"
19
20
//! A regular dodecahedron.
21
//! @ingroup hardParticle
22
23
class
FormFactorDodecahedron
:
public
IFormFactorPolyhedron
{
24
public
:
25
FormFactorDodecahedron
(
const
std::vector<double> P);
26
FormFactorDodecahedron
(
double
edge);
27
28
FormFactorDodecahedron
*
clone
() const final {
return
new
FormFactorDodecahedron
(
m_edge
); }
29
void
accept
(
INodeVisitor
* visitor)
const
final
{ visitor->visit(
this
); }
30
31
double
getEdge
()
const
{
return
m_edge
; }
32
33
protected
:
34
void
onChange
() final;
35
36
private:
37
static const
PolyhedralTopology
topology
;
38
const
double
&
m_edge
;
39
};
40
41
#endif
// BORNAGAIN_SAMPLE_HARDPARTICLE_FORMFACTORDODECAHEDRON_H
IFormFactorPolyhedron.h
Defines interface IFormFactorPolyhedron.
FormFactorDodecahedron
A regular dodecahedron.
Definition:
FormFactorDodecahedron.h:23
FormFactorDodecahedron::topology
static const PolyhedralTopology topology
Definition:
FormFactorDodecahedron.h:37
FormFactorDodecahedron::accept
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
Definition:
FormFactorDodecahedron.h:29
FormFactorDodecahedron::m_edge
const double & m_edge
Definition:
FormFactorDodecahedron.h:38
FormFactorDodecahedron::onChange
void onChange() final
Action to be taken in inherited class when a parameter has changed.
Definition:
FormFactorDodecahedron.cpp:48
FormFactorDodecahedron::getEdge
double getEdge() const
Definition:
FormFactorDodecahedron.h:31
FormFactorDodecahedron::clone
FormFactorDodecahedron * clone() const final
Returns a clone of this ISampleNode object.
Definition:
FormFactorDodecahedron.h:28
FormFactorDodecahedron::FormFactorDodecahedron
FormFactorDodecahedron(const std::vector< double > P)
Definition:
FormFactorDodecahedron.cpp:35
IFormFactorPolyhedron
A polyhedron, for form factor computation.
Definition:
IFormFactorPolyhedron.h:27
INodeVisitor
Visitor interface to visit ISampleNode objects.
Definition:
INodeVisitor.h:146
PolyhedralTopology
For internal use in IFormFactorPolyhedron.
Definition:
PolyhedralTopology.h:33
Sample
HardParticle
FormFactorDodecahedron.h
Generated by
1.9.1