15 #ifndef BORNAGAIN_GUI_VIEW_MASK_COLORMAPSCENEADAPTOR_H
16 #define BORNAGAIN_GUI_VIEW_MASK_COLORMAPSCENEADAPTOR_H
30 qreal
toSceneX(qreal mask_x)
const override;
31 qreal
toSceneY(qreal mask_y)
const override;
32 qreal
fromSceneX(qreal scene_x)
const override;
33 qreal
fromSceneY(qreal scene_y)
const override;
37 bool eventFilter(QObject*
object, QEvent* event)
override;
Defines interface class ISceneAdaptor.
Performs conversion of MaskItems coordinates between ColorMap and GraphicsScene.
void setColorMapPlot(ColorMap *plot)
qreal fromSceneX(qreal scene_x) const override
convert scene x-coordinate to native mask coordinate
qreal toSceneX(qreal mask_x) const override
convert native mask x-coordinate to scene coordinate
const QRectF & viewportRectangle() const override
Returns ColorMapPlot axes rectangle (at current zoom level) in scene coordinates.
bool eventFilter(QObject *object, QEvent *event) override
qreal toSceneY(qreal mask_y) const override
convert native mask y-coordinate to scene coordinate
qreal fromSceneY(qreal scene_y) const override
convert scene y-coordinate to native mask coordinate
The ColorMap class presents 2D intensity data from IntensityDataItem as color map.
Interface to adapt MaskItems coordinates (expressed in units of IntensityDataItem) to/from scene coor...