BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 29 of file geometry.h.
Classes | |
struct | Vert_Normal |
struct | Vertices |
Public Types | |
using | Indices = std::vector< unsigned > |
using | Mesh = QVector< Vert_Normal > |
Public Member Functions | |
Geometry (GeometricID::Key) | |
virtual | ~Geometry () |
Static Private Member Functions | |
static Mesh | makeMesh (const Vertices &vs, const Vertices &ns) |
static Mesh | makeMesh (const Vertices &vs, Vertices const *ns=nullptr) |
static Mesh | meshBipyramid4 (float rH, float alpha, float H) |
static Mesh | meshBox () |
static Mesh | meshColumn (float ratio_Rt_Rb, float numSides) |
static Mesh | meshDodecahedron () |
static Mesh | meshIcosahedron () |
static Mesh | meshPlane () |
static Mesh | meshRipple (float numSides, float ratio_asymmetry_W) |
static Mesh | meshSphere (float cut, float baseShift=0.0f, float removedTop=0.0f) |
static Mesh | meshTruncBox (float tD) |
Private Attributes | |
GeometricID::Key | m_key |
Mesh | m_mesh |
Static Private Attributes | |
static int const | RINGS = 12 |
static int const | SLICES = 24 |
Friends | |
class | Buffer |
class | GeometryStore |
using GUI::RealSpace::Geometry::Indices = std::vector<unsigned> |
Definition at line 42 of file geometry.h.
using GUI::RealSpace::Geometry::Mesh = QVector<Vert_Normal> |
Definition at line 66 of file geometry.h.
GUI::RealSpace::Geometry::Geometry | ( | GeometricID::Key | key_ | ) |
Definition at line 75 of file geometry.cpp.
References GUI::RealSpace::GeometricID::Key::id, m_key, m_mesh, meshBipyramid4(), meshBox(), meshColumn(), meshDodecahedron(), meshIcosahedron(), meshPlane(), meshRipple(), meshSphere(), meshTruncBox(), GUI::RealSpace::GeometricID::Key::p1, GUI::RealSpace::GeometricID::Key::p2, and GUI::RealSpace::GeometricID::Key::p3.
Referenced by GUI::RealSpace::GeometryStore::getGeometry().
|
virtual |
Definition at line 111 of file geometry.cpp.
References GUI::RealSpace::GeometryStore::geometryDeleted(), and GUI::RealSpace::geometryStore().
|
staticprivate |
Definition at line 151 of file geometry.cpp.
References makeMesh().
|
staticprivate |
Definition at line 117 of file geometry.cpp.
References GUI::RealSpace::cross().
Referenced by makeMesh(), meshBipyramid4(), meshBox(), meshColumn(), meshDodecahedron(), meshIcosahedron(), meshPlane(), meshRipple(), meshSphere(), and meshTruncBox().
|
staticprivate |
Definition at line 21 of file cuboctahedron.cpp.
References GUI::RealSpace::Geometry::Vertices::addQuad(), and makeMesh().
Referenced by Geometry().
|
staticprivate |
Definition at line 20 of file box.cpp.
References GUI::RealSpace::Geometry::Vertices::addQuad(), and makeMesh().
Referenced by Geometry(), and meshTruncBox().
|
staticprivate |
Definition at line 22 of file column.cpp.
References GUI::RealSpace::Vector3D::_z, GUI::RealSpace::Geometry::Vertices::addQuad(), GUI::RealSpace::Geometry::Vertices::addTriangle(), GUI::RealSpace::Geometry::Vertices::addVertex(), makeMesh(), GUI::RealSpace::Vector3D::normalized(), and SLICES.
Referenced by Geometry().
|
staticprivate |
Definition at line 22 of file dodecahedron.cpp.
References GUI::RealSpace::Vector3D::_z, GUI::RealSpace::Geometry::Vertices::addFan(), GUI::RealSpace::cross(), GUI::RealSpace::GoldenRatio, and makeMesh().
Referenced by Geometry().
|
staticprivate |
Definition at line 22 of file icosahedron.cpp.
References GUI::RealSpace::Geometry::Vertices::addTriangle(), and makeMesh().
Referenced by Geometry().
|
staticprivate |
Definition at line 20 of file plane.cpp.
References GUI::RealSpace::Geometry::Vertices::addQuad(), and makeMesh().
Referenced by Geometry().
|
staticprivate |
Definition at line 21 of file ripple.cpp.
References GUI::RealSpace::Geometry::Vertices::addQuad(), GUI::RealSpace::Geometry::Vertices::addTriangle(), makeMesh(), and SLICES.
Referenced by Geometry().
|
staticprivate |
Definition at line 24 of file sphere.cpp.
References GUI::RealSpace::Vector3D::_z, GUI::RealSpace::Geometry::Vertices::addQuad(), GUI::RealSpace::Geometry::Vertices::addTriangle(), makeMesh(), GUI::RealSpace::Vector3D::normalized(), RINGS, SLICES, and GUI::RealSpace::Vector3D::z.
Referenced by Geometry().
|
staticprivate |
Definition at line 20 of file truncbox.cpp.
References GUI::RealSpace::Geometry::Vertices::addTriangle(), makeMesh(), and meshBox().
Referenced by Geometry().
|
friend |
Definition at line 30 of file geometry.h.
|
friend |
Definition at line 31 of file geometry.h.
|
private |
Definition at line 72 of file geometry.h.
Referenced by Geometry(), and GUI::RealSpace::GeometryStore::geometryDeleted().
|
private |
Definition at line 74 of file geometry.h.
Referenced by GUI::RealSpace::Buffer::Buffer(), and Geometry().
|
staticprivate |
Definition at line 90 of file geometry.h.
Referenced by meshSphere().
|
staticprivate |
Definition at line 90 of file geometry.h.
Referenced by meshColumn(), meshRipple(), and meshSphere().