labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

XYDataReductionCurveDock Class Reference

Provides a widget for editing the properties of the XYDataReductionCurves (2D-curves defined by an data reduction) currently selected in the project explorer. More...

#include <XYDataReductionCurveDock.h>

Inheritance diagram for XYDataReductionCurveDock:
Collaboration diagram for XYDataReductionCurveDock:

Public Member Functions

 XYDataReductionCurveDock (QWidget *parent, QStatusBar *sb)
void setCurves (QList< XYCurve * >)
void setupGeneral () override
- Public Member Functions inherited from XYCurveDock
 XYCurveDock (QWidget *)
 ~XYCurveDock () override
void setCurves (QList< XYCurve * >)
void checkColumnAvailability (TreeViewComboBox *, const AbstractColumn *, const QString &columnPath)
void updateLocale () override
- Public Member Functions inherited from BaseDock
 BaseDock (QWidget *parent)
 ~BaseDock ()
virtual void updateUnits ()

Protected Member Functions

void setModel () override
- Protected Member Functions inherited from XYCurveDock
void initTabs ()
void setModelIndexFromAspect (TreeViewComboBox *, const AbstractAspect *)

Private Slots

void dataSourceTypeChanged (int)
void dataSourceCurveChanged (const QModelIndex &)
void xDataColumnChanged (const QModelIndex &)
void yDataColumnChanged (const QModelIndex &)
void autoRangeChanged ()
void xRangeMinChanged (double)
void xRangeMaxChanged (double)
void xRangeMinDateTimeChanged (const QDateTime &)
void xRangeMaxDateTimeChanged (const QDateTime &)
void typeChanged (int)
void autoToleranceChanged ()
void toleranceChanged (double)
void autoTolerance2Changed ()
void tolerance2Changed (double)
void recalculateClicked ()
void enableRecalculate () const
void curveDescriptionChanged (const AbstractAspect *)
void curveDataSourceTypeChanged (XYAnalysisCurve::DataSourceType)
void curveDataSourceCurveChanged (const XYCurve *)
void curveXDataColumnChanged (const AbstractColumn *)
void curveYDataColumnChanged (const AbstractColumn *)
void curveDataReductionDataChanged (const XYDataReductionCurve::DataReductionData &)
void dataChanged ()
void curveVisibilityChanged (bool)

Private Member Functions

void initGeneralTab () override
void showDataReductionResult ()
void updateTolerance ()
void updateTolerance2 ()

Private Attributes

Ui::XYDataReductionCurveDockGeneralTab uiGeneralTab
QStatusBar * statusBar
TreeViewComboBoxcbDataSourceCurve {nullptr}
TreeViewComboBoxcbXDataColumn {nullptr}
TreeViewComboBoxcbYDataColumn {nullptr}
XYDataReductionCurvem_dataReductionCurve {nullptr}
XYDataReductionCurve::DataReductionData m_dataReductionData
bool m_dateTimeRange {false}

Additional Inherited Members

- Public Types inherited from BaseDock
enum class  Units { Metric , Imperial }
- Public Slots inherited from XYCurveDock
void visibilityChanged (bool)
- Signals inherited from XYCurveDock
void info (const QString &)
- Protected Slots inherited from BaseDock
void nameChanged ()
void commentChanged ()
- Protected Attributes inherited from XYCurveDock
Ui::XYCurveDock ui
QList< XYCurve * > m_curvesList
XYCurvem_curve {nullptr}
AspectTreeModelm_aspectTreeModel {nullptr}
- Protected Attributes inherited from BaseDock
bool m_initializing {false}
QLineEdit * m_leName {nullptr}
QLineEdit * m_leComment {nullptr}
AbstractAspectm_aspect {nullptr}
QList< AbstractAspect * > m_aspects
Units m_units {Units::Metric}
Worksheet::Unit m_worksheetUnit {Worksheet::Unit::Centimeter}

Detailed Description

Provides a widget for editing the properties of the XYDataReductionCurves (2D-curves defined by an data reduction) currently selected in the project explorer.

File : XYDataReductionCurveDock.cpp

Project : LabPlot

