BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Graphics proxy to place QWidget inside QGraphicsScene, used by MaskEditorCanvas.
Definition at line 29 of file MaskGraphicsProxy.h.
Public Member Functions | |
MaskGraphicsProxy () | |
~MaskGraphicsProxy () override | |
ColorMap * | colorMap () |
void | setIntensityItem (IntensityDataItem *item) |
void | setInZoomMode (bool value) |
Sets widget to zoom mode, when signals (zoom wheel, mouse clicks) are send down to ColorMap plot. In non-zoom mode, widget doesn't react on clicks. More... | |
void | setSceneAdaptor (ISceneAdaptor *sceneAdaptor) |
int | type () const override |
Protected Member Functions | |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
void | wheelEvent (QGraphicsSceneWheelEvent *event) override |
Private Attributes | |
ColorMap * | m_colorMap |
ColorMapSceneAdaptor * | m_sceneAdaptor |
bool | m_send_signals_to_colormap |
MaskGraphicsProxy::MaskGraphicsProxy | ( | ) |
Definition at line 21 of file MaskGraphicsProxy.cpp.
References setInZoomMode().
|
override |
Definition at line 30 of file MaskGraphicsProxy.cpp.
References m_sceneAdaptor, and ColorMapSceneAdaptor::setColorMapPlot().
ColorMap * MaskGraphicsProxy::colorMap | ( | ) |
Definition at line 66 of file MaskGraphicsProxy.cpp.
References m_colorMap.
Referenced by MaskGraphicsScene::colorMap().
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
void MaskGraphicsProxy::setIntensityItem | ( | IntensityDataItem * | item | ) |
Definition at line 37 of file MaskGraphicsProxy.cpp.
References GUI::Model::DataItemUtils::intensityDataItem(), m_colorMap, and SessionItemWidget::setItem().
Referenced by MaskGraphicsScene::updateProxyWidget().
void MaskGraphicsProxy::setInZoomMode | ( | bool | value | ) |
Sets widget to zoom mode, when signals (zoom wheel, mouse clicks) are send down to ColorMap plot. In non-zoom mode, widget doesn't react on clicks.
Definition at line 57 of file MaskGraphicsProxy.cpp.
References m_send_signals_to_colormap.
Referenced by MaskGraphicsProxy(), and MaskGraphicsScene::setInPanAndZoomMode().
void MaskGraphicsProxy::setSceneAdaptor | ( | ISceneAdaptor * | sceneAdaptor | ) |
Definition at line 44 of file MaskGraphicsProxy.cpp.
References m_colorMap, m_sceneAdaptor, and ColorMapSceneAdaptor::setColorMapPlot().
Referenced by MaskGraphicsScene::~MaskGraphicsScene(), and MaskGraphicsScene::updateProxyWidget().
|
inlineoverride |
|
overrideprotected |
|
private |
Definition at line 51 of file MaskGraphicsProxy.h.
Referenced by colorMap(), setIntensityItem(), and setSceneAdaptor().
|
private |
Definition at line 52 of file MaskGraphicsProxy.h.
Referenced by ~MaskGraphicsProxy(), and setSceneAdaptor().
|
private |
Definition at line 53 of file MaskGraphicsProxy.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), setInZoomMode(), and wheelEvent().