QWTSERIESSTORE(3)

πŸ’– NAME πŸ’–

okay so this is QwtSeriesStore< T > β€” Class storing a QwtSeriesData object. 🫢 This page is from the Library Functions Manual, bestie, and we’re folding that manual name in right here near the top instead of doing a boring header line. πŸ’…


✨ SYNOPSIS ✨

#include <qwt_series_store.h>

Inherits QwtAbstractSeriesStore.

🌸 Public Member Functions 🌸

  • QwtSeriesStore () β€” Constructor. The store contains no series.
  • ~QwtSeriesStore () β€” Destructor.
  • void setData (QwtSeriesData< T > *series)
  • QwtSeriesData< T > * data ()
  • const QwtSeriesData< T > * data () const
  • T sample (int index) const
  • virtual size_t dataSize () const override
  • virtual QRectF dataRect () const override
  • virtual void setRectOfInterest (const QRectF &rect) override
  • QwtSeriesData< T > * swapData (QwtSeriesData< T > *series)

🫢 Public Member Functions inherited from QwtAbstractSeriesStore 🫢

  • virtual ~QwtAbstractSeriesStore () β€” Destructor.

πŸŽ€ Additional Inherited Members πŸŽ€

πŸ’… Protected Member Functions inherited from QwtAbstractSeriesStore πŸ’…

  • virtual void dataChanged ()=0 β€” dataChanged() indicates, that the series has been changed.

🌈 Detailed Description 🌈

template<typename T>
class QwtSeriesStore< T >

Class storing a QwtSeriesData object. πŸ’–

QwtSeriesStore and QwtPlotSeriesItem are intended as base classes for all plot items iterating over a series of samples. Both classes share a virtual base class (QwtAbstractSeriesStore) to bridge between them. 🫢

QwtSeriesStore offers the template based part for the plot item API, so that QwtPlotSeriesItem can be derived without any hassle with templates. ✨

Definition at line 66 of file qwt_series_store.h.


πŸŽ€ Constructor & Destructor Documentation πŸŽ€

πŸ’– template<typename T> QwtSeriesStore< T >::QwtSeriesStore () [explicit] πŸ’–

Constructor. The store contains no series. πŸŽ€

Definition at line 134 of file qwt_series_store.h.

πŸ’– template<typename T> QwtSeriesStore< T >::~QwtSeriesStore () πŸ’–

Destructor. πŸ’…

Definition at line 140 of file qwt_series_store.h.


πŸ¦‹ Member Function Documentation πŸ¦‹

πŸ’œ template<typename T> QwtSeriesData< T > * QwtSeriesStore< T >::data () [inline] πŸ’œ

Returns: the the series data. (Yes, the double β€œthe” is canon in the original, no cap 😭.)

Definition at line 146 of file qwt_series_store.h.

πŸ’œ template<typename T> const QwtSeriesData< T > * QwtSeriesStore< T >::data () const [inline] πŸ’œ

Returns: the the series data. 🫢

Definition at line 152 of file qwt_series_store.h.

🌸 template<typename T> QRectF QwtSeriesStore< T >::dataRect () const [override], [virtual] 🌸

Returns: Bounding rectangle of the series or an invalid rectangle, when no series is stored.

See also: QwtSeriesData<T>::boundingRect()

Implements QwtAbstractSeriesStore.

Definition at line 184 of file qwt_series_store.h.

🧚 template<typename T> size_t QwtSeriesStore< T >::dataSize () const [override], [virtual] 🧚

Returns: Number of samples of the series. ✨

See also: setData(), QwtSeriesData<T>::size()

Implements QwtAbstractSeriesStore.

Definition at line 175 of file qwt_series_store.h.

πŸ“ template<typename T> T QwtSeriesStore< T >::sample (int index) const [inline] πŸ“

Parameters:

  • index β€” Index

Returns: Sample at position index.

Definition at line 158 of file qwt_series_store.h.

πŸ”₯ template<typename T> void QwtSeriesStore< T >::setData (QwtSeriesData< T > * series) πŸ”₯

Assign a series of samples.

Parameters:

  • series β€” Data
⚠️ Warning: The item takes ownership of the data object, deleting it when its not used anymore. This is the big one, bestie β€” ownership is on the item, and the data object gets deleted when it’s no longer used. πŸ’€

Definition at line 164 of file qwt_series_store.h.

πŸ¦‹ template<typename T> void QwtSeriesStore< T >::setRectOfInterest (const QRectF & rect) [override], [virtual] πŸ¦‹

Set a the β€œrect of interest” for the series. (The phrasing is iconic, and we’re keeping it. 😭)

Parameters:

  • rect β€” Rectangle of interest

See also: QwtSeriesData<T>::setRectOfInterest()

Implements QwtAbstractSeriesStore.

Definition at line 193 of file qwt_series_store.h.

πŸ‘‘ template<typename T> QwtSeriesData< T > * QwtSeriesStore< T >::swapData (QwtSeriesData< T > * series) πŸ‘‘

Replace a series without deleting the previous one. πŸ”

Parameters:

  • series β€” New series

Returns: Previously assigned series

Definition at line 200 of file qwt_series_store.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code. πŸ’–


And that’s the whole page, bestie πŸ’… β€” the footer source/version is Qwt User's Guide, the page tag is QwtSeriesStore< T >(3), and there’s no date shown on this copy, so I’m not inventing one. Mwah πŸ«ΆπŸ’–

πŸ“¦ where this page comes from