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)  

XYCurve Class Reference

A 2D-curve, provides an interface for editing many properties of the curve. More...

#include <XYCurve.h>

Inheritance diagram for XYCurve:
[legend]
Collaboration diagram for XYCurve:
[legend]

Public Types

enum class  LineType {
  NoLine , Line , StartHorizontal , StartVertical ,
  MidpointHorizontal , MidpointVertical , Segments2 , Segments3 ,
  SplineCubicNatural , SplineCubicPeriodic , SplineAkimaNatural , SplineAkimaPeriodic
}
 
enum class  DropLineType {
  NoDropLine , X , Y , XY ,
  XZeroBaseline , XMinBaseline , XMaxBaseline
}
 
enum class  ValuesType {
  NoValues , X , Y , XY ,
  XYBracketed , CustomColumn
}
 
enum class  ValuesPosition { Above , Under , Left , Right }
 
enum class  ErrorType { NoError , Symmetric , Asymmetric }
 
enum class  FillingPosition {
  NoFilling , Above , Below , ZeroBaseline ,
  Left , Right
}
 
enum class  ErrorBarsType { Simple , WithEnds }
 
typedef XYCurvePrivate Private
 
- Public Types inherited from WorksheetElement
enum class  Orientation { Horizontal , Vertical }
 
enum class  WorksheetElementName { NameCartesianPlot = 1 }
 
enum class  HorizontalPosition { Left , Center , Right , Custom }
 
enum class  VerticalPosition { Top , Center , Bottom , Custom }
 
enum class  HorizontalAlignment { Left , Center , Right }
 
enum class  VerticalAlignment { Top , Center , Bottom }
 
- Public Types inherited from AbstractAspect
enum class  ChildIndexFlag { IncludeHidden = 0x01 , Recursive = 0x02 , Compress = 0x04 }
 Flags which control numbering scheme of children. More...
 

Signals

void dataChanged ()
 
void xDataChanged ()
 
void yDataChanged ()
 
void xErrorPlusDataChanged ()
 
void xErrorMinusDataChanged ()
 
void yErrorPlusDataChanged ()
 
void yErrorMinusDataChanged ()
 
void valuesDataChanged ()
 
void visibilityChanged (bool)
 
void xColumnChanged (const AbstractColumn *)
 
void yColumnChanged (const AbstractColumn *)
 
void lineTypeChanged (XYCurve::LineType)
 
void lineSkipGapsChanged (bool)
 
void lineIncreasingXOnlyChanged (bool)
 
void lineInterpolationPointsCountChanged (int)
 
void linePenChanged (const QPen &)
 
void lineOpacityChanged (qreal)
 
void dropLineTypeChanged (XYCurve::DropLineType)
 
void dropLinePenChanged (const QPen &)
 
void dropLineOpacityChanged (qreal)
 
void symbolsStyleChanged (Symbol::Style)
 
void symbolsSizeChanged (qreal)
 
void symbolsRotationAngleChanged (qreal)
 
void symbolsOpacityChanged (qreal)
 
void symbolsBrushChanged (QBrush)
 
void symbolsPenChanged (const QPen &)
 
void valuesTypeChanged (XYCurve::ValuesType)
 
void valuesColumnChanged (const AbstractColumn *)
 
void valuesPositionChanged (XYCurve::ValuesPosition)
 
void valuesDistanceChanged (qreal)
 
void valuesRotationAngleChanged (qreal)
 
void valuesOpacityChanged (qreal)
 
void valuesNumericFormatChanged (char)
 
void valuesPrecisionChanged (int)
 
void valuesDateTimeFormatChanged (QString)
 
void valuesPrefixChanged (QString)
 
void valuesSuffixChanged (QString)
 
void valuesFontChanged (QFont)
 
void valuesColorChanged (QColor)
 
void fillingPositionChanged (XYCurve::FillingPosition)
 
void fillingTypeChanged (PlotArea::BackgroundType)
 
void fillingColorStyleChanged (PlotArea::BackgroundColorStyle)
 
void fillingImageStyleChanged (PlotArea::BackgroundImageStyle)
 
void fillingBrushStyleChanged (Qt::BrushStyle)
 
void fillingFirstColorChanged (QColor &)
 
void fillingSecondColorChanged (QColor &)
 
void fillingFileNameChanged (QString &)
 
void fillingOpacityChanged (float)
 
void xErrorTypeChanged (XYCurve::ErrorType)
 
void xErrorPlusColumnChanged (const AbstractColumn *)
 
void xErrorMinusColumnChanged (const AbstractColumn *)
 
void yErrorTypeChanged (XYCurve::ErrorType)
 
void yErrorPlusColumnChanged (const AbstractColumn *)
 
