15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_COLORMAPSCENEADAPTOR_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_MASKWIDGETS_COLORMAPSCENEADAPTOR_H
Defines interface class ISceneAdaptor.
Performs conversion of MaskItems coordinates between ColorMap and GraphicsScene.
void setColorMapPlot(ColorMap *plot)
qreal fromSceneX(qreal scene_x) const
convert scene x-coordinate to native mask coordinate
qreal fromSceneY(qreal scene_y) const
convert scene y-coordinate to native mask coordinate
const QRectF & viewportRectangle() const
returns ColorMapPlot axes rectangle (at current zoom level) in scene coordinates
qreal toSceneX(qreal mask_x) const
convert native mask x-coordinate to scene coordinate
bool eventFilter(QObject *object, QEvent *event)
qreal toSceneY(qreal mask_y) const
convert native mask y-coordinate to scene 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...