BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The IntensityDataCanvas class represents IntensityDataItem as color map, provides standard actions (reset view, save as) for external toolbars and context menus.
Definition at line 30 of file IntensityDataCanvas.h.
Public Slots | |
void | onMousePress (QMouseEvent *event) |
void | onResetViewAction () |
void | onSavePlotAction () |
Public Member Functions | |
IntensityDataCanvas (QWidget *parent=nullptr) | |
QList< QAction * > | actionList () override |
SessionItem * | currentItem () |
const SessionItem * | currentItem () const |
QSize | minimumSizeHint () const override |
void | setItem (SessionItem *intensityItem) override |
QSize | sizeHint () const override |
Protected Member Functions | |
void | hideEvent (QHideEvent *) override |
void | rotateData () |
void | showEvent (QShowEvent *) override |
void | subscribeToItem () override |
virtual void | unsubscribeFromItem () |
Private Member Functions | |
void | applyPersistentSettings () |
Apply persistent settings (gradient, interpolation) to IntensityDataItem. More... | |
void | initActions () |
void | initRotation () |
IntensityDataItem * | intensityDataItem () |
void | onPropertyChanged (const QString &name) |
Reads gradient/ interpolation settings from IntensityDataItem and writes to persistant project settings. More... | |
Private Attributes | |
ColorMapCanvas * | m_colorMap |
SessionItemController * | m_itemController |
QAction * | m_resetViewAction |
QAction * | m_rotateDataAction |
QAction * | m_savePlotAction |
|
explicit |
Definition at line 41 of file IntensityDataCanvas.cpp.
References ColorMapCanvas::customPlot(), initActions(), m_colorMap, onMousePress(), and ColorMapCanvas::setStatusLabelEnabled().
|
overridevirtual |
Reimplemented from SessionItemWidget.
Definition at line 84 of file IntensityDataCanvas.cpp.
References m_resetViewAction, m_rotateDataAction, and m_savePlotAction.
Referenced by IntensityDataWidget::actionList().
|
private |
Apply persistent settings (gradient, interpolation) to IntensityDataItem.
Definition at line 189 of file IntensityDataCanvas.cpp.
References IntensityDataItem::getGradient(), ComboProperty::getValue(), intensityDataItem(), IntensityDataItem::setGradient(), IntensityDataItem::setInterpolated(), and ComboProperty::setValue().
Referenced by setItem().
|
inherited |
Definition at line 41 of file SessionItemWidget.cpp.
Referenced by FitFlowWidget::fitSuiteItem(), RealDataMaskWidget::intensityDataItem(), intensityDataItem(), IntensityDataWidget::intensityDataItem(), IntensityDataProjectionsWidget::intensityDataItem(), ProjectionsPlot::intensityItem(), ColorMap::intensityItem(), JobResultsPresenter::itemPresentation(), FitParameterWidget::jobItem(), ParameterTuningWidget::jobItem(), RunFitControlWidget::jobItem(), FitComparisonWidget::jobItem(), FitComparisonWidget1D::jobItem(), IntensityDataPropertyWidget::jobItem(), SpecularDataPropertyWidget::jobItem(), SpecularDataImportWidget::realDataItem(), ItemComboWidget::setPresentation(), JobResultsPresenter::setPresentation(), SpecularDataImportWidget::specularDataItem(), SpecularDataCanvas::specularDataItem(), SpecularDataWidget::specularDataItem(), SpecularPlot::specularItem(), ItemComboWidget::subscribeToItem(), ProjectionsPlot::unsubscribeFromChildren(), and Plot1D::viewItem().
|
inherited |
Definition at line 46 of file SessionItemWidget.cpp.
References SessionItemController::currentItem(), and SessionItemWidget::m_itemController.
|
overrideprotectedinherited |
Definition at line 56 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, and SessionItemController::unsubscribe().
|
private |
Definition at line 145 of file IntensityDataCanvas.cpp.
References m_resetViewAction, m_savePlotAction, onResetViewAction(), and onSavePlotAction().
Referenced by IntensityDataCanvas().
|
private |
Definition at line 161 of file IntensityDataCanvas.cpp.
References intensityDataItem(), m_rotateDataAction, and rotateData().
Referenced by setItem().
|
private |
Definition at line 138 of file IntensityDataCanvas.cpp.
References SessionItemWidget::currentItem().
Referenced by applyPersistentSettings(), initRotation(), onPropertyChanged(), onResetViewAction(), onSavePlotAction(), rotateData(), setItem(), and subscribeToItem().
|
override |
Definition at line 79 of file IntensityDataCanvas.cpp.
|
slot |
|
private |
Reads gradient/ interpolation settings from IntensityDataItem and writes to persistant project settings.
Definition at line 176 of file IntensityDataCanvas.cpp.
References intensityDataItem(), IntensityDataItem::isGradientPropertyName(), IntensityDataItem::isInterpolatedPropertyName(), and GUI::RealSpace::Particles::name().
Referenced by subscribeToItem().
|
slot |
Definition at line 92 of file IntensityDataCanvas.cpp.
References intensityDataItem(), and IntensityDataItem::resetView().
Referenced by initActions().
|
slot |
Definition at line 97 of file IntensityDataCanvas.cpp.
References ColorMapCanvas::customPlot(), gSessionData, intensityDataItem(), m_colorMap, SessionData::projectDocument, and GUI::Plot::savePlot().
Referenced by initActions().
|
protected |
Definition at line 115 of file IntensityDataCanvas.cpp.
References intensityDataItem(), GUI::Global::mainWindow, SessionItem::parentItem(), and GUI::View::Helpers::question().
Referenced by initRotation().
|
overridevirtual |
Reimplemented from SessionItemWidget.
Definition at line 64 of file IntensityDataCanvas.cpp.
References applyPersistentSettings(), initRotation(), intensityDataItem(), m_colorMap, m_rotateDataAction, ColorMapCanvas::setItem(), and SessionItemWidget::setItem().
Referenced by IntensityDataWidget::onFFTAction(), and IntensityDataWidget::setItem().
|
overrideprotectedinherited |
Definition at line 51 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, and SessionItemController::subscribe().
|
override |
Definition at line 74 of file IntensityDataCanvas.cpp.
|
overrideprotectedvirtual |
Reimplemented from SessionItemWidget.
Definition at line 109 of file IntensityDataCanvas.cpp.
References intensityDataItem(), SessionItem::mapper(), GUI::RealSpace::Particles::name(), onPropertyChanged(), and ModelMapper::setOnPropertyChange().
|
inlineprotectedvirtualinherited |
Reimplemented in ProjectionsPlot, IntensityDataProjectionsWidget, ColorMap, SpecularPlot, Plot1D, FitFlowWidget, FitComparisonWidget1D, FitComparisonWidget, RealDataMaskWidget, and RunFitControlWidget.
Definition at line 44 of file SessionItemWidget.h.
Referenced by SessionItemWidget::SessionItemWidget().
|
private |
Definition at line 58 of file IntensityDataCanvas.h.
Referenced by IntensityDataCanvas(), onSavePlotAction(), and setItem().
|
privateinherited |
Definition at line 49 of file SessionItemWidget.h.
Referenced by SessionItemWidget::SessionItemWidget(), SessionItemWidget::currentItem(), SessionItemWidget::hideEvent(), SessionItemWidget::setItem(), and SessionItemWidget::showEvent().
|
private |
Definition at line 59 of file IntensityDataCanvas.h.
Referenced by actionList(), and initActions().
|
private |
Definition at line 60 of file IntensityDataCanvas.h.
Referenced by actionList(), initRotation(), and setItem().
|
private |
Definition at line 61 of file IntensityDataCanvas.h.
Referenced by actionList(), and initActions().