void yErrorMinusColumnChanged (const AbstractColumn *)
 
void errorBarsCapSizeChanged (qreal)
 
void errorBarsTypeChanged (XYCurve::ErrorBarsType)
 
void errorBarsPenChanged (QPen)
 
void errorBarsOpacityChanged (qreal)
 
- Signals inherited from AbstractAspect
void aspectDescriptionAboutToChange (const AbstractAspect *)
 Emitted before the name, comment or caption spec is changed. More...
 
void aspectDescriptionChanged (const AbstractAspect *)
 Emitted after the name, comment or caption spec have changed. More...
 
void aspectAboutToBeAdded (const AbstractAspect *parent, const AbstractAspect *before, const AbstractAspect *child)
 Emitted before a new child is inserted. More...
 
void aspectAdded (const AbstractAspect *)
 Emitted after a new Aspect has been added to the tree. More...
 
void aspectAboutToBeRemoved (const AbstractAspect *)
 Emitted before an aspect is removed from its parent. More...
 
void aspectRemoved (const AbstractAspect *parent, const AbstractAspect *before, const AbstractAspect *child)
 Emitted from the parent after removing a child. More...
 
void aspectHiddenAboutToChange (const AbstractAspect *)
 Emitted before the hidden attribute is changed. More...
 
void aspectHiddenChanged (const AbstractAspect *)
 Emitted after the hidden attribute has changed. More...
 
void statusInfo (const QString &)
 Emitted whenever some aspect in the tree wants to give status information to the user. More...
 
void renameRequested ()
 
void selected (const AbstractAspect *)
 
void deselected (const AbstractAspect *)
 
void childAspectSelectedInView (const AbstractAspect *)
 
void childAspectDeselectedInView (const AbstractAspect *)
 

Public Member Functions

 XYCurve (const QString &name, AspectType type=AspectType::XYCurve)
 
 ~XYCurve () override
 
void finalizeAdd () override
 
QIcon icon () const override
 
QMenu * createContextMenu () override
 Return a new context menu. More...
 
QGraphicsItem * graphicsItem () const override
 Return the graphics item representing this element. More...
 
void save (QXmlStreamWriter *) const override
 Save as XML. More...
 
bool load (XmlStreamReader *, bool preview) override
 Load from XML. More...
 
void loadThemeConfig (const KConfig &) override
 
void saveThemeConfig (const KConfig &) override
 
double y (double x, bool &valueFound) const
 
QDateTime yDateTime (double x, bool &valueFound) const
 
bool minMax (const AbstractColumn *column1, const AbstractColumn *column2, const ErrorType errorType, const AbstractColumn *errorPlusColumn, const AbstractColumn *errorMinusColumn, int indexMin, int indexMax, double &yMin, double &yMax, bool includeErrorBars) const
 
bool minMaxX (int indexMin, int indexMax, double &yMin, double &yMax, bool includeErrorBars=true) const
 
bool minMaxY (int indexMin, int indexMax, double &yMin, double &yMax, bool includeErrorBars=true) const
 
bool activateCurve (QPointF mouseScenePos, double maxDist=-1) override
 XYCurve::activateCurve Checks if the mousepos distance to the curve is less than maxDist mouseScenePos maxDist Maximum distance the point lies away from the curve. More...
 
void setHover (bool on) override
 XYCurve::setHover Will be called in CartesianPlot::hoverMoveEvent() See d->setHover(on) for more documentation on. More...
 
void setVisible (bool on) override
 Show/hide the element. More...
 
bool isVisible () const override
 Return whether the element is (at least) partially visible. More...
 
void setPrinting (bool on) override
 Switches the printing mode on/off. More...
 
void suppressRetransform (bool)
 
bool isSourceDataChangedSinceLastRecalc () const
 
void retransform () override
 Tell the element to newly transform its graphics item into its coordinate system. More...
 
void recalcLogicalPoints ()
 
void handleResize (double horizontalRatio, double verticalRatio, bool pageResize) override
 
- Public Member Functions inherited from WorksheetElement
 WorksheetElement (const QString &, AspectType)
 
 ~WorksheetElement () override
 
virtual void setZValue (qreal)
 
virtual bool isFullyVisible () const
 Return whether the element is fully visible (i.e., including all child elements). More...
 
QMenu * createContextMenu () override
 Return a new context menu. More...
 
void horizontalPaddingChanged (float)
 
void verticalPaddingChanged (float)
 
void rightPaddingChanged (double)
 
void bottomPaddingChanged (double)
 
void symmetricPaddingChanged (double)
 
void hovered ()
 
void unhovered ()
 
- Public Member Functions inherited from AbstractAspect
 AbstractAspect (const QString &name, AspectType type)
 
 ~AbstractAspect () override
 
QString name () const
 
QString comment () const
 
void setCreationTime (const QDateTime &)
 
QDateTime creationTime () const
 
virtual Projectproject ()
 Return the Project this Aspect belongs to, or 0 if it is currently not part of one. More...
 
virtual QString path () const
 Return the path that leads from the top-most Aspect (usually a Project) to me. More...
 
void setHidden (bool)
 Set "hidden" property, i.e. whether to exclude this aspect from being shown in the explorer. More...
 
bool hidden () const
 
void setIsLoading (bool)
 
bool isLoading () const
 
AspectType type () const
 
bool inherits (AspectType type) const
 
AbstractAspectparentAspect () const
 Return my parent Aspect or 0 if I currently don't have one. More...
 
AbstractAspectparent (AspectType type) const
 In the parent-child hierarchy, return the first parent of type. More...
 
void setParentAspect (AbstractAspect *)
 
Folderfolder ()
 Return the folder the Aspect is contained in or 0 if there is none. More...
 
bool isDescendantOf (AbstractAspect *other)
 Return whether the there is a path upwards to the given aspect. More...
 
void addChild (AbstractAspect *)
 Add the given Aspect to my list of children. More...
 
void addChildFast (AbstractAspect *)
 Add the given Aspect to my list of children without any checks and without putting this step onto the undo-stack. More...
 
QVector< AbstractAspect * > children (AspectType type, ChildIndexFlags flags={}) const
 
void insertChildBefore (AbstractAspect *child, AbstractAspect *before)
 Insert the given Aspect at a specific position in my list of children. More...
 
void insertChildBeforeFast (AbstractAspect *child, AbstractAspect *before)
 Insert the given Aspect at a specific position in my list of children.without any checks and without putting this step onto the undo-stack. More...
 
void reparent (AbstractAspect *newParent, int newIndex=-1)
 Move a child to another parent aspect and transfer ownership. More...
 
void removeChild (AbstractAspect *)
 Remove the given Aspect from my list of children. More...
 
void removeAllChildren ()
 Remove all child Aspects. More...
 
virtual QVector< AbstractAspect * > dependsOn () const
 
virtual bool isDraggable () const
 
virtual QVector< AspectTypedropableOn () const
 
virtual void processDropEvent (const QVector< quintptr > &)
 
template<class T >
T * ancestor () const
 Return the closest ancestor of class T (or NULL if none found). More...
 
template<class T >
QVector< T * > children (ChildIndexFlags flags={}) const
 
template<class T >
T * child (int index, ChildIndexFlags flags={}) const
 
template<class T >
T * child (const QString &name) const
 Get child by name and class. More...
 
template<class T >
int childCount (ChildIndexFlags flags={}) const
 Return the number of child Aspects inheriting from given class. More...
 
template<class T >
int indexOfChild (const AbstractAspect *child, ChildIndexFlags flags={}) const
 Return (0 based) index of child in the list of children inheriting from class T. More...
 
void setSelected (bool)
 
void setUndoAware (bool)
 
virtual QUndoStack * undoStack () const
 Return the undo stack of the Project, or 0 if this Aspect is not part of a Project. More...
 
void exec (QUndoCommand *)
 Execute the given command, pushing it on the undoStack() if available. More...
 
void exec (QUndoCommand *command, const char *preChangeSignal, const char *postChangeSignal, QGenericArgument val0=QGenericArgument(), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument())
 Execute command and arrange for signals to be sent before/after it is redone or undone. More...
 
void beginMacro (const QString &text)
 Begin an undo stack macro (series of commands) More...
 
void endMacro ()
 End the current undo stack macro. More...
 
- Public Member Functions inherited from Curve
 Curve ()
 
virtual ~Curve ()
 

Protected Member Functions

 XYCurve (const QString &name, XYCurvePrivate *dd, AspectType type)
 
- Protected Member Functions inherited from AbstractAspect
void info (const QString &text)
 Implementations should call this whenever status information should be given to the user. More...
 
bool readBasicAttributes (XmlStreamReader *)
 Load name and creation time from XML. More...
 
void writeBasicAttributes (QXmlStreamWriter *) const
 Save name and creation time to XML. More...
 
void writeCommentElement (QXmlStreamWriter *) const
 Save the comment to XML. More...
 
bool readCommentElement (XmlStreamReader *)
 Load comment from an XML element. More...
 

Protected Attributes

XYCurvePrivate *const d_ptr
 
- Protected Attributes inherited from AbstractAspect
const AspectType m_type
 

Private Slots

void updateValues ()
 
void updateErrorBars ()
 
void xColumnAboutToBeRemoved (const AbstractAspect *)
 
