BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GUI::RealSpace::GeometricID::Key Struct Reference

Description

Real shapes will be parameterized by BaseShape enum and possibly two floats.

Definition at line 51 of file geometry_inc.h.

Public Member Functions

 Key (BaseShape, float=0.0f, float=0.0f, float=0.0f)
 
bool operator== (Key const &) const
 

Public Attributes

BaseShape id
 
float p1
 
float p2
 
float p3
 

Constructor & Destructor Documentation

◆ Key()

GUI::RealSpace::GeometricID::Key::Key ( BaseShape  id_,
float  p1_ = 0.0f,
float  p2_ = 0.0f,
float  p3_ = 0.0f 
)

Definition at line 27 of file geometry_inc.cpp.

28  : id(id_)
29  , p1(p1_)
30  , p2(p2_)
31  , p3(p3_)
32 {
33 }

Member Function Documentation

◆ operator==()

bool GUI::RealSpace::GeometricID::Key::operator== ( Key const &  other) const

Definition at line 35 of file geometry_inc.cpp.

36 {
37  return id == other.id && p1 == other.p1 && p2 == other.p2;
38 }
@ other
The unit has no enum value defined in here (e.g. when defined as an explicit string)

References other.

Member Data Documentation

◆ id

BaseShape GUI::RealSpace::GeometricID::Key::id

Definition at line 56 of file geometry_inc.h.

Referenced by GUI::RealSpace::Geometry::Geometry().

◆ p1

float GUI::RealSpace::GeometricID::Key::p1

Definition at line 57 of file geometry_inc.h.

Referenced by GUI::RealSpace::Geometry::Geometry().

◆ p2

float GUI::RealSpace::GeometricID::Key::p2

Definition at line 57 of file geometry_inc.h.

Referenced by GUI::RealSpace::Geometry::Geometry().

◆ p3

float GUI::RealSpace::GeometricID::Key::p3

Definition at line 57 of file geometry_inc.h.

Referenced by GUI::RealSpace::Geometry::Geometry().


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