19 #include <QGraphicsSceneMouseEvent>
23 , m_sceneAdaptor(nullptr)
24 , m_send_signals_to_colormap(false)
61 setAcceptedMouseButtons(Qt::LeftButton);
63 setAcceptedMouseButtons(Qt::NoButton);
75 QGraphicsProxyWidget::mousePressEvent(event);
83 QGraphicsProxyWidget::mouseReleaseEvent(event);
90 QGraphicsProxyWidget::wheelEvent(event);
97 QGraphicsProxyWidget::mouseMoveEvent(event);
Defines class ColorMapSceneAdaptor.
Defines class IntensityDataItem.
Defines class MaskGraphicsProxy.
Performs conversion of MaskItems coordinates between ColorMap and GraphicsScene.
void setColorMapPlot(ColorMap *plot)
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...
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
void setIntensityItem(IntensityDataItem *item)
void wheelEvent(QGraphicsSceneWheelEvent *event) override
bool m_send_signals_to_colormap
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
~MaskGraphicsProxy() override
ColorMapSceneAdaptor * m_sceneAdaptor
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
void setInZoomMode(bool value)
Sets widget to zoom mode, when signals (zoom wheel, mouse clicks) are send down to ColorMap plot....
void setSceneAdaptor(ISceneAdaptor *sceneAdaptor)
IntensityDataItem * intensityDataItem(SessionItem *parent)
Returns IntensityDataItem contained as a child in givent parent.