16 #include "Device/Detector/IDetector.h"
17 #include "Device/Mask/IShape2D.h"
18 #include "Device/Resolution/ResolutionFunction2DGaussian.h"
32 result->setResolutionFunction(*resFunc);
68 const double xlow = scale * roiItem->xLow();
69 const double ylow = scale * roiItem->yLow();
70 const double xup = scale * roiItem->xUp();
71 const double yup = scale * roiItem->yUp();
72 detector->setRegionOfInterest(xlow, ylow, xup, yup);
74 std::unique_ptr<IShape2D> shape((*maskIter)->createShape(scale));
75 detector->addMask(*shape, (*maskIter)->maskValue());
Defines classes DetectorItems.
Defines MaskItems classes.
Defines family of ResolutionFunctionItem.
Defines class SphericalDetectorItem.
virtual double axesToCoreUnitsFactor() const
Scales the values provided by axes (to perform deg->rad conversion on the way to domain).
void importMasks(const MaskContainerItem *maskContainer)
MaskItems m_maskItems
for creation of domain detector; only filled and relevant in jobs
std::unique_ptr< IResolutionFunction2D > createResolutionFunction() const
ResolutionFunctionItem * resolutionFunction() const
SelectionDescriptor< ResolutionFunctionItem * > resolutionFunctionSelection() const
virtual std::unique_ptr< IDetector > createDomainDetector() const =0
SelectionProperty< ResolutionFunctionItem * > m_resolutionFunction
void addMasksToCore(IDetector *detector) const
std::unique_ptr< IDetector > createDetector() const
Container holding various masks as children.
void copy(const MaskContainerItem *maskContainer)
Copy the mask items stored in the given maskContainer.
QVector< MaskItem * > maskItems() const
virtual std::unique_ptr< IResolutionFunction2D > createResolutionFunction(double scale=1.0) const =0
Describes a selection (various possibilities and the current one).
T get() const
Direct access to the stored pointer.