BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Interface to adapt MaskItems coordinates (expressed in units of IntensityDataItem) to/from scene coordinates.
Definition at line 24 of file ISceneAdaptor.h.
Signals | |
void | update_request () |
Public Member Functions | |
~ISceneAdaptor () override=default | |
virtual qreal | fromSceneX (qreal) const =0 |
convert scene x-coordinate to native mask coordinate More... | |
virtual qreal | fromSceneY (qreal) const =0 |
convert scene y-coordinate to native mask coordinate More... | |
virtual qreal | toSceneX (qreal) const =0 |
convert native mask x-coordinate to scene coordinate More... | |
virtual qreal | toSceneY (qreal) const =0 |
convert native mask y-coordinate to scene coordinate More... | |
virtual const QRectF & | viewportRectangle () const |
Returns viewport rectangle in scene coordinates. More... | |
Protected Attributes | |
QRectF | m_viewport_rectangle |
|
overridedefault |
|
pure virtual |
convert scene x-coordinate to native mask coordinate
Implemented in DefaultSceneAdaptor, and ColorMapSceneAdaptor.
Referenced by IShape2DView::fromSceneX().
|
pure virtual |
convert scene y-coordinate to native mask coordinate
Implemented in DefaultSceneAdaptor, and ColorMapSceneAdaptor.
Referenced by IShape2DView::fromSceneY().
|
pure virtual |
convert native mask x-coordinate to scene coordinate
Implemented in DefaultSceneAdaptor, and ColorMapSceneAdaptor.
Referenced by IShape2DView::toSceneX().
|
pure virtual |
convert native mask y-coordinate to scene coordinate
Implemented in DefaultSceneAdaptor, and ColorMapSceneAdaptor.
Referenced by IShape2DView::toSceneY().
|
signal |
Referenced by ColorMapSceneAdaptor::eventFilter(), and IShape2DView::setSceneAdaptor().
|
inlinevirtual |
Returns viewport rectangle in scene coordinates.
Reimplemented in ColorMapSceneAdaptor.
Definition at line 39 of file ISceneAdaptor.h.
References m_viewport_rectangle.
Referenced by RegionOfInterestView::boundingRect(), VerticalLineView::update_view(), HorizontalLineView::update_view(), MaskAllView::update_view(), MaskContainerView::update_view(), and RegionOfInterestView::update_view().
|
protected |
Definition at line 45 of file ISceneAdaptor.h.
Referenced by ColorMapSceneAdaptor::eventFilter(), viewportRectangle(), and ColorMapSceneAdaptor::viewportRectangle().