BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SpecularDetector1D.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Device/Detector/SpecularDetector1D.h
6 //! @brief Defines a detector for specular simulations.
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_DETECTOR_SPECULARDETECTOR1D_H
16 #define BORNAGAIN_CORE_DETECTOR_SPECULARDETECTOR1D_H
17 
19 
21 
22 //! 1D detector for specular simulations. Use of this detector is deprecated.
23 //! @ingroup detector
24 
26 {
27 public:
28  SpecularDetector1D(const IAxis& axis);
30 
31  SpecularDetector1D* clone() const override;
32 
33  void accept(INodeVisitor* visitor) const override { visitor->visit(this); }
34 
35  //! Returns detector masks container.
36  const DetectorMask* detectorMask() const override { return nullptr; }
37 
38  //! Returns region of interest if exists.
39  const RegionOfInterest* regionOfInterest() const override { return nullptr; }
40 
41  void resetRegionOfInterest() override {}
42 
43  //! Return default axes units
44  Axes::Units defaultAxesUnits() const override;
45 
46 protected:
48 
49  //! Returns the name for the axis with given index
50  std::string axisName(size_t index) const override;
51 
52  void initialize();
53 };
54 
55 #endif // BORNAGAIN_CORE_DETECTOR_SPECULARDETECTOR1D_H
Defines common detector interface.
Collection of detector masks.
Definition: DetectorMask.h:29
Interface for one-dimensional axes.
Definition: IAxis.h:25
Abstract detector interface.
Definition: IDetector.h:36
Visitor interface to visit ISample objects.
Definition: INodeVisitor.h:149
virtual void visit(const BasicLattice *)
Definition: INodeVisitor.h:154
Defines rectangular area for the detector which will be simulated/fitted.
1D detector for specular simulations.
const DetectorMask * detectorMask() const override
Returns detector masks container.
const RegionOfInterest * regionOfInterest() const override
Returns region of interest if exists.
void accept(INodeVisitor *visitor) const override
Calls the INodeVisitor's visit method.
virtual ~SpecularDetector1D()
void resetRegionOfInterest() override
Resets region of interest making whole detector plane available for the simulation.
SpecularDetector1D(const IAxis &axis)
SpecularDetector1D * clone() const override
std::string axisName(size_t index) const override
Returns the name for the axis with given index.
Axes::Units defaultAxesUnits() const override
Return default axes units.
Data stucture containing both input and output of a single image pixel for specular simulation.