BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Prism.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Sample/HardParticle/Prism.h
6 //! @brief Defines class Prism.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_HARDPARTICLE_PRISM_H
16 #define BORNAGAIN_CORE_HARDPARTICLE_PRISM_H
17 
20 #include <memory>
21 
22 class Prism
23 {
24 public:
25  Prism() = delete;
26  Prism(const Prism&) = delete;
27  Prism(bool symmetry_Ci, double height, const std::vector<kvector_t>& vertices);
28  double area() const;
29  const std::vector<kvector_t>& vertices(); //! needed for topZ, bottomZ computation
30  complex_t evaluate_for_q(const cvector_t& q) const;
31  // complex_t evaluate_centered(const cvector_t& q) const;
32 private:
33  std::unique_ptr<PolyhedralFace> m_base;
34  double m_height;
35  std::vector<kvector_t> m_vertices; //! for topZ, bottomZ computation only
36 };
37 
38 #endif // BORNAGAIN_CORE_HARDPARTICLE_PRISM_H
std::complex< double > complex_t
Definition: Complex.h:20
Defines classes PolyhedralEdge, PolyhedralFace.
Defines classes PolygonalTopology, PolyhedralTopology.
Definition: Prism.h:23
Prism()=delete
complex_t evaluate_for_q(const cvector_t &q) const
needed for topZ, bottomZ computation
Definition: Prism.cpp:55
std::unique_ptr< PolyhedralFace > m_base
Definition: Prism.h:33
double m_height
Definition: Prism.h:34
Prism(const Prism &)=delete
double area() const
Definition: Prism.cpp:45
std::vector< kvector_t > m_vertices
Definition: Prism.h:35
const std::vector< kvector_t > & vertices()
Definition: Prism.cpp:50