| | |
The CalcOptions class provides the specifications that configure the way masses are calculated for Oligomers, Polymers and product ions. More...
| Header: | #include <CalcOptions.hpp> |
| Inherits: | QObject |
| CalcOptions(QObject *parent = nullptr) | |
| CalcOptions(bool deepCalculation, MsXpS::libXpertMassCore::Enums::MassType mass_type, MsXpS::libXpertMassCore::Enums::CapType capping, MsXpS::libXpertMassCore::Enums::ChemicalEntity monomer_entities, MsXpS::libXpertMassCore::Enums::ChemicalEntity polymer_entities, QObject *parent = nullptr) | |
| CalcOptions(const MsXpS::libXpertMassCore::CalcOptions &other, QObject *parent = nullptr) | |
| virtual | ~CalcOptions() |
| MsXpS::libXpertMassCore::CalcOptions * | clone(QObject *parent = nullptr) |
| MsXpS::libXpertMassCore::Enums::CapType | getCapType() const |
| MsXpS::libXpertMassCore::IndexRangeCollection * | getIndexRangeCollection() |
| const MsXpS::libXpertMassCore::IndexRangeCollection & | getIndexRangeCollectionCstRef() const |
| MsXpS::libXpertMassCore::IndexRangeCollection & | getIndexRangeCollectionRef() |
| MsXpS::libXpertMassCore::Enums::MassType | getMassType() const |
| MsXpS::libXpertMassCore::Enums::ChemicalEntity | getMonomerEntities() const |
| MsXpS::libXpertMassCore::Enums::ChemicalEntity | getPolymerEntities() const |
| MsXpS::libXpertMassCore::Enums::SelectionType | getSelectionType() const |
| MsXpS::libXpertMassCore::CalcOptions & | initialize(const MsXpS::libXpertMassCore::CalcOptions &other) |
| bool | isDeepCalculation() const |
| void | setCapType(MsXpS::libXpertMassCore::Enums::CapType cap_type) |
| void | setDeepCalculation(bool deep) |
| void | setIndexRange(const MsXpS::libXpertMassCore::IndexRange &index_range = IndexRange()) |
| void | setIndexRange(qsizetype index_start, qsizetype index_end) |
| void | setIndexRanges(const MsXpS::libXpertMassCore::IndexRangeCollection &index_ranges) |
| void | setMassType(MsXpS::libXpertMassCore::Enums::MassType mass_type) |
| void | setMonomerEntities(MsXpS::libXpertMassCore::Enums::ChemicalEntity monomer_chem_ent) |
| void | setPolymerEntities(MsXpS::libXpertMassCore::Enums::ChemicalEntity polymer_chem_ent) |
| void | setSelectionType(MsXpS::libXpertMassCore::Enums::SelectionType selection_type) |
| QString | toString() const |
| bool | operator!=(const MsXpS::libXpertMassCore::CalcOptions &other) const |
| bool | operator==(const MsXpS::libXpertMassCore::CalcOptions &other) const |
| MsXpS::libXpertMassCore::CalcOptions * | clone(const MsXpS::libXpertMassCore::CalcOptions &other, QObject *parent = nullptr) |
| MsXpS::libXpertMassCore::Enums::CapType | m_capType |
| bool | m_deepCalculation |
| MsXpS::libXpertMassCore::Enums::MassType | m_massType |
| MsXpS::libXpertMassCore::Enums::ChemicalEntity | m_monomerEntities |
| MsXpS::libXpertMassCore::Enums::ChemicalEntity | m_polymerEntities |
| MsXpS::libXpertMassCore::Enums::SelectionType | m_selectionType |
| MsXpS::libXpertMassCore::IndexRangeCollection * | mp_indexRangeCollection |
[explicit invokable] CalcOptions::CalcOptions(QObject *parent = nullptr)Constructs an empty CalcOptions instance.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[explicit invokable] CalcOptions::CalcOptions(bool deepCalculation, MsXpS::libXpertMassCore::Enums::MassType mass_type, MsXpS::libXpertMassCore::Enums::CapType capping, MsXpS::libXpertMassCore::Enums::ChemicalEntity monomer_entities, MsXpS::libXpertMassCore::Enums::ChemicalEntity polymer_entities, QObject *parent = nullptr)Constructs a CalcOptions instance.
All the members are initialized using the parameters:
The selection type is set by default to Oligomer (not residual chain).
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[explicit invokable] CalcOptions::CalcOptions(const MsXpS::libXpertMassCore::CalcOptions &other, QObject *parent = nullptr)Construct a CalcOptions instance as a copy of other.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[virtual noexcept] CalcOptions::~CalcOptions()Destructs this CalcOptions object.
Clear the member coordinateList.
[invokable] MsXpS::libXpertMassCore::CalcOptions *CalcOptions::clone(QObject *parent = nullptr)Returns an newly allocated CalcOptions instance with parent set to parent.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[static invokable] MsXpS::libXpertMassCore::CalcOptions *CalcOptions::clone(const MsXpS::libXpertMassCore::CalcOptions &other, QObject *parent = nullptr)b*rief Returns an newly allocated CalcOptions instance initialized using other and with parent set to parent.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] MsXpS::libXpertMassCore::Enums::CapType CalcOptions::getCapType() constReturns the cap type.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Getter function for property capType. Getter function for property selectionType.
See also m_capType.
[invokable] MsXpS::libXpertMassCore::IndexRangeCollection *CalcOptions::getIndexRangeCollection()Returns a reference to the member IndexRangeCollection instance.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] const MsXpS::libXpertMassCore::IndexRangeCollection &CalcOptions::getIndexRangeCollectionCstRef() constReturns a const reference to the member IndexRangeCollection instance.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] MsXpS::libXpertMassCore::IndexRangeCollection &CalcOptions::getIndexRangeCollectionRef()Returns a reference to the member IndexRangeCollection instance.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] MsXpS::libXpertMassCore::Enums::MassType CalcOptions::getMassType() constReturns the mass type.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Getter function for property massType.
See also m_massType.
[invokable] MsXpS::libXpertMassCore::Enums::ChemicalEntity CalcOptions::getMonomerEntities() constReturns the monomer entities.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Getter function for property monomerEntities.
See also m_monomerEntities.
[invokable] MsXpS::libXpertMassCore::Enums::ChemicalEntity CalcOptions::getPolymerEntities() constReturns the polymer entities.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Getter function for property polymerEntities.
See also m_polymerEntities.
[invokable] MsXpS::libXpertMassCore::Enums::SelectionType CalcOptions::getSelectionType() constReturns the selection type.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
See also m_selectionType.
[invokable] MsXpS::libXpertMassCore::CalcOptions &CalcOptions::initialize(const MsXpS::libXpertMassCore::CalcOptions &other)Returns a reference to this CalcOptions after having initialized it using other.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] bool CalcOptions::isDeepCalculation() constReturns if the calculation should be deep.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Getter function for property isDeepCalculation.
See also m_deepCalculation.
[invokable] void CalcOptions::setCapType(MsXpS::libXpertMassCore::Enums::CapType cap_type)Sets the cap type to cap_type.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Setter function for property capType. Setter function for property selectionType.
See also m_capType.
[invokable] void CalcOptions::setDeepCalculation(bool deep)Sets to deep the configuration defining if the mass calculations must involve the recalculation of the masses of all the monomers.
The deep calculation is typically requested when computing masses involving Monomer instance that might be modified with Modif instances.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Setter function for property isDeepCalculation.
See also isDeepCalculation() and m_deepCalculation.
[invokable] void CalcOptions::setIndexRange(const MsXpS::libXpertMassCore::IndexRange &index_range = IndexRange())Copies index_range to the member IndexRangeCollection instance.
Note: The IndexRangeCollection instance is first emptied, making index_range essentially replacing its contents with a copy of index_range.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] void CalcOptions::setIndexRange(qsizetype index_start, qsizetype index_end)Creates an IndexRange instance with index_start and index_end and sets it as the sole member of the member IndexRangeCollection instance.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] void CalcOptions::setIndexRanges(const MsXpS::libXpertMassCore::IndexRangeCollection &index_ranges)Allocates a copy of each IndexRange instance in the index_ranges container and adds it to the member IndexRangeCollection instance.
Note: The IndexRangeCollection instance is first emptied, essentially replacing its contents with a copy of those in index_ranges.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] void CalcOptions::setMassType(MsXpS::libXpertMassCore::Enums::MassType mass_type)Sets the mass type to mass_type.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Setter function for property massType.
See also m_massType.
[invokable] void CalcOptions::setMonomerEntities(MsXpS::libXpertMassCore::Enums::ChemicalEntity monomer_chem_ent)Sets the monomer entities to monomer_chem_ent.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Setter function for property monomerEntities.
See also m_monomerEntities.
[invokable] void CalcOptions::setPolymerEntities(MsXpS::libXpertMassCore::Enums::ChemicalEntity polymer_chem_ent)Sets the polymer entities to polymer_chem_ent.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Note: Setter function for property polymerEntities.
See also m_polymerEntities.
[invokable] void CalcOptions::setSelectionType(MsXpS::libXpertMassCore::Enums::SelectionType selection_type)Set the selection type to selection_type.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
See also m_selectionType.
[invokable] QString CalcOptions::toString() constReturns a string describing this CalcOptions instance.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] bool CalcOptions::operator!=(const MsXpS::libXpertMassCore::CalcOptions &other) constReturns true if this instance is different than other, false otherwise.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[invokable] bool CalcOptions::operator==(const MsXpS::libXpertMassCore::CalcOptions &other) constReturns true if this instance is identical to other, false otherwise.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
This variable holds the cap type, left or right (or both), to account for in the calculations.
See also Enums::CapType.
Tells if the calculations must involve the recalculation of all the masses of the Monomers in the sequence. This is typically needed when calculating masses involving modified Monomer instances, whereby each Monomer needs to recompute its mass taking into account the Modif instances attached to it.
This variable holds the mass type to compute, monoisotopic or average.
See also Enums::MassType.
This variable holds the Monomer entities to account for in the calculations.
See also Enums::ChemicalEntity.
This variable holds the Polymer entities to account for in the calculations.
See also Enums::ChemicalEntity.
This variable holds the manner the monomers need to be accounted for: as residual chains or as finished-polymerization state sequences.
The calculations might consider only the residual chain. In that case, only the mass of the monomers is considered and then the polymer is not in its finished polymerization state. If that latter state is required, then, the residual chain must be capped with both the left and the right end caps.
See also MsXpS::libXpertMassCore::Enums::SelectionType.
This variable holds the IndexRangeCollection container that contains all the IndexRange instances that describes what regions of the Polymer need to be accounted for in the calculation. Most generally, there will be only one IndexRange, but there might be situations in which multiple regions might be selected.