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

Public Member Functions

 RippleSawtooth (double length, double width, double height, double asymmetry)
 
 ~RippleSawtooth ()
 
virtual std::vector< kvector_tvertices () const
 

Static Public Attributes

static const size_t N_Circle = 24
 

Protected Attributes

std::vector< kvector_tm_vertices
 

Detailed Description

Definition at line 20 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: IShape.h:40

References anonymous_namespace{BoxCompositionBuilder.cpp}::height, anonymous_namespace{BoxCompositionBuilder.cpp}::length, IShape::m_vertices, and anonymous_namespace{BoxCompositionBuilder.cpp}::width.

◆ ~RippleSawtooth()

RippleSawtooth::~RippleSawtooth ( )
default

Member Function Documentation

◆ vertices()

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

Retrieves a list of the vertices constituting this concrete shape.

Definition at line 23 of file IShape.cpp.

24 {
25  return m_vertices;
26 }

References IShape::m_vertices.

Member Data Documentation

◆ N_Circle

const size_t IShape::N_Circle = 24
staticinherited

◆ m_vertices

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

List of vertices initialized during construction.

Definition at line 40 of file IShape.h.

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


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