BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Painting widget for MaskEditor, contains graphics scene and graphics view.
Definition at line 33 of file MaskEditorCanvas.h.
Public Slots | |
void | onPresentationTypeRequest (MaskEditorFlags::PresentationType presentationType) |
void | onResetViewRequest () |
void | onSavePlotRequest () |
Saves plot into project directory. More... | |
Signals | |
void | changeActivityRequest (MaskEditorFlags::Activity) |
void | deleteSelectedRequest () |
Public Member Functions | |
MaskEditorCanvas (QWidget *parent=nullptr) | |
MaskGraphicsScene * | getScene () |
void | resetContext () |
void | setMaskContext (SessionModel *model, const QModelIndex &maskContainerIndex, IntensityDataItem *intensityItem) |
void | setSelectionModel (QItemSelectionModel *model) |
Private Member Functions | |
bool | isAxisRangeMatchData () const |
Returns true if IntensityData is currently at 100% zoom level. More... | |
void | setZoomToROI () |
Private Attributes | |
IntensityDataItem * | m_intensityDataItem |
MaskResultsPresenter * | m_resultsPresenter |
MaskGraphicsScene * | m_scene |
PlotStatusLabel * | m_statusLabel |
MaskGraphicsView * | m_view |
MaskEditorCanvas::MaskEditorCanvas | ( | QWidget * | parent = nullptr | ) |
Definition at line 28 of file MaskEditorCanvas.cpp.
References changeActivityRequest(), MaskGraphicsView::changeActivityRequest(), deleteSelectedRequest(), MaskGraphicsView::deleteSelectedRequest(), m_statusLabel, and m_view.
|
signal |
Referenced by MaskEditorCanvas(), and MaskEditor::setup_connections().
|
signal |
Referenced by MaskEditorCanvas(), and MaskEditor::setup_connections().
MaskGraphicsScene * MaskEditorCanvas::getScene | ( | ) |
Definition at line 76 of file MaskEditorCanvas.cpp.
References m_scene.
Referenced by MaskEditor::setup_connections().
|
private |
Returns true if IntensityData is currently at 100% zoom level.
Definition at line 115 of file MaskEditorCanvas.cpp.
References IntensityDataItem::getLowerX(), IntensityDataItem::getLowerY(), IntensityDataItem::getUpperX(), IntensityDataItem::getUpperY(), m_intensityDataItem, IntensityDataItem::xMax(), IntensityDataItem::xMin(), IntensityDataItem::yMax(), and IntensityDataItem::yMin().
Referenced by onResetViewRequest().
|
slot |
Definition at line 81 of file MaskEditorCanvas.cpp.
References m_intensityDataItem, m_resultsPresenter, m_scene, MaskEditorFlags::MASK_EDITOR, IntensityDataItem::maskContainerItem(), and MaskResultsPresenter::updatePresenter().
Referenced by MaskEditor::setup_connections().
|
slot |
Definition at line 103 of file MaskEditorCanvas.cpp.
References isAxisRangeMatchData(), m_intensityDataItem, m_view, MaskGraphicsView::onResetViewRequest(), IntensityDataItem::resetView(), and setZoomToROI().
Referenced by MaskEditor::setup_connections().
|
slot |
Saves plot into project directory.
Definition at line 95 of file MaskEditorCanvas.cpp.
References MaskGraphicsScene::colorMap(), ColorMap::customPlot(), DataItem::getDatafield(), gSessionData, m_intensityDataItem, m_scene, SessionData::projectDocument, and GUI::Plot::savePlot().
Referenced by MaskEditor::setup_connections().
void MaskEditorCanvas::resetContext | ( | ) |
Definition at line 64 of file MaskEditorCanvas.cpp.
References m_intensityDataItem, m_scene, m_statusLabel, PlotStatusLabel::reset(), and MaskGraphicsScene::resetContext().
Referenced by MaskEditor::resetContext().
void MaskEditorCanvas::setMaskContext | ( | SessionModel * | model, |
const QModelIndex & | maskContainerIndex, | ||
IntensityDataItem * | intensityItem | ||
) |
Definition at line 52 of file MaskEditorCanvas.cpp.
References PlotStatusLabel::addPlot(), MaskGraphicsScene::colorMap(), m_intensityDataItem, m_resultsPresenter, m_scene, m_statusLabel, m_view, MaskResultsPresenter::setMaskContext(), MaskGraphicsScene::setMaskContext(), and MaskGraphicsView::updateSize().
Referenced by MaskEditor::setMaskContext().
void MaskEditorCanvas::setSelectionModel | ( | QItemSelectionModel * | model | ) |
Definition at line 71 of file MaskEditorCanvas.cpp.
References m_scene, and MaskGraphicsScene::setSelectionModel().
Referenced by MaskEditor::setMaskContext().
|
private |
Definition at line 130 of file MaskEditorCanvas.cpp.
References m_intensityDataItem, IntensityDataItem::maskContainerItem(), IntensityDataItem::setLowerX(), IntensityDataItem::setLowerY(), IntensityDataItem::setUpperX(), and IntensityDataItem::setUpperY().
Referenced by onResetViewRequest().
|
private |
Definition at line 62 of file MaskEditorCanvas.h.
Referenced by isAxisRangeMatchData(), onPresentationTypeRequest(), onResetViewRequest(), onSavePlotRequest(), resetContext(), setMaskContext(), and setZoomToROI().
|
private |
Definition at line 64 of file MaskEditorCanvas.h.
Referenced by onPresentationTypeRequest(), and setMaskContext().
|
private |
Definition at line 60 of file MaskEditorCanvas.h.
Referenced by getScene(), onPresentationTypeRequest(), onSavePlotRequest(), resetContext(), setMaskContext(), and setSelectionModel().
|
private |
Definition at line 63 of file MaskEditorCanvas.h.
Referenced by MaskEditorCanvas(), resetContext(), and setMaskContext().
|
private |
Definition at line 61 of file MaskEditorCanvas.h.
Referenced by MaskEditorCanvas(), onResetViewRequest(), and setMaskContext().