BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GUI::Model::DataItemUtils Namespace Reference

Description

Utility functions for Intensity and Specular DataItems.

Functions

IntensityDataItemintensityDataItem (SessionItem *parent)
 Returns IntensityDataItem contained as a child in givent parent. More...
 
SpecularDataItemspecularDataItem (SessionItem *parent)
 Returns SpecularDataItem contained as a child in givent parent. More...
 

Function Documentation

◆ intensityDataItem()

IntensityDataItem * GUI::Model::DataItemUtils::intensityDataItem ( SessionItem parent)

Returns IntensityDataItem contained as a child in givent parent.

Definition at line 39 of file DataItemUtils.cpp.

40 {
41  return dataItem<IntensityDataItem>(parent);
42 }

Referenced by IntensityDataWidget::intensityDataItem(), IntensityDataProjectionsWidget::intensityDataItem(), ParameterTuningWidget::onLockZValueChanged(), MaskGraphicsProxy::setIntensityItem(), and ColorMapCanvas::setItem().

◆ specularDataItem()

SpecularDataItem * GUI::Model::DataItemUtils::specularDataItem ( SessionItem parent)

Returns SpecularDataItem contained as a child in givent parent.

Definition at line 44 of file DataItemUtils.cpp.

45 {
46  return dataItem<SpecularDataItem>(parent);
47 }

Referenced by SpecularPlotCanvas::setItem(), SpecularDataImportWidget::specularDataItem(), and SpecularDataWidget::specularDataItem().