void yColumnAboutToBeRemoved (const AbstractAspect *)
 
void valuesColumnAboutToBeRemoved (const AbstractAspect *)
 
void xErrorPlusColumnAboutToBeRemoved (const AbstractAspect *)
 
void xErrorMinusColumnAboutToBeRemoved (const AbstractAspect *)
 
void yErrorPlusColumnAboutToBeRemoved (const AbstractAspect *)
 
void yErrorMinusColumnAboutToBeRemoved (const AbstractAspect *)
 
void xColumnNameChanged ()
 
void yColumnNameChanged ()
 
void xErrorPlusColumnNameChanged ()
 
void xErrorMinusColumnNameChanged ()
 
void yErrorPlusColumnNameChanged ()
 
void yErrorMinusColumnNameChanged ()
 
void valuesColumnNameChanged ()
 
void visibilityChanged ()
 
void navigateTo ()
 

Private Member Functions

void init ()
 
void initActions ()
 

Private Attributes

QAction * visibilityAction {nullptr}
 
QAction * navigateToAction {nullptr}
 
bool m_menusInitialized {false}
 

Friends

class XYCurveSetXColumnCmd
 
class XYCurveSetYColumnCmd
 
class XYCurveSetXErrorPlusColumnCmd
 
class XYCurveSetXErrorMinusColumnCmd
 
class XYCurveSetYErrorPlusColumnCmd
 
class XYCurveSetYErrorMinusColumnCmd
 
class XYCurveSetValuesColumnCmd
 

Additional Inherited Members

- Public Slots inherited from WorksheetElement
- Public Slots inherited from AbstractAspect
bool setName (const QString &, bool autoUnique=true)
 AbstractAspect::setName sets the name of the abstract aspect. More...
 
void setComment (const QString &)
 
void remove ()
 Remove me from my parent's list of children. More...
 
- Static Public Member Functions inherited from WorksheetElement
static QPainterPath shapeFromPath (const QPainterPath &, const QPen &)
 
- Protected Slots inherited from AbstractAspect
virtual void childSelected (const AbstractAspect *)
 
virtual void childDeselected (const AbstractAspect *)
 

Detailed Description

A 2D-curve, provides an interface for editing many properties of the curve.

File : XYCurve.cpp Project : LabPlot

Description : A xy-curve

Copyright : (C) 2010-2020 Alexander Semke (alexa.nosp@m.nder.nosp@m..semk.nosp@m.e@we.nosp@m.b.de) Copyright : (C) 2013-2020 Stefan Gerlach (stefa.nosp@m.n.ge.nosp@m.rlach.nosp@m.@uni.nosp@m..kn)

  • 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 *

Definition at line 46 of file XYCurve.h.

Member Typedef Documentation

◆ Private

Definition at line 157 of file XYCurve.h.

Member Enumeration Documentation

◆ DropLineType

enum XYCurve::DropLineType
strong
Enumerator
NoDropLine 
XY 
XZeroBaseline 
XMinBaseline 
XMaxBaseline 

Definition at line 60 of file XYCurve.h.

◆ ErrorBarsType

Enumerator
Simple 
WithEnds 

Definition at line 65 of file XYCurve.h.

◆ ErrorType

enum XYCurve::ErrorType
strong
Enumerator
NoError 
Symmetric 
Asymmetric 

Definition at line 63 of file XYCurve.h.

◆ FillingPosition

Enumerator
NoFilling 
Above 
Below 
ZeroBaseline 
Left 
Right 

Definition at line 64 of file XYCurve.h.

◆ LineType

enum XYCurve::LineType
strong
Enumerator
NoLine 
Line 
StartHorizontal 
StartVertical 
MidpointHorizontal 
MidpointVertical 
Segments2 
Segments3 
SplineCubicNatural 
SplineCubicPeriodic 
SplineAkimaNatural 
SplineAkimaPeriodic 

Definition at line 57 of file XYCurve.h.

◆ ValuesPosition

Enumerator
Above 
Under 
Left 
Right 

Definition at line 62 of file XYCurve.h.

◆ ValuesType

enum XYCurve::ValuesType
strong
Enumerator
NoValues 
XY 
XYBracketed 
CustomColumn 

Definition at line 61 of file XYCurve.h.

Constructor & Destructor Documentation

◆ XYCurve() [1/2]

XYCurve::XYCurve ( const QString &  name,
AspectType  type = AspectType::XYCurve 
)
explicit

Definition at line 66 of file XYCurve.cpp.

References init().

◆ ~XYCurve()

XYCurve::~XYCurve ( )
overridedefault

◆ XYCurve() [2/2]

XYCurve::XYCurve ( const QString &  name,
XYCurvePrivate dd,
AspectType  type 
)
protected

Definition at line 72 of file XYCurve.cpp.

References init().

Member Function Documentation

◆ activateCurve()

bool XYCurve::activateCurve ( QPointF  mouseScenePos,
double  maxDist = -1 
)
overridevirtual

XYCurve::activateCurve Checks if the mousepos distance to the curve is less than maxDist mouseScenePos maxDist Maximum distance the point lies away from the curve.

Returns
Returns true if the distance is smaller than maxDist.

Implements Curve.

Definition at line 233 of file XYCurve.cpp.

References AbstractAspect::d.

Referenced by XYCurvePrivate::contextMenuEvent(), and XYCurvePrivate::mousePressEvent().

◆ createContextMenu()

QMenu * XYCurve::createContextMenu ( )
overridevirtual

◆ dataChanged

◆ dropLineOpacityChanged

void XYCurve::dropLineOpacityChanged ( qreal  )
signal

◆ dropLinePenChanged

void XYCurve::dropLinePenChanged ( const QPen &  )
signal

◆ dropLineTypeChanged

void XYCurve::dropLineTypeChanged ( XYCurve::DropLineType  )
signal

◆ errorBarsCapSizeChanged

void XYCurve::errorBarsCapSizeChanged ( qreal  )
signal

◆ errorBarsOpacityChanged

void XYCurve::errorBarsOpacityChanged ( qreal  )
signal

◆ errorBarsPenChanged

void XYCurve::errorBarsPenChanged ( QPen  )
signal

◆ errorBarsTypeChanged

void XYCurve::errorBarsTypeChanged ( XYCurve::ErrorBarsType  )
signal

◆ fillingBrushStyleChanged

void XYCurve::fillingBrushStyleChanged ( Qt::BrushStyle  )
signal

◆ fillingColorStyleChanged

void XYCurve::fillingColorStyleChanged ( PlotArea::BackgroundColorStyle  )
signal

◆ fillingFileNameChanged

void XYCurve::fillingFileNameChanged ( QString &  )
signal

◆ fillingFirstColorChanged

void XYCurve::fillingFirstColorChanged ( QColor &  )
signal

◆ fillingImageStyleChanged

void XYCurve::fillingImageStyleChanged ( PlotArea::BackgroundImageStyle  )
signal

◆ fillingOpacityChanged

void XYCurve::fillingOpacityChanged ( float  )
signal

◆ fillingPositionChanged

void XYCurve::fillingPositionChanged ( XYCurve::FillingPosition  )
signal

◆ fillingSecondColorChanged

void XYCurve::fillingSecondColorChanged ( QColor &  )
signal

◆ fillingTypeChanged

void XYCurve::fillingTypeChanged ( PlotArea::BackgroundType  )
signal

◆ finalizeAdd()

void XYCurve::finalizeAdd ( )
overridevirtual

Reimplemented from AbstractAspect.

Definition at line 82 of file XYCurve.cpp.

References AbstractAspect::d, and AbstractAspect::parentAspect().

◆ graphicsItem()

QGraphicsItem * XYCurve::graphicsItem ( ) const
overridevirtual

Return the graphics item representing this element.

Implements WorksheetElement.

Definition at line 206 of file XYCurve.cpp.

References d_ptr.

Referenced by createContextMenu().

◆ handleResize()

void XYCurve::handleResize ( double  horizontalRatio,
double  verticalRatio,
bool  pageResize 
)
overridevirtual

Implements WorksheetElement.

Definition at line 781 of file XYCurve.cpp.

References AbstractAspect::d.

◆ icon()

QIcon XYCurve::icon ( ) const
overridevirtual

Returns an icon to be used in the project explorer.

Reimplemented from AbstractAspect.

Reimplemented in XYDataReductionCurve, XYDifferentiationCurve, XYEquationCurve, XYFitCurve, XYFourierFilterCurve, XYFourierTransformCurve, XYIntegrationCurve, XYInterpolationCurve, and XYSmoothCurve.

Definition at line 202 of file XYCurve.cpp.

◆ init()

◆ initActions()

void XYCurve::initActions ( )
private

◆ isSourceDataChangedSinceLastRecalc()

◆ isVisible()

◆ lineIncreasingXOnlyChanged

void XYCurve::lineIncreasingXOnlyChanged ( bool  )
signal

Referenced by XYCurveDock::initTabs().

◆ lineInterpolationPointsCountChanged

void XYCurve::lineInterpolationPointsCountChanged ( int  )
signal

◆ lineOpacityChanged

void XYCurve::lineOpacityChanged ( qreal  )
signal

◆ linePenChanged

void XYCurve::linePenChanged ( const QPen &  )
signal

