BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RippleSawtooth Class Reference
Inheritance diagram for RippleSawtooth:
[legend]
Collaboration diagram for RippleSawtooth:
[legend]

Public Member Functions

 RippleSawtooth (double length, double width, double height, double asymmetry)
 
 ~RippleSawtooth ()
 
virtual std::vector< kvector_tvertices () const
 Retrieves a list of the vertices constituting this concrete shape. More...
 

Static Public Attributes

static const size_t N_Circle = 24
 

Protected Attributes

std::vector< kvector_tm_vertices
 List of vertices initialized during construction. More...
 

Detailed Description

Definition at line 25 of file RippleSawtooth.h.

Constructor & Destructor Documentation

◆ RippleSawtooth()

RippleSawtooth::RippleSawtooth ( double  length,
double  width,
double  height,
double  asymmetry 
)

Definition at line 17 of file RippleSawtooth.cpp.

18 {
19  double ymax = width / 2.0 - asymmetry;
20  double ymin = -width / 2.0 - asymmetry;
21  m_vertices.resize(6);
22  m_vertices[0] = kvector_t(length / 2.0, ymax, 0.0);
23  m_vertices[1] = kvector_t(length / 2.0, ymin, 0.0);
24  m_vertices[2] = kvector_t(length / 2.0, 0.0, height);
25  m_vertices[3] = kvector_t(-length / 2.0, ymax, 0.0);
26  m_vertices[4] = kvector_t(-length / 2.0, ymin, 0.0);
27  m_vertices[5] = kvector_t(-length / 2.0, 0.0, height);
28 }
BasicVector3D< double > kvector_t
Definition: Vectors3D.h:21
std::vector< kvector_t > m_vertices
List of vertices initialized during construction.
Definition: IShape3D.h:44

References IShape3D::m_vertices.

◆ ~RippleSawtooth()

RippleSawtooth::~RippleSawtooth ( )
default

Member Function Documentation

◆ vertices()

std::vector< kvector_t > IShape3D::vertices ( ) const
virtualinherited

Retrieves a list of the vertices constituting this concrete shape.

Definition at line 23 of file IShape3D.cpp.

24 {
25  return m_vertices;
26 }

References IShape3D::m_vertices.

Member Data Documentation

◆ m_vertices

std::vector<kvector_t> IShape3D::m_vertices
protectedinherited

List of vertices initialized during construction.

Definition at line 44 of file IShape3D.h.

Referenced by Box::Box(), DoubleEllipse::DoubleEllipse(), RippleCosine::RippleCosine(), RippleSawtooth(), TruncatedEllipsoid::TruncatedEllipsoid(), and IShape3D::vertices().

◆ N_Circle

const size_t IShape3D::N_Circle = 24
staticinherited

The documentation for this class was generated from the following files: