BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Custom proxy widget to embed color map in graphics scene. More...
Public Member Functions | |
CustomPlotProxyWidget (QWidget *colormap) | |
bool | eventFilter (QObject *object, QEvent *event) |
Notifies all graphics items about axes viewport change in QCustomPlot. More... | |
void | setBlockSignalsToProxy (bool value) |
Protected Member Functions | |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
void | wheelEvent (QGraphicsSceneWheelEvent *event) |
Private Attributes | |
bool | block_signals_to_proxy {false} |
Custom proxy widget to embed color map in graphics scene.
Definition at line 27 of file customplotproxywidget.h.
CustomPlotProxyWidget::CustomPlotProxyWidget | ( | QWidget * | colormap | ) |
Definition at line 24 of file customplotproxywidget.cpp.
bool CustomPlotProxyWidget::eventFilter | ( | QObject * | object, |
QEvent * | event | ||
) |
Notifies all graphics items about axes viewport change in QCustomPlot.
Used in RegionOfInterestView to recalculate bounding box and scene positions depending on current state of CustomPlotSceneAdapter.
Definition at line 34 of file customplotproxywidget.cpp.
|
protected |
Definition at line 56 of file customplotproxywidget.cpp.
References block_signals_to_proxy.
|
protected |
|
protected |
void CustomPlotProxyWidget::setBlockSignalsToProxy | ( | bool | value | ) |
Definition at line 44 of file customplotproxywidget.cpp.
References block_signals_to_proxy.
|
protected |
Definition at line 70 of file customplotproxywidget.cpp.
References block_signals_to_proxy.
|
private |
Definition at line 44 of file customplotproxywidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), setBlockSignalsToProxy(), and wheelEvent().