BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IPixel.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Base/Pixel/IPixel.h
6 //! @brief Defines and implements interface IPixel.
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 USER_API
16 #ifndef BORNAGAIN_BASE_PIXEL_IPIXEL_H
17 #define BORNAGAIN_BASE_PIXEL_IPIXEL_H
18 
19 #include "Base/Vector/Vectors3D.h"
20 
21 //! Interface for a function that maps [0,1]x[0,1] to the kvectors in a pixel.
22 //! Abstract base class for SphericalPixel and RectangularPixel.
23 //! @ingroup detector
24 
25 class IPixel {
26 public:
27  virtual ~IPixel() {}
28 
29  virtual IPixel* clone() const = 0;
30  virtual IPixel* createZeroSizePixel(double x, double y) const = 0;
31  virtual kvector_t getK(double x, double y, double wavelength) const = 0;
32  virtual double integrationFactor(double x, double y) const = 0;
33  virtual double solidAngle() const = 0;
34 };
35 
36 #endif // BORNAGAIN_BASE_PIXEL_IPIXEL_H
37 #endif // USER_API
Defines basic vectors in Z^3, R^3, C^3.
Interface for a function that maps [0,1]x[0,1] to the kvectors in a pixel.
Definition: IPixel.h:25
virtual kvector_t getK(double x, double y, double wavelength) const =0
virtual ~IPixel()
Definition: IPixel.h:27
virtual IPixel * clone() const =0
virtual double integrationFactor(double x, double y) const =0
virtual IPixel * createZeroSizePixel(double x, double y) const =0
virtual double solidAngle() const =0