BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IShape3D Class Reference

Abstract base class for different shapes. More...

Inheritance diagram for IShape3D:
[legend]

Public Member Functions

 IShape3D ()
 
virtual ~IShape3D ()
 
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

Abstract base class for different shapes.

In contrast to the form factors, these shapes only provide an interface for returning a set of vertices.

Definition at line 33 of file IShape3D.h.

Constructor & Destructor Documentation

◆ IShape3D()

IShape3D::IShape3D ( )
inline

Definition at line 35 of file IShape3D.h.

35 {}

◆ ~IShape3D()

virtual IShape3D::~IShape3D ( )
inlinevirtual

Definition at line 36 of file IShape3D.h.

36 {}

Member Function Documentation

◆ vertices()

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

Retrieves a list of the vertices constituting this concrete shape.

Definition at line 23 of file IShape3D.cpp.

24 {
25  return m_vertices;
26 }
std::vector< kvector_t > m_vertices
List of vertices initialized during construction.
Definition: IShape3D.h:44

References m_vertices.

Member Data Documentation

◆ m_vertices

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

List of vertices initialized during construction.

Definition at line 44 of file IShape3D.h.

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

◆ N_Circle

const size_t IShape3D::N_Circle = 24
static

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