BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorCantellatedCube.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file Sample/HardParticle/FormFactorCantellatedCube.h
6
//! @brief Defines class FormFactorCantellatedCube.
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_FORMFACTORCANTELLATEDCUBE_H
16
#define BORNAGAIN_SAMPLE_HARDPARTICLE_FORMFACTORCANTELLATEDCUBE_H
17
18
#include "
Sample/HardParticle/IFormFactorPolyhedron.h
"
19
20
//! A cube, with truncation of all edges and corners, as in Croset (2017) Fig 7
21
//! @ingroup hardParticle
22
23
class
FormFactorCantellatedCube
:
public
IFormFactorPolyhedron
{
24
public
:
25
FormFactorCantellatedCube
(
const
std::vector<double> P);
26
FormFactorCantellatedCube
(
double
length,
double
removed_length);
27
28
FormFactorCantellatedCube
*
clone
() const final
29
{
30
return
new
FormFactorCantellatedCube
(
m_length
,
m_removed_length
);
31
}
32
void
accept
(
INodeVisitor
* visitor)
const
final
{ visitor->visit(
this
); }
33
34
double
getLength
()
const
{
return
m_length
; }
35
double
getRemovedLength
()
const
{
return
m_removed_length
; }
36
37
protected
:
38
void
onChange
() final;
39
40
private:
41
static const
PolyhedralTopology
topology
;
42
const
double
&
m_length
;
43
const
double
&
m_removed_length
;
44
};
45
46
#endif
// BORNAGAIN_SAMPLE_HARDPARTICLE_FORMFACTORCANTELLATEDCUBE_H
IFormFactorPolyhedron.h
Defines interface IFormFactorPolyhedron.
FormFactorCantellatedCube
A cube, with truncation of all edges and corners, as in Croset (2017) Fig 7.
Definition:
FormFactorCantellatedCube.h:23
FormFactorCantellatedCube::FormFactorCantellatedCube
FormFactorCantellatedCube(const std::vector< double > P)
Definition:
FormFactorCantellatedCube.cpp:48
FormFactorCantellatedCube::m_length
const double & m_length
Definition:
FormFactorCantellatedCube.h:42
FormFactorCantellatedCube::accept
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
Definition:
FormFactorCantellatedCube.h:32
FormFactorCantellatedCube::topology
static const PolyhedralTopology topology
Definition:
FormFactorCantellatedCube.h:41
FormFactorCantellatedCube::onChange
void onChange() final
Action to be taken in inherited class when a parameter has changed.
Definition:
FormFactorCantellatedCube.cpp:67
FormFactorCantellatedCube::clone
FormFactorCantellatedCube * clone() const final
Returns a clone of this ISampleNode object.
Definition:
FormFactorCantellatedCube.h:28
FormFactorCantellatedCube::getRemovedLength
double getRemovedLength() const
Definition:
FormFactorCantellatedCube.h:35
FormFactorCantellatedCube::getLength
double getLength() const
Definition:
FormFactorCantellatedCube.h:34
FormFactorCantellatedCube::m_removed_length
const double & m_removed_length
Definition:
FormFactorCantellatedCube.h:43
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
FormFactorCantellatedCube.h
Generated by
1.9.1