◆ lineSkipGapsChanged

void XYCurve::lineSkipGapsChanged ( bool  )
signal

◆ lineTypeChanged

void XYCurve::lineTypeChanged ( XYCurve::LineType  )
signal

◆ load()

◆ loadThemeConfig()

void XYCurve::loadThemeConfig ( const KConfig &  config)
overridevirtual

◆ minMax()

bool XYCurve::minMax ( const AbstractColumn column1,
const AbstractColumn column2,
const ErrorType  errorType,
const AbstractColumn errorPlusColumn,
const AbstractColumn errorMinusColumn,
int  indexMin,
int  indexMax,
double &  min,
double &  max,
bool  includeErrorBars 
) const

Calculates the minimum min and maximum max of a curve with optionally respecting the error bars This function does not check if the values are out of range indexMax is not included column errorType errorPlusColumn errorMinusColumn indexMin indexMax min max \ includeErrorBars If true respect the error bars in the min/max calculation

Definition at line 2207 of file XYCurve.cpp.

References AbstractColumn::BigInt, AbstractColumn::columnMode(), AbstractColumn::DateTime, AbstractColumn::dateTimeAt(), AbstractColumn::Day, AbstractColumn::Integer, AbstractColumn::isMasked(), AbstractColumn::isValid(), AbstractColumn::maximum(), AbstractColumn::minimum(), AbstractColumn::Month, AbstractColumn::No, NoError, AbstractColumn::Numeric, AbstractColumn::properties(), AbstractColumn::rowCount(), Symmetric, and AbstractColumn::valueAt().

Referenced by minMaxX(), and minMaxY().

◆ minMaxX()

bool XYCurve::minMaxX ( int  indexMin,
int  indexMax,
double &  yMin,
double &  yMax,
bool  includeErrorBars = true 
) const

Definition at line 2189 of file XYCurve.cpp.

References minMax().

◆ minMaxY()

bool XYCurve::minMaxY ( int  indexMin,
int  indexMax,
double &  yMin,
double &  yMax,
bool  includeErrorBars = true 
) const

Definition at line 2185 of file XYCurve.cpp.

References minMax().

◆ navigateTo

void XYCurve::navigateTo ( )
privateslot

Definition at line 907 of file XYCurve.cpp.

References Project::navigateTo(), navigateToAction, and AbstractAspect::project().

Referenced by initActions().

◆ recalcLogicalPoints()

◆ retransform()

void XYCurve::retransform ( )
overridevirtual

Tell the element to newly transform its graphics item into its coordinate system.

This method must not change the undo-aware data of the element, only the graphics item which represents the item is to be updated.

Implements WorksheetElement.

Definition at line 760 of file XYCurve.cpp.

References AbstractAspect::d.

Referenced by CartesianPlot::dataChanged(), CartesianPlot::xDataChanged(), and CartesianPlot::yDataChanged().

◆ save()

◆ saveThemeConfig()

void XYCurve::saveThemeConfig ( const KConfig &  config)
overridevirtual

Reimplemented from WorksheetElement.

Definition at line 3270 of file XYCurve.cpp.

References AbstractAspect::indexOfChild(), and AbstractAspect::parentAspect().

◆ setHover()

void XYCurve::setHover ( bool  on)
overridevirtual

XYCurve::setHover Will be called in CartesianPlot::hoverMoveEvent() See d->setHover(on) for more documentation on.

Implements Curve.

Definition at line 244 of file XYCurve.cpp.

References AbstractAspect::d.

Referenced by CartesianPlotPrivate::hoverLeaveEvent().

◆ setPrinting()

void XYCurve::setPrinting ( bool  on)
overridevirtual

Switches the printing mode on/off.

Implements WorksheetElement.

Definition at line 221 of file XYCurve.cpp.

References AbstractAspect::d.

◆ setVisible()

void XYCurve::setVisible ( bool  on)
overridevirtual

Show/hide the element.

Implements WorksheetElement.

Definition at line 211 of file XYCurve.cpp.

Referenced by visibilityChanged().

◆ suppressRetransform()

◆ symbolsBrushChanged

void XYCurve::symbolsBrushChanged ( QBrush  )
signal

◆ symbolsOpacityChanged

void XYCurve::symbolsOpacityChanged ( qreal  )
signal

◆ symbolsPenChanged

void XYCurve::symbolsPenChanged ( const QPen &  )
signal

◆ symbolsRotationAngleChanged

void XYCurve::symbolsRotationAngleChanged ( qreal  )
signal

◆ symbolsSizeChanged

void XYCurve::symbolsSizeChanged ( qreal  )
signal

◆ symbolsStyleChanged

void XYCurve::symbolsStyleChanged ( Symbol::Style  )
signal

