BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
RegionOfInterest Class Reference

Defines rectangular area for the detector which will be simulated/fitted. More...

+ Inheritance diagram for RegionOfInterest:

Public Member Functions

 RegionOfInterest (const IDetector2D &detector, double xlow, double ylow, double xup, double yup)
 
 RegionOfInterest (const OutputData< double > &data, double xlow, double ylow, double xup, double yup)
 
RegionOfInterestoperator= (const RegionOfInterest &other)=delete
 
RegionOfInterestclone () const
 
double getXlow () const
 
double getYlow () const
 
double getXup () const
 
double getYup () const
 
size_t detectorIndex (size_t roiIndex) const
 Converts roi index to the detector index.
 
size_t roiIndex (size_t detectorIndex) const
 Converts global detector index to ROI index.
 
size_t roiSize () const
 Number of detector bins in ROI area.
 
size_t detectorSize () const
 Number of detector bins.
 
bool isInROI (size_t detectorIndex) const
 
std::unique_ptr< IAxisclipAxisToRoi (size_t axis_index, const IAxis &axis) const
 
- Public Member Functions inherited from ICloneable
 ICloneable (const ICloneable &)=delete
 
 ICloneable (ICloneable &&)=default
 
virtual void transferToCPP ()
 Used for Python overriding of clone (see swig/tweaks.py)
 

Detailed Description

Defines rectangular area for the detector which will be simulated/fitted.

Definition at line 30 of file RegionOfInterest.h.


The documentation for this class was generated from the following files: