15 #ifndef BORNAGAIN_GUI_MODEL_DEVICE_DETECTORITEMS_H
16 #define BORNAGAIN_GUI_MODEL_DEVICE_DETECTORITEMS_H
21 #include <heinz/Vectors3D.h>
25 class IResolutionFunction2D;
Defines MaskItems classes.
Defines family of ResolutionFunctionItem.
Defines class SelectionProperty.
virtual double axesToCoreUnitsFactor() const
Scales the values provided by axes (to perform deg->rad conversion on the way to domain).
virtual ~DetectorItem()=default
virtual int xSize() const =0
Returns the size of x-axis of the detector.
void importMasks(const MaskContainerItem *maskContainer)
MaskItems m_maskItems
for creation of domain detector; only filled and relevant in jobs
virtual void setYSize(size_t ny)=0
sets the size of y-axis of the detector
std::unique_ptr< IResolutionFunction2D > createResolutionFunction() const
ResolutionFunctionItem * resolutionFunction() const
virtual void serialize(Streamer &s)=0
SelectionDescriptor< ResolutionFunctionItem * > resolutionFunctionSelection() const
virtual std::unique_ptr< IDetector > createDomainDetector() const =0
SelectionProperty< ResolutionFunctionItem * > m_resolutionFunction
void addMasksToCore(IDetector *detector) const
virtual int ySize() const =0
Returns the size of y-axis of the detector.
T * setResolutionFunctionType()
std::unique_ptr< IDetector > createDetector() const
virtual void setXSize(size_t nx)=0
sets the size of x-axis of the detector
Container holding various masks as children.
Describes a selection (various possibilities and the current one).
void set(T t, bool callInitializer=false)
Directly set the new item.
T get() const
Direct access to the stored pointer.
Supports serialization to or deserialization from QXmlStream.