BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The ColorMapCanvas class contains ColorMap for intensity data presentation, and provide control of font size, status string appearance, defines common actions (reset view, save plot, show context menu).
Definition at line 30 of file ColorMapCanvas.h.
Public Slots | |
void | onStatusString (const QString &name) |
Public Member Functions | |
ColorMapCanvas (QWidget *parent=nullptr) | |
virtual QList< QAction * > | actionList () |
ColorMap * | colorMap () |
SessionItem * | currentItem () |
const SessionItem * | currentItem () const |
QCustomPlot * | customPlot () |
void | setItem (SessionItem *intensityDataItem) override |
void | setStatusLabelEnabled (bool flag) |
Protected Member Functions | |
void | hideEvent (QHideEvent *) override |
void | showEvent (QShowEvent *) override |
virtual void | subscribeToItem () |
virtual void | unsubscribeFromItem () |
Private Attributes | |
FontScalingEvent * | m_canvasEvent |
ColorMap * | m_colorMap |
SessionItemController * | m_itemController |
PlotStatusLabel * | m_statusLabel |
|
explicit |
Definition at line 23 of file ColorMapCanvas.cpp.
References m_canvasEvent, m_colorMap, m_statusLabel, and setStatusLabelEnabled().
|
virtualinherited |
Reimplemented in IntensityDataProjectionsWidget, SpecularDataWidget, SpecularDataCanvas, FitComparisonWidget1D, FitComparisonWidget, IntensityDataWidget, IntensityDataCanvas, SpecularDataImportWidget, RealDataPresenter, and RealDataMaskWidget.
Definition at line 36 of file SessionItemWidget.cpp.
Referenced by ItemComboWidget::setPresentation().
ColorMap * ColorMapCanvas::colorMap | ( | ) |
Definition at line 48 of file ColorMapCanvas.cpp.
References m_colorMap.
Referenced by FitComparisonWidget::subscribeToItem().
|
inherited |
Definition at line 41 of file SessionItemWidget.cpp.
Referenced by FitFlowWidget::fitSuiteItem(), RealDataMaskWidget::intensityDataItem(), IntensityDataCanvas::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.
QCustomPlot * ColorMapCanvas::customPlot | ( | ) |
Definition at line 53 of file ColorMapCanvas.cpp.
References ColorMap::customPlot(), and m_colorMap.
Referenced by IntensityDataCanvas::IntensityDataCanvas(), and IntensityDataCanvas::onSavePlotAction().
|
overrideprotectedinherited |
Definition at line 56 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, and SessionItemController::unsubscribe().
|
slot |
Definition at line 64 of file ColorMapCanvas.cpp.
References m_statusLabel, GUI::RealSpace::Particles::name(), and StatusLabel::setText().
|
overridevirtual |
Reimplemented from SessionItemWidget.
Definition at line 42 of file ColorMapCanvas.cpp.
References GUI::Model::DataItemUtils::intensityDataItem(), m_colorMap, and SessionItemWidget::setItem().
Referenced by IntensityDataCanvas::setItem(), and FitComparisonWidget::subscribeToItem().
void ColorMapCanvas::setStatusLabelEnabled | ( | bool | flag | ) |
Definition at line 58 of file ColorMapCanvas.cpp.
References m_statusLabel, and PlotStatusLabel::setLabelEnabled().
Referenced by ColorMapCanvas(), and IntensityDataCanvas::IntensityDataCanvas().
|
overrideprotectedinherited |
Definition at line 51 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, and SessionItemController::subscribe().
|
inlineprotectedvirtualinherited |
Reimplemented in ProjectionsPlot, IntensityDataProjectionsWidget, ColorMap, SpecularPlot, Plot1D, FitFlowWidget, FitComparisonWidget1D, FitComparisonWidget, IntensityDataCanvas, RealDataMaskWidget, RunFitControlWidget, ParameterTuningWidget, FitParameterWidget, and ItemComboWidget.
Definition at line 43 of file SessionItemWidget.h.
Referenced by SessionItemWidget::SessionItemWidget().
|
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 48 of file ColorMapCanvas.h.
Referenced by ColorMapCanvas().
|
private |
Definition at line 47 of file ColorMapCanvas.h.
Referenced by ColorMapCanvas(), colorMap(), customPlot(), 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 49 of file ColorMapCanvas.h.
Referenced by ColorMapCanvas(), onStatusString(), and setStatusLabelEnabled().