Copyright : (C) 2016 Stefan Gerlach ( Copyright : (C) 2017 Alexander Semke ( Description : widget for editing properties of data reduction curves

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
  • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
  • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *
  • If more then one curves are set, the properties of the first column are shown. The changes of the properties are applied to all curves. The exclusions are the name, the comment and the datasets (columns) of the curves - these properties can only be changed if there is only one single curve.

Definition at line 41 of file XYDataReductionCurveDock.h.

Constructor & Destructor Documentation

◆ XYDataReductionCurveDock()

XYDataReductionCurveDock::XYDataReductionCurveDock ( QWidget *  parent,
QStatusBar *  sb 

Definition at line 56 of file XYDataReductionCurveDock.cpp.

Member Function Documentation

◆ autoRangeChanged

◆ autoTolerance2Changed

void XYDataReductionCurveDock::autoTolerance2Changed ( )

◆ autoToleranceChanged

void XYDataReductionCurveDock::autoToleranceChanged ( )

◆ curveDataReductionDataChanged

void XYDataReductionCurveDock::curveDataReductionDataChanged ( const XYDataReductionCurve::DataReductionData dataReductionData)

◆ curveDataSourceCurveChanged

void XYDataReductionCurveDock::curveDataSourceCurveChanged ( const XYCurve curve)

◆ curveDataSourceTypeChanged

void XYDataReductionCurveDock::curveDataSourceTypeChanged ( XYAnalysisCurve::DataSourceType  type)

◆ curveDescriptionChanged

void XYDataReductionCurveDock::curveDescriptionChanged ( const AbstractAspect aspect)

◆ curveVisibilityChanged

void XYDataReductionCurveDock::curveVisibilityChanged ( bool  on)

Definition at line 728 of file XYDataReductionCurveDock.cpp.

References BaseDock::m_initializing, and uiGeneralTab.

Referenced by initGeneralTab().

◆ curveXDataColumnChanged

void XYDataReductionCurveDock::curveXDataColumnChanged ( const AbstractColumn column)

◆ curveYDataColumnChanged

void XYDataReductionCurveDock::curveYDataColumnChanged ( const AbstractColumn column)

◆ dataChanged

void XYDataReductionCurveDock::dataChanged ( )

Definition at line 724 of file XYDataReductionCurveDock.cpp.

References enableRecalculate().

◆ dataSourceCurveChanged

void XYDataReductionCurveDock::dataSourceCurveChanged ( const QModelIndex &  index)

Definition at line 286 of file XYDataReductionCurveDock.cpp.

References XYCurveDock::m_curvesList, and BaseDock::m_initializing.

Referenced by setupGeneral().

◆ dataSourceTypeChanged

void XYDataReductionCurveDock::dataSourceTypeChanged ( int  index)

◆ enableRecalculate

◆ initGeneralTab()

void XYDataReductionCurveDock::initGeneralTab ( )

Reimplemented from XYCurveDock.

Definition at line 117 of file XYDataReductionCurveDock.cpp.

References AbstractAspect::aspectDescriptionChanged(), XYDataReductionCurve::DataReductionData::autoRange, autoRangeChanged(), XYDataReductionCurve::DataReductionData::autoTolerance, XYDataReductionCurve::DataReductionData::autoTolerance2, autoTolerance2Changed(), autoToleranceChanged(), cbDataSourceCurve, cbXDataColumn, cbYDataColumn, XYCurveDock::checkColumnAvailability(), AbstractAspect::comment(), TreeViewComboBox::currentModelIndex(), curveDataReductionDataChanged(), curveDataSourceCurveChanged(), curveDataSourceTypeChanged(), curveDescriptionChanged(), curveVisibilityChanged(), curveXDataColumnChanged(), curveYDataColumnChanged(), XYDataReductionCurve::dataReductionDataChanged(), XYAnalysisCurve::dataSourceCurveChanged(), dataSourceTypeChanged(), XYAnalysisCurve::dataSourceTypeChanged(), enableRecalculate(), XYCurve::isSourceDataChangedSinceLastRecalc(), XYCurve::isVisible(), XYCurveDock::m_curve, XYCurveDock::m_curvesList, m_dataReductionCurve, m_dataReductionData, m_dateTimeRange, AbstractAspect::name(), CartesianPlot::Numeric, AbstractAspect::parentAspect(), XYCurveDock::setModelIndexFromAspect(), showDataReductionResult(), XYAnalysisCurve::sourceDataChanged(), XYDataReductionCurve::DataReductionData::tolerance, XYDataReductionCurve::DataReductionData::tolerance2, tolerance2Changed(), toleranceChanged(), XYDataReductionCurve::DataReductionData::type, typeChanged(), uiGeneralTab, XYCurve::visibilityChanged(), XYAnalysisCurve::xDataColumnChanged(), xDataColumnChanged(), XYDataReductionCurve::DataReductionData::xRange, and XYAnalysisCurve::yDataColumnChanged().

Referenced by setCurves().

◆ recalculateClicked

◆ setCurves()

void XYDataReductionCurveDock::setCurves ( QList< XYCurve * >  list)

◆ setModel()

◆ setupGeneral()

◆ showDataReductionResult()

◆ tolerance2Changed

void XYDataReductionCurveDock::tolerance2Changed ( double  value)

◆ toleranceChanged

void XYDataReductionCurveDock::toleranceChanged ( double  value)

◆ typeChanged

◆ updateTolerance()

◆ updateTolerance2()

◆ xDataColumnChanged

void XYDataReductionCurveDock::xDataColumnChanged ( const QModelIndex &  index)

◆ xRangeMaxChanged

void XYDataReductionCurveDock::xRangeMaxChanged ( double  value)

◆ xRangeMaxDateTimeChanged

void XYDataReductionCurveDock::xRangeMaxDateTimeChanged ( const QDateTime &  dateTime)

◆ xRangeMinChanged

void XYDataReductionCurveDock::xRangeMinChanged ( double  value)

◆ xRangeMinDateTimeChanged

void XYDataReductionCurveDock::xRangeMinDateTimeChanged ( const QDateTime &  dateTime)

◆ yDataColumnChanged

void XYDataReductionCurveDock::yDataColumnChanged ( const QModelIndex &  index)

Member Data Documentation

◆ cbDataSourceCurve

TreeViewComboBox* XYDataReductionCurveDock::cbDataSourceCurve {nullptr}

◆ cbXDataColumn

TreeViewComboBox* XYDataReductionCurveDock::cbXDataColumn {nullptr}

◆ cbYDataColumn

TreeViewComboBox* XYDataReductionCurveDock::cbYDataColumn {nullptr}

◆ m_dataReductionCurve

XYDataReductionCurve* XYDataReductionCurveDock::m_dataReductionCurve {nullptr}

◆ m_dataReductionData

◆ m_dateTimeRange

bool XYDataReductionCurveDock::m_dateTimeRange {false}

Definition at line 63 of file XYDataReductionCurveDock.h.

Referenced by autoRangeChanged(), and initGeneralTab().

◆ statusBar

QStatusBar* XYDataReductionCurveDock::statusBar

Definition at line 56 of file XYDataReductionCurveDock.h.

Referenced by recalculateClicked().

◆ uiGeneralTab

The documentation for this class was generated from the following files: