47 m_plot->installEventFilter(
this);
53 if (event->type() == QEvent::Resize || event->type() == QEvent::UpdateRequest) {
Defines class ColorMapSceneAdaptor.
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.
QRectF viewportRectangleInWidgetCoordinates()
Returns rectangle representing current axes zoom state in widget coordinates.
QRectF m_viewport_rectangle
double yAxisCoordToPixel(double axis_coordinate) const
double pixelToYaxisCoord(double pixel) const
double pixelToXaxisCoord(double pixel) const
transform widget coordinates to axes coordinates
double xAxisCoordToPixel(double axis_coordinate) const
transform axes coordinates to CustomPlot widget coordinates