BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
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 #ifdef SWIG
16 #error no need to expose this header to Swig
17 #endif
18 
19 #ifndef USER_API
20 #ifndef BORNAGAIN_BASE_PIXEL_IPIXEL_H
21 #define BORNAGAIN_BASE_PIXEL_IPIXEL_H
22 
23 #include <heinz/Vectors3D.h>
24 
25 //! Interface for a function that maps [0,1]x[0,1] to the kvectors in a pixel.
26 //! Abstract base class for SphericalPixel and RectangularPixel.
27 //! @ingroup detector
28 
29 class IPixel {
30 public:
31  virtual ~IPixel() = default;
32 
33  virtual IPixel* clone() const = 0;
34  virtual IPixel* createZeroSizePixel(double x, double y) const = 0;
35  virtual R3 getK(double x, double y, double wavelength) const = 0;
36  virtual double integrationFactor(double x, double y) const = 0;
37  virtual double solidAngle() const = 0;
38 };
39 
40 #endif // BORNAGAIN_BASE_PIXEL_IPIXEL_H
41 #endif // USER_API
Interface for a function that maps [0,1]x[0,1] to the kvectors in a pixel. Abstract base class for Sp...
Definition: IPixel.h:29
virtual ~IPixel()=default
virtual R3 getK(double x, double y, double wavelength) const =0
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