15 #ifndef BORNAGAIN_GUI_VIEW_MASK_ISCENEADAPTOR_H
16 #define BORNAGAIN_GUI_VIEW_MASK_ISCENEADAPTOR_H
52 qreal
toSceneX(qreal value)
const override {
return value; }
53 qreal
toSceneY(qreal value)
const override {
return value; }
54 qreal
fromSceneX(qreal value)
const override {
return value; }
55 qreal
fromSceneY(qreal value)
const override {
return value; }
qreal fromSceneY(qreal value) const override
convert scene y-coordinate to native mask coordinate
qreal toSceneY(qreal value) const override
convert native mask y-coordinate to scene coordinate
qreal toSceneX(qreal value) const override
convert native mask x-coordinate to scene coordinate
DefaultSceneAdaptor()=default
qreal fromSceneX(qreal value) const override
convert scene x-coordinate to native mask coordinate
Interface to adapt MaskItems coordinates (expressed in units of IntensityDataItem) to/from scene coor...
virtual qreal fromSceneX(qreal) const =0
convert scene x-coordinate to native mask coordinate
~ISceneAdaptor() override=default
QRectF m_viewport_rectangle
virtual qreal toSceneY(qreal) const =0
convert native mask y-coordinate to scene coordinate
virtual qreal fromSceneY(qreal) const =0
convert scene y-coordinate to native mask coordinate
virtual const QRectF & viewportRectangle() const
Returns viewport rectangle in scene coordinates.
virtual qreal toSceneX(qreal) const =0
convert native mask x-coordinate to scene coordinate