◆ updateErrorBars

void XYCurve::updateErrorBars ( )
privateslot

Definition at line 775 of file XYCurve.cpp.

References AbstractAspect::d.

◆ updateValues

void XYCurve::updateValues ( )
privateslot

Definition at line 770 of file XYCurve.cpp.

References AbstractAspect::d.

◆ valuesColorChanged

void XYCurve::valuesColorChanged ( QColor  )
signal

◆ valuesColumnAboutToBeRemoved

void XYCurve::valuesColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 819 of file XYCurve.cpp.

References AbstractAspect::d.

◆ valuesColumnChanged

void XYCurve::valuesColumnChanged ( const AbstractColumn )
signal

◆ valuesColumnNameChanged

void XYCurve::valuesColumnNameChanged ( )
privateslot

Definition at line 894 of file XYCurve.cpp.

References AbstractAspect::d.

◆ valuesDataChanged

void XYCurve::valuesDataChanged ( )
signal

◆ valuesDateTimeFormatChanged

void XYCurve::valuesDateTimeFormatChanged ( QString  )
signal

Referenced by XYCurveDock::initTabs().

◆ valuesDistanceChanged

void XYCurve::valuesDistanceChanged ( qreal  )
signal

◆ valuesFontChanged

void XYCurve::valuesFontChanged ( QFont  )
signal

◆ valuesNumericFormatChanged

void XYCurve::valuesNumericFormatChanged ( char  )
signal

Referenced by XYCurveDock::initTabs().

◆ valuesOpacityChanged

void XYCurve::valuesOpacityChanged ( qreal  )
signal

◆ valuesPositionChanged

void XYCurve::valuesPositionChanged ( XYCurve::ValuesPosition  )
signal

◆ valuesPrecisionChanged

void XYCurve::valuesPrecisionChanged ( int  )
signal

Referenced by XYCurveDock::initTabs().

◆ valuesPrefixChanged

void XYCurve::valuesPrefixChanged ( QString  )
signal

◆ valuesRotationAngleChanged

void XYCurve::valuesRotationAngleChanged ( qreal  )
signal

◆ valuesSuffixChanged

void XYCurve::valuesSuffixChanged ( QString  )
signal

◆ valuesTypeChanged

void XYCurve::valuesTypeChanged ( XYCurve::ValuesType  )
signal

◆ visibilityChanged [1/2]

◆ visibilityChanged [2/2]

void XYCurve::visibilityChanged ( bool  )
signal

◆ xColumnAboutToBeRemoved

void XYCurve::xColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 801 of file XYCurve.cpp.

References AbstractAspect::d.

◆ xColumnChanged

void XYCurve::xColumnChanged ( const AbstractColumn )
signal

◆ xColumnNameChanged

void XYCurve::xColumnNameChanged ( )
privateslot

Definition at line 864 of file XYCurve.cpp.

References AbstractAspect::d.

◆ xDataChanged

void XYCurve::xDataChanged ( )
signal

◆ xErrorMinusColumnAboutToBeRemoved

void XYCurve::xErrorMinusColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 837 of file XYCurve.cpp.

References AbstractAspect::d.

◆ xErrorMinusColumnChanged

void XYCurve::xErrorMinusColumnChanged ( const AbstractColumn )
signal

◆ xErrorMinusColumnNameChanged

void XYCurve::xErrorMinusColumnNameChanged ( )
privateslot

Definition at line 879 of file XYCurve.cpp.

References AbstractAspect::d.

◆ xErrorMinusDataChanged

void XYCurve::xErrorMinusDataChanged ( )
signal

◆ xErrorPlusColumnAboutToBeRemoved

void XYCurve::xErrorPlusColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 828 of file XYCurve.cpp.

References AbstractAspect::d.

◆ xErrorPlusColumnChanged

void XYCurve::xErrorPlusColumnChanged ( const AbstractColumn )
signal

◆ xErrorPlusColumnNameChanged

void XYCurve::xErrorPlusColumnNameChanged ( )
privateslot

Definition at line 874 of file XYCurve.cpp.

References AbstractAspect::d.

◆ xErrorPlusDataChanged

void XYCurve::xErrorPlusDataChanged ( )
signal

◆ xErrorTypeChanged

void XYCurve::xErrorTypeChanged ( XYCurve::ErrorType  )
signal

◆ y()

double XYCurve::y ( double  x,
bool &  valueFound 
) const

Find y value which corresponds to a x . valueFound indicates, if value was found. When monotonic increasing or decreasing a different algorithm will be used, which needs less steps (mean) (log_2(rowCount)) to find the value.

Parameters
x
valueFound
Returns

