BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Provides access to experimental data, for display and fitting. Owns an AbstractDataLoader.
Definition at line 33 of file RealDataItem.h.
Signals | |
void | importContentsProcessed () |
Public Member Functions | |
RealDataItem () | |
QVector< QString > | acceptableDefaultItemTypes () const |
Returns vector of acceptable default tag types. More... | |
bool | acceptsAsDefaultItem (const QString &item_name) const |
Returns true if model type can be added to default tag. More... | |
SessionItem * | addGroupProperty (const QString &groupTag, const GroupInfo &groupInfo) |
template<typename T > | |
T * | addProperty (const QString &name) |
SessionItem * | addProperty (const QString &name, const QVariant &variant) |
Add new property item and register new tag. name is the tag name and the display name. The property's value will be set to variant. More... | |
virtual bool | allowWritingChildToXml (SessionItem *child) const |
SessionItem * | childAt (int row) const |
Returns the child at the given row. More... | |
QVector< SessionItem * > | children () const |
Returns vector of all children. More... | |
template<typename T > | |
QVector< T * > | childrenOfType () const |
QVector< SessionItem * > | childrenOfType (const QString &model_type) const |
Returns a vector of all children of the given type. More... | |
DataItem * | dataItem () |
const DataItem * | dataItem () const |
AbstractDataLoader * | dataLoader () const |
QString | dataName () const |
The name which is presented to the user. More... | |
int | decimals () const |
QString | defaultTag () const |
Get default tag. More... | |
void | deserializeBinaryData (const QByteArray &data) override |
QString | displayName () const |
Get display name of item, append index if ambigue. More... | |
void | emitDataChanged (int role=Qt::DisplayRole) |
Notify model about data changes. More... | |
template<typename T > | |
T * | firstChildOfType () const |
SessionItem * | getChildOfType (const QString &type) const |
Returns the first child of the given type. More... | |
SessionItem * | getGroupItem (const QString &groupName) const |
Access subitem of group item. More... | |
SessionItem * | getItem (const QString &tag="", int row=0) const |
Returns item in given row of given tag. More... | |
QVector< SessionItem * > | getItems (const QString &tag="") const |
Returns vector of all items of given tag. More... | |
QVariant | getItemValue (const QString &tag) const |
Directly access value of item under given tag. More... | |
QVector< int > | getRoles () const |
Returns vector of all present roles. More... | |
template<typename T > | |
T & | groupItem (const QString &groupName) const |
bool | hasChildren () const |
Indicates whether this SessionItem has any child items. More... | |
bool | hasImportErrors () const |
template<typename T > | |
bool | hasModelType () const |
bool | hasNativeData () const |
bool | holdsDimensionalData () const |
void | initAsIntensityItem () |
void | initAsSpecularItem () |
void | initNativeData () |
void | insertChild (int row, SessionItem *item, const QString &tag="") |
Insert item into given tag into given row. More... | |
QString | instrumentId () const |
IntensityDataItem * | intensityDataItem () |
const IntensityDataItem * | intensityDataItem () const |
bool | isEditable () const |
bool | isEnabled () const |
bool | isIntensityData () const |
bool | isSpecularData () const |
bool | isTag (const QString &name) const |
Returns true if tag is available. More... | |
template<typename T > | |
T * | item (const QString &tag) const |
QString | itemName () const |
Get item name, return display name if no name is set. More... | |
template<typename T > | |
QVector< T * > | items (const QString &tag="") const |
RealLimits | limits () const |
void | linkToInstrument (const InstrumentItem *instrument) |
ModelMapper * | mapper () |
Returns the current model mapper of this item. Creates new one if necessary. More... | |
MaskContainerItem * | maskContainerItem () |
Returns mask container item. More... | |
SessionModel * | model () const |
Returns model of this item. More... | |
QString | modelType () const |
Get model type. More... | |
DataItem * | nativeData () |
const DataItem * | nativeData () const |
const Datafield * | nativeDatafield () const |
QString | nativeDataUnits () const |
QString | nativeFileName () const |
int | numberOfChildren () const |
Returns total number of children. More... | |
SessionItem * | parentItem () const |
Returns parent of this item. More... | |
int | parentRow () |
Returns the index of the given item within its parent. Returns -1 when no parent is set. More... | |
virtual void | readNonSessionItems (QXmlStreamReader *reader) |
bool | registerTag (const QString &name, int min=0, int max=-1, QStringList modelTypes={}) |
Add new tag to this item with given name, min, max and types. max = -1 -> unlimited, modelTypes empty -> all types allowed. More... | |
void | removeNativeData () |
QVariant | roleProperty (int role) const |
Returns corresponding variant under given role, invalid variant when role is not present. More... | |
void | rotateData () |
bool | rotationAffectsSetup () const |
Returns true, if rotation will affect linked instrument or mask presence. More... | |
int | rowOfChild (SessionItem *child) const |
Returns row index of given child. More... | |
QByteArray | serializeBinaryData () const override |
const SessionItemTags * | sessionItemTags () const |
void | setDatafield (Datafield *data) |
Sets Datafield to underlying item. Creates it if not existing. More... | |
void | setDataLoader (AbstractDataLoader *loader) |
Takes ownership of loader. More... | |
void | setDataName (const QString &name) |
SessionItem & | setDecimals (int n) |
void | setDefaultTag (const QString &tag) |
Set default tag. More... | |
void | setDisplayName (const QString &display_name) |
Set display name. More... | |
void | setEditable (bool enabled) |
void | setEnabled (bool enabled) |
Flags accessors. More... | |
SessionItem * | setGroupProperty (const QString &groupTag, const QString &modelType) const |
Set the current type of group item. More... | |
template<typename T > | |
T * | setGroupPropertyType (const QString &groupTag) |
void | setImportData (ImportDataInfo info) |
Sets imported data to underlying item. Creates it if not existing. This is used for 1D import. For 2D import, use setDatafield. More... | |
void | setItemName (const QString &name) |
Set item name, add property if necessary. More... | |
void | setItemValue (const QString &tag, const QVariant &variant) const |
Directly set value of item under given tag. More... | |
SessionItem & | setLimits (const RealLimits &value) |
void | setNativeDatafield (Datafield *data) |
takes ownership of data More... | |
void | setNativeDataUnits (const QString &units) |
void | setNativeFileName (const QString &filename) |
The name from where the native data was originally imported. More... | |
bool | setRoleProperty (int role, const QVariant &value) |
Set the contained role property to the given value. See also setTranslatorForRolePropertySetter. More... | |
SessionItem & | setToolTip (const QString &tooltip) |
bool | setValue (QVariant value) |
Set value, ensure that variant types match. More... | |
std::vector< int > | shape () const |
Returns the shape of underlying data item. More... | |
SpecularDataItem * | specularDataItem () |
const SpecularDataItem * | specularDataItem () const |
QString | tagFromItem (const SessionItem *item) const |
Returns the tag name of given item when existing. More... | |
SessionItem * | takeItem (int row, const QString &tag) |
Remove item from given row from given tag. More... | |
SessionItem * | takeRow (int row) |
Removes row from item and returns the item. More... | |
QString | toolTip () const |
void | unlinkFromInstrument () |
void | updateNonXMLDataFileNames () |
Updates the name of file to store intensity data. More... | |
QVariant | value () const |
Get value. More... | |
virtual void | writeNonSessionItems (QXmlStreamWriter *writer) const |
Static Public Member Functions | |
static bool | isItemNamePropertyName (const QString &name) |
Static Public Attributes | |
static constexpr auto | M_TYPE {"RealData"} |
Private Member Functions | |
void | changeFlags (bool enabled, int flag) |
internal More... | |
void | childDeleted (SessionItem *child) |
int | flags () const |
int | getCopyNumberOfChild (const SessionItem *item) const |
internal More... | |
QModelIndex | index () const |
void | initDataItem (size_t data_rank, const QString &tag) |
Creates and inserts a data item except if such item with same tag already exists. Checks for rank compatibility if already existing. No further initialization (like clearing the data etc). More... | |
void | setModel (SessionModel *model) |
void | setParentAndModel (SessionItem *parent, SessionModel *model) |
void | updateToInstrument (const InstrumentItem *instrument) |
This does not set the link to the instrument! Use linkToInstrument() if you want to link to this instrument. More... | |
Private Attributes | |
QVector< SessionItem * > | m_children |
std::unique_ptr< AbstractDataLoader > | m_dataLoader |
QByteArray | m_importSettings |
std::unique_ptr< ModelMapper > | m_mapper |
SessionModel * | m_model |
QString | m_nativeFileName |
SessionItem * | m_parent |
std::unique_ptr< SessionItemData > | m_properties |
std::unique_ptr< SessionItemTags > | m_tags |
Static Private Attributes | |
static constexpr auto | P_INSTRUMENT_ID {"Instrument Id"} |
static constexpr auto | P_NAME {"Name"} |
static constexpr auto | P_NATIVE_DATA_UNITS {"Native user data units"} |
static constexpr auto | T_INTENSITY_DATA {"Intensity data"} |
static constexpr auto | T_NATIVE_DATA {"Native user data axis"} |
Friends | |
class | TestView |
RealDataItem::RealDataItem | ( | ) |
Definition at line 30 of file RealDataItem.cpp.
References SessionItem::addProperty(), IntensityDataItem::M_TYPE, SpecularDataItem::M_TYPE, P_INSTRUMENT_ID, P_NATIVE_DATA_UNITS, SessionItem::registerTag(), SessionItem::setDefaultTag(), SessionItem::setItemName(), T_INTENSITY_DATA, and T_NATIVE_DATA.
|
inherited |
Returns vector of acceptable default tag types.
Definition at line 193 of file SessionItem.cpp.
References SessionItem::defaultTag(), and SessionItem::m_tags.
|
inherited |
Returns true if model type can be added to default tag.
Definition at line 186 of file SessionItem.cpp.
References SessionItem::defaultTag(), and SessionItem::m_tags.
|
inherited |
Definition at line 306 of file SessionItem.cpp.
References GUI::Model::ItemFactory::CreateItem(), SessionItem::groupItem(), SessionItem::insertChild(), GroupItem::M_TYPE, and SessionItem::registerTag().
Referenced by MinimizerContainerItem::MinimizerContainerItem().
|
inherited |
Definition at line 394 of file SessionItem.h.
References SessionItem::insertChild(), SessionItem::registerTag(), and SessionItem::setDisplayName().
|
inherited |
Add new property item and register new tag. name is the tag name and the display name. The property's value will be set to variant.
Definition at line 278 of file SessionItem.cpp.
References GUI::Model::ItemFactory::CreateItem(), SessionItem::insertChild(), SessionItem::isTag(), PropertyItem::M_TYPE, GUI::RealSpace::Particles::name(), and SessionItem::registerTag().
Referenced by AmplitudeAxisItem::AmplitudeAxisItem(), BasicAxisItem::BasicAxisItem(), Data1DProperties::Data1DProperties(), Data1DViewItem::Data1DViewItem(), DataItem::DataItem(), DataProperties::DataProperties(), EllipseItem::EllipseItem(), FitParameterItem::FitParameterItem(), FitParameterLinkItem::FitParameterLinkItem(), FitSuiteItem::FitSuiteItem(), GeneticMinimizerItem::GeneticMinimizerItem(), GSLLMAMinimizerItem::GSLLMAMinimizerItem(), GSLMultiMinimizerItem::GSLMultiMinimizerItem(), HorizontalLineItem::HorizontalLineItem(), IntensityDataItem::IntensityDataItem(), JobItem::JobItem(), MaskItem::MaskItem(), MinimizerContainerItem::MinimizerContainerItem(), MinuitMinimizerItem::MinuitMinimizerItem(), PointwiseAxisItem::PointwiseAxisItem(), PolygonItem::PolygonItem(), PolygonPointItem::PolygonPointItem(), RealDataItem(), RectangleItem::RectangleItem(), SimAnMinimizerItem::SimAnMinimizerItem(), SpecularDataItem::SpecularDataItem(), VerticalLineItem::VerticalLineItem(), and SessionItem::setItemName().
|
virtualinherited |
Definition at line 528 of file SessionItem.cpp.
Referenced by GUI::Session::XML::writeItemAndChildItems().
|
privateinherited |
internal
Definition at line 568 of file SessionItem.cpp.
References SessionFlags::FlagRole, SessionItem::flags(), and SessionItem::setRoleProperty().
Referenced by SessionItem::setEditable(), and SessionItem::setEnabled().
|
inherited |
Returns the child at the given row.
Definition at line 102 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by SessionModel::index(), and SessionItem::takeRow().
|
privateinherited |
Definition at line 533 of file SessionItem.cpp.
References SessionItem::index(), SessionItem::m_children, and SessionItem::rowOfChild().
Referenced by SessionItem::~SessionItem().
|
inherited |
Returns vector of all children.
Definition at line 95 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by MaskContainerItem::maskItems(), DataPropertyContainer::propertyItem(), and GUI::Session::XML::writeItemAndChildItems().
|
inherited |
|
inherited |
Returns a vector of all children of the given type.
Definition at line 127 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by ProjectionsPlot::projectionItems(), and SaveProjectionsAssistant::projectionItems().
DataItem * RealDataItem::dataItem | ( | ) |
Definition at line 77 of file RealDataItem.cpp.
Referenced by GUI::Model::JobFunctions::copyRealDataItem(), initDataItem(), GUI::Model::JobFunctions::initDataView(), intensityDataItem(), setDatafield(), setImportData(), FitComparisonController2D::setItem(), shape(), specularDataItem(), DiffItemController::updateDiffData(), updateNonXMLDataFileNames(), and updateToInstrument().
const DataItem * RealDataItem::dataItem | ( | ) | const |
Definition at line 82 of file RealDataItem.cpp.
References SessionItem::getItem(), and T_INTENSITY_DATA.
AbstractDataLoader * RealDataItem::dataLoader | ( | ) | const |
Definition at line 331 of file RealDataItem.cpp.
References m_dataLoader.
Referenced by hasImportErrors(), SpecularDataImportWidget::onFormatSelectionChanged(), RealDataTreeModel::removeItem(), and SpecularDataImportWidget::setItem().
QString RealDataItem::dataName | ( | ) | const |
The name which is presented to the user.
Definition at line 47 of file RealDataItem.cpp.
References SessionItem::itemName().
Referenced by updateNonXMLDataFileNames().
|
inherited |
Definition at line 484 of file SessionItem.cpp.
References SessionFlags::DecimalRole, and SessionItem::roleProperty().
Referenced by GUI::View::PropertyEditorFactory::CreateEditor().
|
inherited |
Get default tag.
Definition at line 390 of file SessionItem.cpp.
References SessionFlags::DefaultTagRole, and SessionItem::roleProperty().
Referenced by SessionItem::acceptableDefaultItemTypes(), SessionItem::acceptsAsDefaultItem(), SessionModel::copy(), SessionItem::getItem(), SessionItem::getItems(), SessionItem::insertChild(), SessionModel::insertNewItem(), SessionModel::moveItem(), and SessionItem::takeItem().
|
overridevirtual |
Reimplemented from SessionItem.
Definition at line 291 of file RealDataItem.cpp.
References DataLoaders1D::instance(), m_dataLoader, m_importSettings, m_nativeFileName, setDataLoader(), DeserializationException::streamError(), and DeserializationException::tooNew().
|
inherited |
Get display name of item, append index if ambigue.
Definition at line 404 of file SessionItem.cpp.
References SessionFlags::DisplayNameRole, SessionItem::getCopyNumberOfChild(), SessionItem::index(), SessionItemTags::isSingleItemTag(), SessionItem::m_parent, SessionItem::roleProperty(), SessionItem::sessionItemTags(), and SessionItem::tagFromItem().
Referenced by SelectionDescriptor< T >::SelectionDescriptor(), and SessionItem::itemName().
|
inherited |
Notify model about data changes.
Definition at line 358 of file SessionItem.cpp.
References SessionItem::index(), SessionModel::indexOfItem(), and SessionItem::m_model.
Referenced by GroupItem::onValueChange(), IntensityDataItem::setDatafield(), SpecularDataItem::setDatafield(), SessionItem::setRoleProperty(), and PointwiseAxisItem::updateIndicators().
|
inherited |
|
privateinherited |
Definition at line 557 of file SessionItem.cpp.
References SessionFlags::EDITABLE, SessionFlags::ENABLED, SessionFlags::FlagRole, SessionItem::roleProperty(), and SessionFlags::VISIBLE.
Referenced by SessionItem::changeFlags(), SessionItem::isEditable(), and SessionItem::isEnabled().
|
inherited |
Returns the first child of the given type.
Definition at line 116 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by GroupItemController::currentItem(), GroupItemController::getItemOfType(), and GroupItemController::setCurrentType().
|
privateinherited |
internal
Definition at line 580 of file SessionItem.cpp.
References SessionItem::item(), SessionItem::m_children, and SessionItem::P_NAME.
Referenced by SessionItem::displayName().
|
inherited |
Access subitem of group item.
Definition at line 327 of file SessionItem.cpp.
Referenced by SessionItem::groupItem(), and SessionItem::setGroupPropertyType().
|
inherited |
Returns item in given row of given tag.
Definition at line 200 of file SessionItem.cpp.
References SessionItem::defaultTag(), SessionItem::index(), SessionItem::m_children, and SessionItem::m_tags.
Referenced by FitParameterItem::FitParameterItem(), EllipseItem::angle(), DataItem::axesUnits(), Data1DViewItem::axesUnitsDescriptor(), BasicAxisItem::binsItem(), FitSuiteItem::createFitParametersContainer(), JobItem::createFitSuiteItem(), FitSuiteItem::createMinimizerContainer(), JobItem::dataItem(), dataItem(), JobItem::dataItemView(), JobItem::fitSuiteItem(), DataItem::getAxesUnitsItem(), SessionItem::getItemValue(), IntensityDataItem::gradient(), initDataItem(), FitParameterItem::initMinMaxValues(), JobItem::intensityDataItem(), JobItem::isValidForFitting(), SessionItem::item(), FitParameterLinkItem::linkItem(), AmplitudeAxisItem::logScaleItem(), IntensityDataItem::maskContainerItem(), MaskItem::maskValueItem(), BasicAxisItem::max(), FitParameterItem::maximumItem(), BasicAxisItem::maxItem(), BasicAxisItem::min(), FitParameterItem::minimumItem(), BasicAxisItem::minItem(), nativeData(), MinimizerContainerItem::normFunction(), MinimizerContainerItem::objectiveMetric(), VerticalLineItem::posX(), HorizontalLineItem::posY(), IntensityDataItem::projectionContainerItem(), JobItem::realDataItem(), BasicAxisItem::serialize(), PolygonPointItem::serialize(), AmplitudeAxisItem::serialize(), RectangleItem::serialize(), PolygonItem::serialize(), VerticalLineItem::serialize(), HorizontalLineItem::serialize(), EllipseItem::serialize(), MaskAllItem::serialize(), PointwiseAxisItem::serialize(), SessionItem::setItemValue(), FitParameterItem::setLimitEnabled(), setNativeDataUnits(), FitParameterItem::startValueItem(), BasicAxisItem::titleItem(), FitParameterItem::typeItem(), MinuitMinimizerItem::valueDescriptorsForUI(), GSLMultiMinimizerItem::valueDescriptorsForUI(), GeneticMinimizerItem::valueDescriptorsForUI(), SimAnMinimizerItem::valueDescriptorsForUI(), GSLLMAMinimizerItem::valueDescriptorsForUI(), BasicAxisItem::visibilityItem(), EllipseItem::xCenter(), RectangleItem::xLow(), EllipseItem::xRadius(), RectangleItem::xUp(), EllipseItem::yCenter(), RectangleItem::yLow(), EllipseItem::yRadius(), and RectangleItem::yUp().
|
inherited |
Returns vector of all items of given tag.
Definition at line 221 of file SessionItem.cpp.
References SessionItem::defaultTag(), SessionItem::index(), SessionItem::m_children, and SessionItem::m_tags.
Referenced by MaskUnitsConverter::convertIntensityDataItem(), SessionModel::copy(), GroupItem::groupItems(), SessionItem::items(), SessionModel::moveItem(), DataPropertyContainer::propertyItem(), DataPropertyContainer::propertyItems(), and SessionItem::takeRow().
|
inherited |
Directly access value of item under given tag.
Definition at line 292 of file SessionItem.cpp.
References SessionItem::getItem(), SessionItem::isTag(), and SessionItem::value().
Referenced by FitParameterItem::attLimits(), Data1DViewItem::axesUnits(), JobItem::beginTime(), BasicAxisItem::binCount(), FitSuiteItem::chi2(), Data1DProperties::color(), Data1DProperties::colorName(), MaskUnitsConverter::convertCoordinate(), MinimizerContainerItem::createMetric(), MinuitMinimizerItem::createMinimizer(), GSLMultiMinimizerItem::createMinimizer(), GeneticMinimizerItem::createMinimizer(), SimAnMinimizerItem::createMinimizer(), GSLLMAMinimizerItem::createMinimizer(), RectangleItem::createShape(), VerticalLineItem::createShape(), HorizontalLineItem::createShape(), EllipseItem::createShape(), DataProperties::dataItem(), JobItem::endTime(), DataItem::fileName(), JobItem::getComments(), IntensityDataItem::getGradient(), JobItem::getIdentifier(), JobItem::getProgress(), JobItem::getStatus(), PointwiseAxisItem::getUnitsLabel(), FitParameterItem::initMinMaxValues(), instrumentId(), JobItem::instrumentName(), PolygonItem::isClosed(), IntensityDataItem::isInterpolated(), AmplitudeAxisItem::isLocked(), AmplitudeAxisItem::isLogScale(), BasicAxisItem::isTitleVisible(), FitParameterItem::isValid(), MaskItem::isVisibleValue(), SessionItem::itemName(), FitSuiteItem::iterationCount(), Data1DProperties::line(), FitParameterLinkItem::link(), MaskItem::maskValue(), FitParameterItem::maximum(), FitParameterItem::minimum(), nativeDataUnits(), Data1DProperties::nextColorName(), PropertyRepeater::onPropertyChanged(), FitParameterItem::parameterType(), PolygonPointItem::posX(), PolygonPointItem::posY(), JobItem::presentationType(), Data1DProperties::scatter(), DataItem::selectedCoords(), PropertyRepeater::setOnChildPropertyChange(), FitParameterItem::startValue(), BasicAxisItem::title(), FitParameterLinkItem::title(), and FitSuiteItem::updateInterval().
|
inherited |
Returns vector of all present roles.
Definition at line 351 of file SessionItem.cpp.
References SessionItem::m_properties.
Referenced by GUI::Session::XML::writeItemAndChildItems().
|
inherited |
Definition at line 413 of file SessionItem.h.
References SessionItem::getGroupItem().
Referenced by SessionItem::addGroupProperty().
|
inherited |
Indicates whether this SessionItem has any child items.
Definition at line 81 of file SessionItem.cpp.
References SessionItem::numberOfChildren().
Referenced by IntensityDataItem::hasProjections().
bool RealDataItem::hasImportErrors | ( | ) | const |
Definition at line 251 of file RealDataItem.cpp.
References dataLoader(), and AbstractDataLoader::numErrors().
|
inherited |
Definition at line 421 of file SessionItem.h.
References SessionItem::modelType().
Referenced by MaskViewFactory::createMaskView(), FitParameterModel::flags(), FitParameterModel::index(), FitParameterModel::indexOfItem(), FitParameterWidget::onFitParametersSelectionChanged(), FitParameterModel::rowCount(), and MaskGraphicsScene::updateViews().
bool RealDataItem::hasNativeData | ( | ) | const |
Definition at line 121 of file RealDataItem.cpp.
References DataItem::getDatafield(), and nativeData().
Referenced by SpecularInstrumentItem::alignedWith(), LinkInstrumentManager::canLinkDataToInstrument(), GUI::Model::JobFunctions::copyRealDataItem(), nativeDatafield(), and updateToInstrument().
bool RealDataItem::holdsDimensionalData | ( | ) | const |
Definition at line 206 of file RealDataItem.cpp.
References nativeDataUnits().
Referenced by LinkInstrumentManager::canLinkDataToInstrument().
|
signal |
Referenced by setDataLoader(), and RealDataTreeModel::updateSubscriptions().
|
private |
void RealDataItem::initAsIntensityItem | ( | ) |
Definition at line 200 of file RealDataItem.cpp.
References initDataItem(), and T_INTENSITY_DATA.
void RealDataItem::initAsSpecularItem | ( | ) |
Definition at line 194 of file RealDataItem.cpp.
References initDataItem(), and T_INTENSITY_DATA.
|
private |
Creates and inserts a data item except if such item with same tag already exists. Checks for rank compatibility if already existing. No further initialization (like clearing the data etc).
Definition at line 142 of file RealDataItem.cpp.
References dataItem(), Error, SessionItem::getItem(), SessionModel::insertItem(), and SessionItem::model().
Referenced by initAsIntensityItem(), initAsSpecularItem(), initNativeData(), setDatafield(), and setImportData().
void RealDataItem::initNativeData | ( | ) |
Definition at line 97 of file RealDataItem.cpp.
References initDataItem(), isSpecularData(), and T_NATIVE_DATA.
Referenced by QREDataLoader::datafieldFromParsingResult().
|
inherited |
Insert item into given tag into given row.
Definition at line 233 of file SessionItem.cpp.
References SessionItem::defaultTag(), SessionItem::index(), SessionItem::item(), SessionItem::m_children, SessionItem::m_model, and SessionItem::m_tags.
Referenced by GroupItemController::GroupItemController(), JobItem::addDataViewItem(), SessionItem::addGroupProperty(), DataPropertyContainer::addItem(), MaskContainerItem::addMask(), PolygonItem::addPoint(), SessionItem::addProperty(), GUI::Model::ItemFactory::CreateItem(), GroupItemController::getItemOfType(), MaskItems::insertMask(), MaskContainerItem::insertMask(), SessionModel::insertNewItem(), SessionModel::moveItem(), and GroupItemController::setCurrentType().
QString RealDataItem::instrumentId | ( | ) | const |
Definition at line 211 of file RealDataItem.cpp.
References SessionItem::getItemValue(), and P_INSTRUMENT_ID.
Referenced by RealDataPropertiesWidget::onInstrumentComboIndexChanged(), rotationAffectsSetup(), and RealDataPropertiesWidget::updateInstrumentComboIndex().
IntensityDataItem * RealDataItem::intensityDataItem | ( | ) |
Definition at line 57 of file RealDataItem.cpp.
References dataItem().
Referenced by isIntensityData(), maskContainerItem(), FitComparisonWidget::realDataItem(), rotateData(), and rotationAffectsSetup().
const IntensityDataItem * RealDataItem::intensityDataItem | ( | ) | const |
Definition at line 62 of file RealDataItem.cpp.
References dataItem().
|
inherited |
Definition at line 468 of file SessionItem.cpp.
References SessionFlags::EDITABLE, and SessionItem::flags().
Referenced by SessionModel::flags().
|
inherited |
Definition at line 463 of file SessionItem.cpp.
References SessionFlags::ENABLED, and SessionItem::flags().
Referenced by SessionModel::flags().
bool RealDataItem::isIntensityData | ( | ) | const |
Definition at line 241 of file RealDataItem.cpp.
References intensityDataItem().
Referenced by rotateData(), and rotationAffectsSetup().
|
staticinherited |
Definition at line 446 of file SessionItem.cpp.
References GUI::RealSpace::Particles::name(), and SessionItem::P_NAME.
bool RealDataItem::isSpecularData | ( | ) | const |
Definition at line 246 of file RealDataItem.cpp.
References specularDataItem().
Referenced by LinkInstrumentManager::canLinkDataToInstrument(), RealDataTreeModel::indexForItem(), initNativeData(), AutomaticDataLoader1D::processContents(), QREDataLoader::processContents(), RealDataModel::realDataItems1D(), RealDataModel::realDataItems2D(), RealDataTreeModel::removeItem(), removeNativeData(), and updateToInstrument().
|
inherited |
Returns true if tag is available.
Definition at line 166 of file SessionItem.cpp.
References SessionItem::m_tags, and GUI::RealSpace::Particles::name().
Referenced by SessionItem::addProperty(), MaskUnitsConverter::convertCoordinate(), SessionItem::getItemValue(), JobItem::isValidForFitting(), SessionItem::itemName(), SessionItem::setItemName(), SessionItem::setItemValue(), and FitParameterItem::setLimitEnabled().
|
inherited |
Definition at line 353 of file SessionItem.h.
References SessionItem::getItem().
Referenced by MinimizerContainerItem::MinimizerContainerItem(), PolygonItem::createShape(), DataProperties::dataItem(), DataPropertyContainer::dataItems(), JobItem::fitParameterContainerItem(), FitParameterContainerItem::fitParameterItem(), FitParameterContainerItem::fitParameterNames(), SessionItem::getCopyNumberOfChild(), SessionItem::insertChild(), SessionItem::items(), Data1DViewItem::jobItem(), DataPropertyContainer::propertyItems(), DataProperties::setDataItem(), SessionItem::setGroupPropertyType(), SessionItem::tagFromItem(), SessionItem::takeRow(), SessionModel::topItems(), DataItem::updateAxesUnits(), JobItem::updateIntensityDataFileName(), and updateNonXMLDataFileNames().
|
inherited |
Get item name, return display name if no name is set.
Definition at line 432 of file SessionItem.cpp.
References SessionItem::displayName(), SessionItem::getItemValue(), SessionItem::isTag(), and SessionItem::P_NAME.
Referenced by SessionModel::data(), dataName(), JobItem::jobName(), MaskItem::maskName(), GUI::Session::XML::readItems(), MaskGraphicsScene::setItemName(), Plot1D::subscribeToItem(), SpecularPlot::subscribeToItem(), ColorMap::subscribeToItem(), ProjectionsPlot::subscribeToItem(), and JobItem::updateIntensityDataFileName().
|
inherited |
Definition at line 361 of file SessionItem.h.
References SessionItem::getItems(), and SessionItem::item().
Referenced by DataPropertyContainer::dataItems(), SessionItem::takeRow(), and SessionModel::topItem().
|
inherited |
Definition at line 473 of file SessionItem.cpp.
References SessionFlags::LimitsRole, and SessionItem::roleProperty().
Referenced by GUI::View::PropertyEditorFactory::CreateEditor(), FitParameterContainerItem::createParameters(), and FitParameterItem::initMinMaxValues().
void RealDataItem::linkToInstrument | ( | const InstrumentItem * | instrument | ) |
Definition at line 222 of file RealDataItem.cpp.
References InstrumentItem::id(), P_INSTRUMENT_ID, SessionItem::setItemValue(), unlinkFromInstrument(), and updateToInstrument().
Referenced by RealDataPropertiesWidget::onInstrumentComboIndexChanged().
|
inherited |
Returns the current model mapper of this item. Creates new one if necessary.
Definition at line 508 of file SessionItem.cpp.
References SessionItem::m_mapper.
Referenced by Data1DViewItem::Data1DViewItem(), FitParameterItem::FitParameterItem(), FitParameterModel::FitParameterModel(), GroupItem::GroupItem(), IShape2DView::IShape2DView(), FitParameterModel::~FitParameterModel(), IntensityDataPropertyWidget::~IntensityDataPropertyWidget(), PropertyRepeater::addItem(), MaskEditorPropertyPanel::addMaskCheckBox(), MaskEditorPropertyPanel::addMaskSpinBox(), IShape2DView::disconnectFromItem(), SessionItemController::onControllerDestroy(), SpecularDataPropertyWidget::setCurrentItem(), MaskEditorPropertyPanel::setCurrentMaskItem(), IntensityDataPropertyWidget::setItem(), FitSessionController::setItem(), SessionItemController::setItem(), RunFitControlWidget::subscribeToItem(), IntensityDataCanvas::subscribeToItem(), FitFlowWidget::subscribeToItem(), Plot1D::subscribeToItem(), SpecularPlot::subscribeToItem(), ColorMap::subscribeToItem(), ProjectionsPlot::subscribeToItem(), SessionItemController::unsubscribe(), RunFitControlWidget::unsubscribeFromChildren(), and ProjectionsPlot::unsubscribeFromChildren().
MaskContainerItem * RealDataItem::maskContainerItem | ( | ) |
Returns mask container item.
Definition at line 256 of file RealDataItem.cpp.
References intensityDataItem().
Referenced by rotateData().
|
inherited |
Returns model of this item.
Definition at line 60 of file SessionItem.cpp.
References SessionItem::m_model.
Referenced by FitParameterModel::FitParameterModel(), DataPropertyContainer::addItem(), FitParameterItem::addLink(), MaskContainerItem::clear(), JobItem::copyRealDataIntoJob(), JobItem::createDataViewItem(), FitParameterContainerItem::createFitParameter(), FitSuiteItem::createFitParametersContainer(), JobItem::createFitSuiteItem(), FitSuiteItem::createMinimizerContainer(), Data1DViewItem::createPropertyContainerItem(), JobItem::createRealDataItem(), DataProperties::dataItem(), IntensityDataItem::getOrCreateMaskContainerItem(), IntensityDataItem::getOrCreateProjectionContainerItem(), SessionItem::index(), initDataItem(), FitParameterWidget::onRemoveFitParAction(), GUI::Session::XML::readItems(), FitParameterItem::removeLink(), JobItem::setDataType(), ModelMapper::setItem(), SessionItem::setModel(), SessionItem::setParentAndModel(), FitParameterModel::sourceModel(), ParameterTuningWidget::subscribeToItem(), ItemStackWidget::validateItem(), and GUI::Session::XML::writeModel().
|
inherited |
Get model type.
Definition at line 368 of file SessionItem.cpp.
References SessionFlags::ModelTypeRole, and SessionItem::roleProperty().
Referenced by GSLMultiMinimizerItem::GSLMultiMinimizerItem(), MinuitMinimizerItem::MinuitMinimizerItem(), RectangleItem::RectangleItem(), SessionItem::SessionItem(), GUI::Model::Path::ancestor(), MaskViewFactory::createMaskView(), FitParameterHelper::getParameterItem(), ProjectionsPlot::graphForItem(), SessionItem::hasModelType(), SessionModel::insertItem(), SessionModel::moveItem(), MaskGraphicsScene::processPolygonItem(), MaskGraphicsScene::processRectangleShapeItem(), GroupItem::setCurrentType(), ProjectionsPlot::setGraphFromItem(), SessionItem::setGroupProperty(), MaskGraphicsScene::setItemName(), MaskEditor::setMaskContext(), MaskGraphicsScene::setMaskContext(), SpecularPlot::subscribeToItem(), ColorMap::subscribeToItem(), ProjectionsPlot::subscribeToItem(), and GUI::Session::XML::writeItemAndChildItems().
DataItem * RealDataItem::nativeData | ( | ) |
Definition at line 87 of file RealDataItem.cpp.
Referenced by GUI::Model::JobFunctions::copyRealDataItem(), hasNativeData(), nativeDatafield(), removeNativeData(), setNativeDatafield(), updateNonXMLDataFileNames(), and updateToInstrument().
const DataItem * RealDataItem::nativeData | ( | ) | const |
Definition at line 92 of file RealDataItem.cpp.
References SessionItem::getItem(), and T_NATIVE_DATA.
const Datafield * RealDataItem::nativeDatafield | ( | ) | const |
Definition at line 126 of file RealDataItem.cpp.
References DataItem::getDatafield(), hasNativeData(), and nativeData().
Referenced by SpecularInstrumentItem::alignedWith(), GUI::Model::JobFunctions::copyRealDataItem(), and SpecularInstrumentItem::updateToRealData().
QString RealDataItem::nativeDataUnits | ( | ) | const |
Definition at line 103 of file RealDataItem.cpp.
References SessionItem::getItemValue(), and P_NATIVE_DATA_UNITS.
Referenced by SpecularInstrumentItem::alignedWith(), holdsDimensionalData(), updateToInstrument(), and SpecularInstrumentItem::updateToRealData().
QString RealDataItem::nativeFileName | ( | ) | const |
Definition at line 268 of file RealDataItem.cpp.
References m_nativeFileName.
Referenced by SpecularDataImportWidget::currentFileName(), and GUI::View::ImportDataUtils::Import1dData().
|
inherited |
Returns total number of children.
Definition at line 88 of file SessionItem.cpp.
References SessionItem::m_children.
Referenced by MaskContainerItem::clear(), SessionModel::dropMimeData(), SessionItem::hasChildren(), SessionModel::insertNewItem(), MaskEditorActions::isSendToBackPossible(), FitParameterModel::rowCount(), and SessionModel::rowCount().
|
inherited |
Returns parent of this item.
Definition at line 67 of file SessionItem.cpp.
References SessionItem::m_parent.
Referenced by DataPropertyContainer::addItem(), GUI::Model::Path::ancestor(), FitComparison1DViewController::deleteDiffViewItem(), FitParameterHelper::getParameterItem(), FitParameterModel::indexOfItem(), SessionModel::indexOfItem(), MaskEditorActions::isSendToBackPossible(), Data1DViewItem::jobItem(), SessionModel::moveItem(), ModelMapper::nestlingDepth(), ModelMapper::onDataChanged(), FitParameterWidget::onFitParametersSelectionChanged(), ProjectionsEditorCanvas::onLeavingColorMap(), FitParameterModel::parent(), SessionModel::parent(), SessionItem::parentRow(), GUI::Session::XML::readItems(), GUI::Session::XML::readProperty(), IntensityDataCanvas::rotateData(), PropertyRepeater::setOnChildPropertyChange(), and GUI::Session::XML::writeItemAndChildItems().
|
inherited |
Returns the index of the given item within its parent. Returns -1 when no parent is set.
Definition at line 148 of file SessionItem.cpp.
References SessionItem::parentItem(), and SessionItem::rowOfChild().
Referenced by FitParameterModel::indexOfItem(), and FitParameterModel::parent().
|
virtualinherited |
Reimplemented in JobItem.
Definition at line 526 of file SessionItem.cpp.
Referenced by GUI::Session::XML::readItems().
|
inherited |
Add new tag to this item with given name, min, max and types. max = -1 -> unlimited, modelTypes empty -> all types allowed.
Definition at line 159 of file SessionItem.cpp.
References SessionItem::m_tags, and GUI::RealSpace::Particles::name().
Referenced by Data1DViewItem::Data1DViewItem(), DataPropertyContainer::DataPropertyContainer(), FitParameterContainerItem::FitParameterContainerItem(), FitParameterItem::FitParameterItem(), FitSuiteItem::FitSuiteItem(), GroupItem::GroupItem(), IntensityDataItem::IntensityDataItem(), JobItem::JobItem(), MaskContainerItem::MaskContainerItem(), PolygonItem::PolygonItem(), ProjectionContainerItem::ProjectionContainerItem(), RealDataItem(), SessionItem::addGroupProperty(), SessionItem::addProperty(), and SessionModel::createRootItem().
void RealDataItem::removeNativeData | ( | ) |
Definition at line 113 of file RealDataItem.cpp.
References isSpecularData(), nativeData(), and DataItem::setDatafield().
Referenced by AutomaticDataLoader1D::processContents(), and QREDataLoader::processContents().
|
inherited |
Returns corresponding variant under given role, invalid variant when role is not present.
Definition at line 334 of file SessionItem.cpp.
References SessionItem::m_properties.
Referenced by GUI::View::PropertyEditorFactory::CreateEditor(), SessionItem::decimals(), SessionItem::defaultTag(), SessionItem::displayName(), SessionItem::flags(), SessionItem::limits(), SessionItem::modelType(), SessionItem::toolTip(), SessionItem::value(), and GUI::Session::XML::writeItemAndChildItems().
void RealDataItem::rotateData | ( | ) |
Definition at line 354 of file RealDataItem.cpp.
References DataItem::getDatafield(), intensityDataItem(), isIntensityData(), maskContainerItem(), IntensityDataItem::setAxesRangeToData(), IntensityDataItem::setDatafield(), and unlinkFromInstrument().
bool RealDataItem::rotationAffectsSetup | ( | ) | const |
Returns true, if rotation will affect linked instrument or mask presence.
Definition at line 336 of file RealDataItem.cpp.
References instrumentId(), intensityDataItem(), and isIntensityData().
|
inherited |
Returns row index of given child.
Definition at line 109 of file SessionItem.cpp.
Referenced by SessionItem::childDeleted(), SessionModel::indexOfItem(), SessionModel::moveItem(), ProjectionsEditorCanvas::onLeavingColorMap(), and SessionItem::parentRow().
|
overridevirtual |
Reimplemented from SessionItem.
Definition at line 273 of file RealDataItem.cpp.
References m_dataLoader, and m_nativeFileName.
|
inherited |
Definition at line 171 of file SessionItem.cpp.
References SessionItem::m_tags.
Referenced by SessionItem::displayName(), SessionModel::insertNewItem(), and SessionModel::moveItem().
void RealDataItem::setDatafield | ( | Datafield * | data | ) |
Sets Datafield to underlying item. Creates it if not existing.
Definition at line 165 of file RealDataItem.cpp.
References dataItem(), initDataItem(), DataItem::setDatafield(), and T_INTENSITY_DATA.
Referenced by RealDataSelectorWidget::importData2D().
void RealDataItem::setDataLoader | ( | AbstractDataLoader * | loader | ) |
Takes ownership of loader.
Definition at line 323 of file RealDataItem.cpp.
References AbstractDataLoader::contentsProcessed(), importContentsProcessed(), and m_dataLoader.
Referenced by deserializeBinaryData(), GUI::View::ImportDataUtils::Import1dData(), and SpecularDataImportWidget::onFormatSelectionChanged().
void RealDataItem::setDataName | ( | const QString & | name | ) |
Definition at line 52 of file RealDataItem.cpp.
References GUI::RealSpace::Particles::name(), and SessionItem::setItemName().
Referenced by RealDataSelectorWidget::importData1D(), RealDataSelectorWidget::importData2D(), and RealDataTreeModel::setData().
|
inherited |
Definition at line 489 of file SessionItem.cpp.
References SessionFlags::DecimalRole, and SessionItem::setRoleProperty().
Referenced by BasicAxisItem::BasicAxisItem(), and SessionItem::SessionItem().
|
inherited |
Set default tag.
Definition at line 397 of file SessionItem.cpp.
References SessionFlags::DefaultTagRole, and SessionItem::setRoleProperty().
Referenced by DataPropertyContainer::DataPropertyContainer(), FitParameterContainerItem::FitParameterContainerItem(), FitParameterItem::FitParameterItem(), GroupItem::GroupItem(), IntensityDataItem::IntensityDataItem(), MaskContainerItem::MaskContainerItem(), PolygonItem::PolygonItem(), ProjectionContainerItem::ProjectionContainerItem(), and RealDataItem().
|
inherited |
Set display name.
Definition at line 426 of file SessionItem.cpp.
References SessionFlags::DisplayNameRole, and SessionItem::setRoleProperty().
Referenced by SessionItem::SessionItem(), SessionItem::addProperty(), FitParameterContainerItem::createFitParameter(), and GUI::Session::XML::readItems().
|
inherited |
Definition at line 458 of file SessionItem.cpp.
References SessionItem::changeFlags(), and SessionFlags::EDITABLE.
Referenced by JobItem::JobItem(), and FitParameterItem::setLimitEnabled().
|
inherited |
Flags accessors.
Definition at line 453 of file SessionItem.cpp.
References SessionItem::changeFlags(), and SessionFlags::ENABLED.
Referenced by FitParameterItem::FitParameterItem(), MaskAllItem::MaskAllItem(), PointwiseAxisItem::PointwiseAxisItem(), GroupItemController::getItemOfType(), and FitParameterItem::setLimitEnabled().
|
inherited |
Set the current type of group item.
Definition at line 320 of file SessionItem.cpp.
References SessionItem::modelType().
Referenced by SessionItem::setGroupPropertyType().
|
inherited |
Definition at line 404 of file SessionItem.h.
References SessionItem::getGroupItem(), SessionItem::item(), and SessionItem::setGroupProperty().
void RealDataItem::setImportData | ( | ImportDataInfo | info | ) |
Sets imported data to underlying item. Creates it if not existing. This is used for 1D import. For 2D import, use setDatafield.
Definition at line 177 of file RealDataItem.cpp.
References ImportDataInfo::clonedData(), dataItem(), ImportDataInfo::dataRank(), initDataItem(), DataItem::reset(), setNativeDataUnits(), T_INTENSITY_DATA, T_NATIVE_DATA, and ImportDataInfo::unitsLabel().
Referenced by GUI::View::ImportDataUtils::Import1dData(), and AutomaticDataLoader1D::processContents().
|
inherited |
Set item name, add property if necessary.
Definition at line 438 of file SessionItem.cpp.
References SessionItem::addProperty(), SessionItem::isTag(), GUI::RealSpace::Particles::name(), SessionItem::P_NAME, and SessionItem::setItemValue().
Referenced by EllipseItem::EllipseItem(), HorizontalLineItem::HorizontalLineItem(), JobItem::JobItem(), MaskAllItem::MaskAllItem(), PolygonItem::PolygonItem(), PolygonPointItem::PolygonPointItem(), RealDataItem(), RectangleItem::RectangleItem(), VerticalLineItem::VerticalLineItem(), setDataName(), MaskGraphicsScene::setItemName(), JobItem::setJobName(), and MaskItem::setMaskName().
|
inherited |
Directly set value of item under given tag.
Definition at line 300 of file SessionItem.cpp.
References SessionItem::getItem(), SessionItem::isTag(), and SessionItem::setValue().
Referenced by MaskUnitsConverter::convertCoordinate(), PointwiseAxisItem::init(), FitParameterItem::initMinMaxValues(), linkToInstrument(), EllipseItem::setAngle(), Data1DViewItem::setAxesUnits(), DataItem::setAxesUnits(), JobItem::setBeginTime(), BasicAxisItem::setBinCount(), FitSuiteItem::setChi2(), Data1DProperties::setColorProperty(), JobItem::setComments(), DataProperties::setDataItem(), JobItem::setEndTime(), DataItem::setFileName(), IntensityDataItem::setGradient(), JobItem::setIdentifier(), JobItem::setInstrumentName(), IntensityDataItem::setInterpolated(), PolygonItem::setIsClosed(), MaskItem::setIsVisibleValue(), SessionItem::setItemName(), FitSuiteItem::setIterationCount(), Data1DProperties::setLineProperty(), FitParameterLinkItem::setLink(), AmplitudeAxisItem::setLocked(), AmplitudeAxisItem::setLogScale(), BasicAxisItem::setLowerBound(), MaskItem::setMaskValue(), FitParameterItem::setMaximum(), FitParameterItem::setMinimum(), PolygonPointItem::setPosX(), VerticalLineItem::setPosX(), PolygonPointItem::setPosY(), HorizontalLineItem::setPosY(), JobItem::setPresentationType(), JobItem::setProgress(), Data1DProperties::setScatterProperty(), FitParameterItem::setStartValue(), JobItem::setStatus(), BasicAxisItem::setTitle(), FitParameterLinkItem::setTitle(), FitSuiteItem::setUpdateInterval(), BasicAxisItem::setUpperBound(), BasicAxisItem::setVisibilityValue(), EllipseItem::setXCenter(), RectangleItem::setXLow(), EllipseItem::setXRadius(), RectangleItem::setXUp(), EllipseItem::setYCenter(), RectangleItem::setYLow(), EllipseItem::setYRadius(), RectangleItem::setYUp(), and unlinkFromInstrument().
|
inherited |
Definition at line 478 of file SessionItem.cpp.
References SessionFlags::LimitsRole, SessionItem::setRoleProperty(), and SessionItem::value().
Referenced by BasicAxisItem::BasicAxisItem(), EllipseItem::EllipseItem(), FitParameterItem::FitParameterItem(), HorizontalLineItem::HorizontalLineItem(), PolygonPointItem::PolygonPointItem(), RectangleItem::RectangleItem(), SessionItem::SessionItem(), VerticalLineItem::VerticalLineItem(), and FitParameterItem::initMinMaxValues().
|
privateinherited |
Definition at line 546 of file SessionItem.cpp.
References SessionItem::m_children, SessionItem::m_mapper, SessionItem::m_model, and SessionItem::model().
Referenced by SessionItem::~SessionItem(), SessionModel::createRootItem(), and SessionItem::setParentAndModel().
void RealDataItem::setNativeDatafield | ( | Datafield * | data | ) |
takes ownership of data
Definition at line 133 of file RealDataItem.cpp.
References nativeData(), and DataItem::setDatafield().
Referenced by GUI::Model::JobFunctions::copyRealDataItem(), and QREDataLoader::datafieldFromParsingResult().
void RealDataItem::setNativeDataUnits | ( | const QString & | units | ) |
Definition at line 108 of file RealDataItem.cpp.
References SessionItem::getItem(), P_NATIVE_DATA_UNITS, and SessionItem::setValue().
Referenced by QREDataLoader::datafieldFromParsingResult(), and setImportData().
void RealDataItem::setNativeFileName | ( | const QString & | filename | ) |
The name from where the native data was originally imported.
Definition at line 263 of file RealDataItem.cpp.
References m_nativeFileName.
Referenced by RealDataSelectorWidget::importData1D().
|
privateinherited |
Definition at line 540 of file SessionItem.cpp.
References SessionItem::m_parent, SessionItem::model(), and SessionItem::setModel().
Referenced by SessionItem::takeItem().
|
inherited |
Set the contained role property to the given value. See also setTranslatorForRolePropertySetter.
Set variant to role, create role if not present yet.
Definition at line 341 of file SessionItem.cpp.
References SessionItem::emitDataChanged(), SessionItem::m_properties, and SessionItem::value().
Referenced by SessionItem::SessionItem(), SessionItem::changeFlags(), GUI::Session::XML::readProperty(), SessionModel::setData(), SessionItem::setDecimals(), SessionItem::setDefaultTag(), SessionItem::setDisplayName(), SessionItem::setLimits(), SessionItem::setToolTip(), and SessionItem::setValue().
|
inherited |
Definition at line 500 of file SessionItem.cpp.
References SessionItem::setRoleProperty().
Referenced by GeneticMinimizerItem::GeneticMinimizerItem(), GSLLMAMinimizerItem::GSLLMAMinimizerItem(), GSLMultiMinimizerItem::GSLMultiMinimizerItem(), MinimizerContainerItem::MinimizerContainerItem(), MinuitMinimizerItem::MinuitMinimizerItem(), and SimAnMinimizerItem::SimAnMinimizerItem().
|
inherited |
Set value, ensure that variant types match.
Definition at line 382 of file SessionItem.cpp.
References GUI::Util::Variant::CompatibleVariantTypes(), SessionItem::setRoleProperty(), and SessionItem::value().
Referenced by DoubleDescriptor::DoubleDescriptor(), SelectionDescriptor< T >::SelectionDescriptor(), UIntDescriptor::UIntDescriptor(), IntensityDataPropertyWidget::createCheckBox(), SpecularDataPropertyWidget::createCheckBox(), IntensityDataPropertyWidget::createTextEdit(), SpecularDataPropertyWidget::createTextEdit(), SessionItem::setItemValue(), setNativeDataUnits(), and GroupItem::updateComboValue().
std::vector< int > RealDataItem::shape | ( | ) | const |
Returns the shape of underlying data item.
Definition at line 231 of file RealDataItem.cpp.
References dataItem().
Referenced by InstrumentItem::alignedWith(), SpecularInstrumentItem::alignedWith(), LinkInstrumentManager::canLinkDataToInstrument(), SpecularInstrumentItem::updateToRealData(), GISASInstrumentItem::updateToRealData(), and OffspecInstrumentItem::updateToRealData().
SpecularDataItem * RealDataItem::specularDataItem | ( | ) |
Definition at line 67 of file RealDataItem.cpp.
References dataItem().
Referenced by AutomaticDataLoader1DResultModel::cellText(), QREDataLoader::datafieldFromParsingResult(), isSpecularData(), AutomaticDataLoader1D::processContents(), QREDataLoader::processContents(), AutomaticDataLoader1DResultModel::rowCount(), and updateToInstrument().
const SpecularDataItem * RealDataItem::specularDataItem | ( | ) | const |
Definition at line 72 of file RealDataItem.cpp.
References dataItem().
|
inherited |
Returns the tag name of given item when existing.
Definition at line 178 of file SessionItem.cpp.
References SessionItem::index(), SessionItem::item(), SessionItem::m_children, and SessionItem::m_tags.
Referenced by SessionItem::displayName(), ModelMapper::onDataChanged(), PropertyRepeater::setOnChildPropertyChange(), SessionItem::takeRow(), and GUI::Session::XML::writeItemAndChildItems().
|
inherited |
Remove item from given row from given tag.
Definition at line 258 of file SessionItem.cpp.
References SessionItem::defaultTag(), SessionItem::index(), SessionItem::m_children, SessionItem::m_model, SessionItem::m_tags, and SessionItem::setParentAndModel().
Referenced by SessionModel::moveItem(), and SessionItem::takeRow().
|
inherited |
Removes row from item and returns the item.
Definition at line 139 of file SessionItem.cpp.
References SessionItem::childAt(), SessionItem::getItems(), SessionItem::item(), SessionItem::items(), SessionItem::tagFromItem(), and SessionItem::takeItem().
Referenced by FitComparison1DViewController::deleteDiffViewItem(), SessionModel::moveItem(), ProjectionsEditorCanvas::onLeavingColorMap(), and SessionModel::removeRows().
|
inherited |
Definition at line 495 of file SessionItem.cpp.
References SessionItem::roleProperty().
Referenced by SelectionDescriptor< T >::SelectionDescriptor().
void RealDataItem::unlinkFromInstrument | ( | ) |
Definition at line 216 of file RealDataItem.cpp.
References P_INSTRUMENT_ID, SessionItem::setItemValue(), and updateToInstrument().
Referenced by linkToInstrument(), SpecularDataImportWidget::onPropertiesChanged(), and rotateData().
void RealDataItem::updateNonXMLDataFileNames | ( | ) |
Updates the name of file to store intensity data.
Definition at line 379 of file RealDataItem.cpp.
References dataItem(), dataName(), SessionItem::item(), nativeData(), GUI::Model::FilenameUtils::nativeDataFileName(), and GUI::Model::FilenameUtils::realDataFileName().
|
private |
This does not set the link to the instrument! Use linkToInstrument() if you want to link to this instrument.
Definition at line 387 of file RealDataItem.cpp.
References dataItem(), hasNativeData(), isSpecularData(), nativeData(), nativeDataUnits(), DataItem::reset(), SpecularDataItem::setDatafield(), GUI::Model::JobItemUtils::setIntensityItemCoords(), specularDataItem(), and DataItem::updateCoords().
Referenced by linkToInstrument(), and unlinkFromInstrument().
|
inherited |
Get value.
Definition at line 375 of file SessionItem.cpp.
References SessionItem::roleProperty().
Referenced by SelectionDescriptor< T >::SelectionDescriptor(), IntensityDataPropertyWidget::createCheckBox(), SpecularDataPropertyWidget::createCheckBox(), GUI::View::PropertyEditorFactory::CreateEditor(), IntensityDataPropertyWidget::createTextEdit(), SpecularDataPropertyWidget::createTextEdit(), SessionModel::data(), SessionModel::flags(), SessionItem::getItemValue(), FitParameterItem::initMinMaxValues(), FitParameterItem::isValid(), GroupItem::onValueChange(), BasicAxisItem::setBinCount(), SessionItem::setLimits(), AmplitudeAxisItem::setLogScale(), BasicAxisItem::setLowerBound(), Data1DViewItem::setLowerX(), IntensityDataItem::setLowerX(), SpecularDataItem::setLowerX(), Data1DViewItem::setLowerY(), IntensityDataItem::setLowerY(), SpecularDataItem::setLowerY(), SessionItem::setRoleProperty(), BasicAxisItem::setUpperBound(), Data1DViewItem::setUpperX(), IntensityDataItem::setUpperX(), SpecularDataItem::setUpperX(), Data1DViewItem::setUpperY(), IntensityDataItem::setUpperY(), SpecularDataItem::setUpperY(), SessionItem::setValue(), BasicAxisItem::visibilityValue(), and GUI::Session::XML::writeItemAndChildItems().
|
virtualinherited |
Reimplemented in JobItem.
Definition at line 524 of file SessionItem.cpp.
Referenced by GUI::Session::XML::writeItemAndChildItems().
|
friend |
Definition at line 36 of file RealDataItem.h.
|
privateinherited |
Definition at line 332 of file SessionItem.h.
Referenced by SessionItem::~SessionItem(), SessionItem::childAt(), SessionItem::childDeleted(), SessionItem::children(), SessionItem::childrenOfType(), SessionItem::firstChildOfType(), SessionItem::getChildOfType(), SessionItem::getCopyNumberOfChild(), SessionItem::getItem(), SessionItem::getItems(), SessionItem::insertChild(), SessionItem::numberOfChildren(), SessionItem::setModel(), SessionItem::tagFromItem(), and SessionItem::takeItem().
|
private |
Definition at line 125 of file RealDataItem.h.
Referenced by dataLoader(), deserializeBinaryData(), serializeBinaryData(), and setDataLoader().
|
private |
Definition at line 122 of file RealDataItem.h.
Referenced by deserializeBinaryData().
|
privateinherited |
Definition at line 335 of file SessionItem.h.
Referenced by SessionItem::~SessionItem(), SessionItem::mapper(), and SessionItem::setModel().
|
privateinherited |
Definition at line 331 of file SessionItem.h.
Referenced by SessionItem::~SessionItem(), SessionItem::emitDataChanged(), SessionItem::insertChild(), SessionItem::model(), SessionItem::setModel(), and SessionItem::takeItem().
|
private |
Definition at line 123 of file RealDataItem.h.
Referenced by deserializeBinaryData(), nativeFileName(), serializeBinaryData(), and setNativeFileName().
|
privateinherited |
Definition at line 330 of file SessionItem.h.
Referenced by SessionItem::~SessionItem(), SessionItem::displayName(), SessionItem::parentItem(), and SessionItem::setParentAndModel().
|
privateinherited |
Definition at line 333 of file SessionItem.h.
Referenced by SessionItem::getRoles(), SessionItem::roleProperty(), and SessionItem::setRoleProperty().
|
privateinherited |
Definition at line 334 of file SessionItem.h.
Referenced by SessionItem::acceptableDefaultItemTypes(), SessionItem::acceptsAsDefaultItem(), SessionItem::getItem(), SessionItem::getItems(), SessionItem::insertChild(), SessionItem::isTag(), SessionItem::registerTag(), SessionItem::sessionItemTags(), SessionItem::tagFromItem(), and SessionItem::takeItem().
|
staticconstexpr |
Definition at line 45 of file RealDataItem.h.
Referenced by JobItem::JobItem().
|
staticconstexprprivate |
Definition at line 39 of file RealDataItem.h.
Referenced by RealDataItem(), instrumentId(), linkToInstrument(), and unlinkFromInstrument().
|
staticconstexprprivateinherited |
Definition at line 208 of file SessionItem.h.
Referenced by SessionItem::getCopyNumberOfChild(), SessionItem::isItemNamePropertyName(), SessionItem::itemName(), and SessionItem::setItemName().
|
staticconstexprprivate |
Definition at line 42 of file RealDataItem.h.
Referenced by RealDataItem(), nativeDataUnits(), and setNativeDataUnits().
|
staticconstexprprivate |
Definition at line 40 of file RealDataItem.h.
Referenced by RealDataItem(), dataItem(), initAsIntensityItem(), initAsSpecularItem(), setDatafield(), and setImportData().
|
staticconstexprprivate |
Definition at line 41 of file RealDataItem.h.
Referenced by RealDataItem(), initNativeData(), nativeData(), and setImportData().