BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 24 of file RectangularDetectorItem.h.
Public Member Functions | |
RectangularDetectorItem () | |
QVector< std::variant< VectorDescriptor, DoubleDescriptor > > | alignmentPropertiesForUI () const |
The properties of the currently active alignment. Sorted as expected on the UI. More... | |
virtual double | axesToCoreUnitsFactor () const |
Scales the values provided by axes (to perform deg->rad conversion on the way to domain). More... | |
std::unique_ptr< IDetector > | createDetector () const |
RectangularDetector::EDetectorArrangement | detectorAlignment () const |
SelectionDescriptor< RectangularDetector::EDetectorArrangement > | detectorAlignmentSelection () const |
DOUBLE_PROPERTY (distance, Distance) | |
DOUBLE_PROPERTY (height, Height) | |
DOUBLE_PROPERTY (u0, U0) | |
DOUBLE_PROPERTY (v0, V0) | |
DOUBLE_PROPERTY (width, Width) | |
void | importMasks (const MaskContainerItem *maskContainer) |
MaskItems & | maskItems () |
ResolutionFunctionItem * | resolutionFunction () const |
SelectionDescriptor< ResolutionFunctionItem * > | resolutionFunctionSelection () const |
void | serialize (Streamer &s) override |
void | setDetectorAlignment (RectangularDetector::EDetectorArrangement alignment) |
template<typename T > | |
T * | setResolutionFunctionType () |
void | setXSize (size_t nx) override |
sets the size of x-axis of the detector More... | |
void | setYSize (size_t ny) override |
sets the size of y-axis of the detector More... | |
VECTOR_PROPERTY (directionVector, DirectionVector) | |
VECTOR_PROPERTY (normalVector, NormalVector) | |
int | xSize () const override |
Returns the size of x-axis of the detector. More... | |
int | ySize () const override |
Returns the size of y-axis of the detector. More... | |
Protected Member Functions | |
void | addMasksToCore (IDetector *detector) const |
std::unique_ptr< IResolutionFunction2D > | createResolutionFunction () const |
Protected Attributes | |
MaskItems | m_maskItems |
for creation of domain detector; only filled and relevant in jobs More... | |
SelectionProperty< ResolutionFunctionItem * > | m_resolutionFunction |
Private Member Functions | |
std::unique_ptr< IDetector > | createDomainDetector () const override |
void | updateTooltips () |
Private Attributes | |
RectangularDetector::EDetectorArrangement | m_detectorAlignment |
int | m_xSize |
int | m_ySize |
Static Private Attributes | |
static constexpr auto | P_DBEAM_U0 {"u0 (dbeam)"} |
static constexpr auto | P_DBEAM_V0 {"v0 (dbeam)"} |
static constexpr auto | P_DIRECTION {"Direction vector"} |
static constexpr auto | P_DISTANCE {"Distance"} |
static constexpr auto | P_NORMAL {"Normal vector"} |
static constexpr auto | P_U0 {"u0"} |
static constexpr auto | P_V0 {"v0"} |
static constexpr auto | P_X_AXIS {"X axis"} |
static constexpr auto | P_Y_AXIS {"Y axis"} |
RectangularDetectorItem::RectangularDetectorItem | ( | ) |
Definition at line 65 of file RectangularDetectorItem.cpp.
References SelectionProperty< T >::initWithInitializer(), m_detectorAlignment, DetectorItem::m_resolutionFunction, m_xSize, m_ySize, unitless, and updateTooltips().
|
protectedinherited |
Definition at line 62 of file DetectorItems.cpp.
References DetectorItem::axesToCoreUnitsFactor(), DetectorItem::m_maskItems, DetectorItem::maskItems(), and MaskItems::maskItems().
Referenced by DetectorItem::createDetector().
QVector< std::variant< VectorDescriptor, DoubleDescriptor > > RectangularDetectorItem::alignmentPropertiesForUI | ( | ) | const |
The properties of the currently active alignment. Sorted as expected on the UI.
Definition at line 175 of file RectangularDetectorItem.cpp.
References m_detectorAlignment.
|
inlinevirtualinherited |
Scales the values provided by axes (to perform deg->rad conversion on the way to domain).
Reimplemented in SphericalDetectorItem.
Definition at line 57 of file DetectorItems.h.
Referenced by DetectorItem::addMasksToCore(), and DetectorItem::createResolutionFunction().
|
inherited |
Definition at line 26 of file DetectorItems.cpp.
References DetectorItem::addMasksToCore(), DetectorItem::createDomainDetector(), and DetectorItem::createResolutionFunction().
Referenced by Instrument2DItem::createInstrument(), Instrument2DItem::createOffspecSimulation(), and Instrument2DItem::createScatteringSimulation().
|
overrideprivatevirtual |
Implements DetectorItem.
Definition at line 183 of file RectangularDetectorItem.cpp.
References m_detectorAlignment, xSize(), and ySize().
|
protectedinherited |
Definition at line 57 of file DetectorItems.cpp.
References DetectorItem::axesToCoreUnitsFactor(), ResolutionFunctionItem::createResolutionFunction(), and DetectorItem::m_resolutionFunction.
Referenced by DetectorItem::createDetector().
RectangularDetector::EDetectorArrangement RectangularDetectorItem::detectorAlignment | ( | ) | const |
Definition at line 132 of file RectangularDetectorItem.cpp.
References m_detectorAlignment.
Referenced by DetectorAlignmentEditor::createAligmentWidgets().
SelectionDescriptor< RectangularDetector::EDetectorArrangement > RectangularDetectorItem::detectorAlignmentSelection | ( | ) | const |
Definition at line 158 of file RectangularDetectorItem.cpp.
References SelectionDescriptor< T >::currentIndexGetter, SelectionDescriptor< T >::currentIndexSetter, SelectionDescriptor< T >::label, m_detectorAlignment, SelectionDescriptor< T >::options, and setDetectorAlignment().
Referenced by DetectorAlignmentEditor::DetectorAlignmentEditor().
RectangularDetectorItem::DOUBLE_PROPERTY | ( | distance | , |
Distance | |||
) |
RectangularDetectorItem::DOUBLE_PROPERTY | ( | height | , |
Height | |||
) |
RectangularDetectorItem::DOUBLE_PROPERTY | ( | u0 | , |
U0 | |||
) |
RectangularDetectorItem::DOUBLE_PROPERTY | ( | v0 | , |
V0 | |||
) |
RectangularDetectorItem::DOUBLE_PROPERTY | ( | width | , |
Width | |||
) |
|
inherited |
Definition at line 37 of file DetectorItems.cpp.
References MaskItems::copy(), and DetectorItem::m_maskItems.
Referenced by Instrument2DItem::importMasks().
|
inherited |
Definition at line 42 of file DetectorItems.cpp.
References DetectorItem::m_maskItems.
Referenced by DetectorItem::addMasksToCore().
|
inherited |
Definition at line 47 of file DetectorItems.cpp.
References SelectionProperty< T >::get(), and DetectorItem::m_resolutionFunction.
|
inherited |
Definition at line 52 of file DetectorItems.cpp.
References DetectorItem::m_resolutionFunction.
Referenced by ResolutionFunctionEditor::ResolutionFunctionEditor(), ParameterTreeBuilder::addDetector(), and ResolutionFunctionEditor::createResolutionWidgets().
|
overridevirtual |
Implements DetectorItem.
Definition at line 98 of file RectangularDetectorItem.cpp.
References Streamer::assertVersion(), m_detectorAlignment, DetectorItem::m_maskItems, DetectorItem::m_resolutionFunction, m_xSize, m_ySize, Serialize::rwClass(), Serialize::rwProperty(), Serialize::rwValue(), setDetectorAlignment(), ResolutionFunctionItem::setUnit(), and Streamer::xmlReader().
void RectangularDetectorItem::setDetectorAlignment | ( | RectangularDetector::EDetectorArrangement | alignment | ) |
Definition at line 125 of file RectangularDetectorItem.cpp.
References m_detectorAlignment, and updateTooltips().
Referenced by detectorAlignmentSelection(), and serialize().
|
inherited |
Definition at line 73 of file DetectorItems.h.
References SelectionProperty< T >::get(), DetectorItem::m_resolutionFunction, and SelectionProperty< T >::set().
|
overridevirtual |
sets the size of x-axis of the detector
Implements DetectorItem.
Definition at line 147 of file RectangularDetectorItem.cpp.
References m_xSize.
Referenced by RectangularDetectorEditor::RectangularDetectorEditor().
|
overridevirtual |
sets the size of y-axis of the detector
Implements DetectorItem.
Definition at line 152 of file RectangularDetectorItem.cpp.
References m_ySize.
Referenced by RectangularDetectorEditor::RectangularDetectorEditor().
|
private |
Definition at line 212 of file RectangularDetectorItem.cpp.
References m_detectorAlignment.
Referenced by RectangularDetectorItem(), and setDetectorAlignment().
RectangularDetectorItem::VECTOR_PROPERTY | ( | directionVector | , |
DirectionVector | |||
) |
RectangularDetectorItem::VECTOR_PROPERTY | ( | normalVector | , |
NormalVector | |||
) |
|
overridevirtual |
Returns the size of x-axis of the detector.
Implements DetectorItem.
Definition at line 137 of file RectangularDetectorItem.cpp.
References m_xSize.
Referenced by RectangularDetectorEditor::RectangularDetectorEditor(), and createDomainDetector().
|
overridevirtual |
Returns the size of y-axis of the detector.
Implements DetectorItem.
Definition at line 142 of file RectangularDetectorItem.cpp.
References m_ySize.
Referenced by RectangularDetectorEditor::RectangularDetectorEditor(), and createDomainDetector().
|
private |
Definition at line 70 of file RectangularDetectorItem.h.
Referenced by RectangularDetectorItem(), alignmentPropertiesForUI(), createDomainDetector(), detectorAlignment(), detectorAlignmentSelection(), serialize(), setDetectorAlignment(), and updateTooltips().
|
protectedinherited |
for creation of domain detector; only filled and relevant in jobs
Definition at line 68 of file DetectorItems.h.
Referenced by DetectorItem::addMasksToCore(), DetectorItem::importMasks(), DetectorItem::maskItems(), serialize(), and SphericalDetectorItem::serialize().
|
protectedinherited |
Definition at line 69 of file DetectorItems.h.
Referenced by RectangularDetectorItem(), SphericalDetectorItem::SphericalDetectorItem(), DetectorItem::createResolutionFunction(), DetectorItem::resolutionFunction(), DetectorItem::resolutionFunctionSelection(), serialize(), SphericalDetectorItem::serialize(), and DetectorItem::setResolutionFunctionType().
|
private |
Definition at line 71 of file RectangularDetectorItem.h.
Referenced by RectangularDetectorItem(), serialize(), setXSize(), and xSize().
|
private |
Definition at line 72 of file RectangularDetectorItem.h.
Referenced by RectangularDetectorItem(), serialize(), setYSize(), and ySize().
|
staticconstexprprivate |
Definition at line 32 of file RectangularDetectorItem.h.
|
staticconstexprprivate |
Definition at line 33 of file RectangularDetectorItem.h.
|
staticconstexprprivate |
Definition at line 29 of file RectangularDetectorItem.h.
|
staticconstexprprivate |
Definition at line 34 of file RectangularDetectorItem.h.
|
staticconstexprprivate |
Definition at line 28 of file RectangularDetectorItem.h.
|
staticconstexprprivate |
Definition at line 30 of file RectangularDetectorItem.h.
|
staticconstexprprivate |
Definition at line 31 of file RectangularDetectorItem.h.
|
staticconstexprprivate |
Definition at line 26 of file RectangularDetectorItem.h.
|
staticconstexprprivate |
Definition at line 27 of file RectangularDetectorItem.h.