Definition at line 2132 of file XYCurve.cpp.

References AbstractColumn::BigInt, AbstractColumn::Integer, AbstractColumn::Numeric, and nsl_smooth_check::x.

Referenced by XYAnalysisCurve::copyData(), Worksheet::cursorPosChanged(), Worksheet::curveAdded(), Worksheet::curveDataChanged(), and Worksheet::updateCompleteCursorTreeModel().

◆ yColumnAboutToBeRemoved

void XYCurve::yColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 810 of file XYCurve.cpp.

References AbstractAspect::d.

◆ yColumnChanged

void XYCurve::yColumnChanged ( const AbstractColumn )
signal

◆ yColumnNameChanged

void XYCurve::yColumnNameChanged ( )
privateslot

Definition at line 869 of file XYCurve.cpp.

References AbstractAspect::d.

◆ yDataChanged

void XYCurve::yDataChanged ( )
signal

◆ yDateTime()

QDateTime XYCurve::yDateTime ( double  x,
bool &  valueFound 
) const

Find y DateTime which corresponds to a x . valueFound indicates, if value was found. When monotonic increasing or decreasing a different algorithm will be used, which needs less steps (mean) (log_2(rowCount)) to find the value.

Parameters
x
valueFound
Returns
Return found value

Definition at line 2162 of file XYCurve.cpp.

References AbstractColumn::DateTime, AbstractColumn::Day, AbstractColumn::Month, and nsl_smooth_check::x.

◆ yErrorMinusColumnAboutToBeRemoved

void XYCurve::yErrorMinusColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 855 of file XYCurve.cpp.

References AbstractAspect::d.

◆ yErrorMinusColumnChanged

void XYCurve::yErrorMinusColumnChanged ( const AbstractColumn )
signal

◆ yErrorMinusColumnNameChanged

void XYCurve::yErrorMinusColumnNameChanged ( )
privateslot

Definition at line 889 of file XYCurve.cpp.

References AbstractAspect::d.

◆ yErrorMinusDataChanged

void XYCurve::yErrorMinusDataChanged ( )
signal

◆ yErrorPlusColumnAboutToBeRemoved

void XYCurve::yErrorPlusColumnAboutToBeRemoved ( const AbstractAspect aspect)
privateslot

Definition at line 846 of file XYCurve.cpp.

References AbstractAspect::d.

◆ yErrorPlusColumnChanged

void XYCurve::yErrorPlusColumnChanged ( const AbstractColumn )
signal

◆ yErrorPlusColumnNameChanged

void XYCurve::yErrorPlusColumnNameChanged ( )
privateslot

Definition at line 884 of file XYCurve.cpp.

References AbstractAspect::d.

◆ yErrorPlusDataChanged

void XYCurve::yErrorPlusDataChanged ( )
signal

◆ yErrorTypeChanged

void XYCurve::yErrorTypeChanged ( XYCurve::ErrorType  )
signal

Friends And Related Function Documentation

◆ XYCurveSetValuesColumnCmd

friend class XYCurveSetValuesColumnCmd
friend

Definition at line 56 of file XYCurve.h.

◆ XYCurveSetXColumnCmd

friend class XYCurveSetXColumnCmd
friend

Definition at line 50 of file XYCurve.h.

◆ XYCurveSetXErrorMinusColumnCmd

friend class XYCurveSetXErrorMinusColumnCmd
friend

Definition at line 53 of file XYCurve.h.

◆ XYCurveSetXErrorPlusColumnCmd

friend class XYCurveSetXErrorPlusColumnCmd
friend

Definition at line 52 of file XYCurve.h.

◆ XYCurveSetYColumnCmd

friend class XYCurveSetYColumnCmd
friend

Definition at line 51 of file XYCurve.h.

◆ XYCurveSetYErrorMinusColumnCmd

friend class XYCurveSetYErrorMinusColumnCmd
friend

Definition at line 55 of file XYCurve.h.

◆ XYCurveSetYErrorPlusColumnCmd

friend class XYCurveSetYErrorPlusColumnCmd
friend

Definition at line 54 of file XYCurve.h.

Member Data Documentation

◆ d_ptr

◆ m_menusInitialized

bool XYCurve::m_menusInitialized {false}
private

Definition at line 202 of file XYCurve.h.

Referenced by createContextMenu(), and initActions().

◆ navigateToAction

QAction* XYCurve::navigateToAction {nullptr}
private

Definition at line 201 of file XYCurve.h.

Referenced by createContextMenu(), initActions(), and navigateTo().

◆ visibilityAction

QAction* XYCurve::visibilityAction {nullptr}
private

Definition at line 200 of file XYCurve.h.

Referenced by createContextMenu(), and initActions().


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