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

Public Member Functions

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

Pure virtual base class for different shapes.

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

Definition at line 28 of file IShape.h.

Constructor & Destructor Documentation

◆ IShape()

IShape::IShape ( )
inline

Definition at line 31 of file IShape.h.

31 {}

◆ ~IShape()

virtual IShape::~IShape ( )
inlinevirtual

Definition at line 32 of file IShape.h.

32 {}

Member Function Documentation

◆ vertices()

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

Retrieves a list of the vertices constituting this concrete shape.

Definition at line 23 of file IShape.cpp.

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

References m_vertices.

Member Data Documentation

◆ N_Circle

const size_t IShape::N_Circle = 24
static

◆ m_vertices

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

List of vertices initialized during construction.

Definition at line 40 of file IShape.h.

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


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