BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RealSpace Namespace Reference

Namespaces

 GeometricID
 
 Particles
 

Classes

class  Buffer
 
class  Buffer3DAxes
 
class  Camera
 
class  Canvas
 
class  Geometry
 
class  GeometryStore
 
class  Layer
 
class  Model
 
class  Object
 
class  Program
 
struct  Range
 
struct  Vector3D
 
struct  VectorRange
 
class  Widget3D
 

Typedefs

typedef std::shared_ptr< GeometryGeometryHandle
 
typedef std::weak_ptr< GeometryGeometryRef
 

Functions

Vector3D cross (const Vector3D &v1, const Vector3D &v2)
 
float dot (const Vector3D &v1, const Vector3D &v2)
 
GeometryStoregeometryStore ()
 
Vector3D operator* (const Vector3D &v, float f)
 
Vector3D operator+ (const Vector3D &_1, const Vector3D &_2)
 
Vector3D operator+ (const Vector3D &v)
 
Vector3D operator- (const Vector3D &_1, const Vector3D &_2)
 
Vector3D operator- (const Vector3D &v)
 

Variables

QColor const clrObject = Qt::black
 
const float DodecahedronL2R = 4.f / std::sqrt(3.f) / (1.f + std::sqrt(5.f))
 
const float GoldenRatio = (1.f + std::sqrt(5.f)) / 2.f
 
const float IcosahedronL2R = 4.f / (10.f + 2.f * std::sqrt(5.f))
 
const Vector3D LIGHT1 = Vector3D(0.5f, 1.0f, 1.0f) * 1000.0f
 
const Vector3D LIGHT2 = Vector3D(1.0f, 0.0f, 1.0f) * 1000.0f
 
const Vector3D LIGHT3 = Vector3D(1.0f, 1.0f, 0.0f) * 1000.0f
 

Typedef Documentation

◆ GeometryHandle

typedef std::shared_ptr<Geometry> RealSpace::GeometryHandle

Definition at line 28 of file geometry_inc.h.

◆ GeometryRef

typedef std::weak_ptr<Geometry> RealSpace::GeometryRef

Definition at line 29 of file geometry_inc.h.

Function Documentation

◆ cross()

Vector3D RealSpace::cross ( const Vector3D v1,
const Vector3D v2 
)

◆ dot()

float RealSpace::dot ( const Vector3D v1,
const Vector3D v2 
)

Definition at line 59 of file def.cpp.

60 {
61  return QVector3D::dotProduct(v1, v2);
62 }

Referenced by PolyhedralFace::PolyhedralFace(), RealSpace::Canvas::horizontalCameraTurn(), and RealSpace::Canvas::verticalCameraTurn().

◆ geometryStore()

GeometryStore & RealSpace::geometryStore ( )

Definition at line 166 of file geometry.cpp.

167 {
168  static GeometryStore gs;
169  return gs;
170 }

Referenced by RealSpace::Canvas::Canvas(), RealSpace::Geometry::~Geometry(), and RealSpace::Object::draw().

◆ operator*()

Vector3D RealSpace::operator* ( const Vector3D v,
float  f 
)

Definition at line 74 of file def.cpp.

75 {
76  return Vector3D(v.x * f, v.y * f, v.z * f);
77 }

References RealSpace::Vector3D::x, RealSpace::Vector3D::y, and RealSpace::Vector3D::z.

◆ operator+() [1/2]

Vector3D RealSpace::operator+ ( const Vector3D _1,
const Vector3D _2 
)

Definition at line 79 of file def.cpp.

80 {
81  return Vector3D(_1.x + _2.x, _1.y + _2.y, _1.z + _2.z);
82 }

References RealSpace::Vector3D::x, RealSpace::Vector3D::y, and RealSpace::Vector3D::z.

◆ operator+() [2/2]

Vector3D RealSpace::operator+ ( const Vector3D v)

Definition at line 64 of file def.cpp.

65 {
66  return v;
67 }

◆ operator-() [1/2]

Vector3D RealSpace::operator- ( const Vector3D _1,
const Vector3D _2 
)

Definition at line 84 of file def.cpp.

85 {
86  return Vector3D(_1.x - _2.x, _1.y - _2.y, _1.z - _2.z);
87 }

References RealSpace::Vector3D::x, RealSpace::Vector3D::y, and RealSpace::Vector3D::z.

◆ operator-() [2/2]

Vector3D RealSpace::operator- ( const Vector3D v)

Definition at line 69 of file def.cpp.

70 {
71  return Vector3D::_0 - v;
72 }

References RealSpace::Vector3D::_0.

Variable Documentation

◆ clrObject

QColor const RealSpace::clrObject = Qt::black

Definition at line 31 of file object.cpp.

◆ DodecahedronL2R

const float RealSpace::DodecahedronL2R = 4.f / std::sqrt(3.f) / (1.f + std::sqrt(5.f))

◆ GoldenRatio

const float RealSpace::GoldenRatio = (1.f + std::sqrt(5.f)) / 2.f

Definition at line 22 of file geometry_inc.cpp.

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

◆ IcosahedronL2R

const float RealSpace::IcosahedronL2R = 4.f / (10.f + 2.f * std::sqrt(5.f))

Definition at line 23 of file geometry_inc.cpp.

Referenced by RealSpace::Model::newParticle().

◆ LIGHT1

const Vector3D RealSpace::LIGHT1 = Vector3D(0.5f, 1.0f, 1.0f) * 1000.0f

Definition at line 19 of file camera.cpp.

◆ LIGHT2

const Vector3D RealSpace::LIGHT2 = Vector3D(1.0f, 0.0f, 1.0f) * 1000.0f

Definition at line 20 of file camera.cpp.

◆ LIGHT3

const Vector3D RealSpace::LIGHT3 = Vector3D(1.0f, 1.0f, 0.0f) * 1000.0f

Definition at line 21 of file camera.cpp.