Public Types | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
PJ::TimeseriesBase< Value > Class Template Reference

#include <plotdata.h>

Inheritance diagram for PJ::TimeseriesBase< Value >:
Inheritance graph
[legend]

Public Types

using Point = typename PlotDataBase< Value >::Point
 
- Public Types inherited from PJ::PlotDataBase< Value >
enum  { MAX_CAPACITY = 1024 * 1024, ASYNC_BUFFER_CAPACITY = 1024 }
 
typedef std::deque< Point >::const_iterator ConstIterator
 
typedef std::deque< Point >::iterator Iterator
 
typedef double TypeX
 
typedef Value TypeY
 

Public Member Functions

int getIndexFromX (double x) const
 
nonstd::optional< ValuegetYfromX (double x) const
 
double maximumRangeX () const
 
void popFront () override
 
template<>
void popFront ()
 
void pushBack (const Point &p)
 
void pushBack (Point &&p) override
 
template<>
void pushBack (Point &&p)
 
RangeOpt rangeX () const override
 
void setMaximumRangeX (double max_range)
 
 TimeseriesBase (const std::string &name)
 
- Public Member Functions inherited from PJ::PlotDataBase< Value >
const Pointat (size_t index) const
 
Pointat (size_t index)
 
const Pointback () const
 
ConstIterator begin () const
 
Iterator begin ()
 
void clear ()
 
ConstIterator end () const
 
Iterator end ()
 
const Pointfront () const
 
QColor getColorHint () const
 
const std::string & name () const
 
PlotDataBaseoperator= (const PlotDataBase &other)=delete
 
const Pointoperator[] (size_t index) const
 
Pointoperator[] (size_t index)
 
 PlotDataBase (const std::string &name)
 
 PlotDataBase (const PlotDataBase &other)=delete
 
 PlotDataBase (PlotDataBase &&other)
 
template<>
void popFront ()
 
void pushBack (const Point &p)
 
virtual void pushBack (Point &&p)
 
template<>
void pushBack (Point &&p)
 
RangeOpt rangeY () const
 
template<>
RangeOpt rangeY () const
 
void setColorHint (QColor color)
 
virtual size_t size () const
 
void swapData (PlotDataBase &other)
 
virtual ~PlotDataBase ()=default
 

Protected Attributes

double _max_range_x
 
- Protected Attributes inherited from PJ::PlotDataBase< Value >
QColor _color_hint
 
std::string _name
 
std::deque< Point_points
 
Range _range_x
 
bool _range_x_dirty
 
Range _range_y
 
bool _range_y_dirty
 

Private Member Functions

void trimRange ()
 

Detailed Description

template<typename Value>
class PJ::TimeseriesBase< Value >

Definition at line 278 of file plotdata.h.

Member Typedef Documentation

template<typename Value >
using PJ::TimeseriesBase< Value >::Point = typename PlotDataBase<Value>::Point

Definition at line 290 of file plotdata.h.

Constructor & Destructor Documentation

template<typename Value >
PJ::TimeseriesBase< Value >::TimeseriesBase ( const std::string &  name)
inline

Definition at line 292 of file plotdata.h.

Member Function Documentation

template<typename Value >
int PJ::TimeseriesBase< Value >::getIndexFromX ( double  x) const
inline

Definition at line 545 of file plotdata.h.

template<typename Value >
nonstd::optional< Value > PJ::TimeseriesBase< Value >::getYfromX ( double  x) const
inline

Definition at line 579 of file plotdata.h.

template<typename Value >
double PJ::TimeseriesBase< Value >::maximumRangeX ( ) const
inline

Definition at line 305 of file plotdata.h.

template<typename Value >
void PJ::TimeseriesBase< Value >::popFront ( )
inlineoverridevirtual

Reimplemented from PJ::PlotDataBase< Value >.

Definition at line 314 of file plotdata.h.

template<>
void PJ::TimeseriesBase< nonstd::any >::popFront ( )
inlinevirtual

Reimplemented from PJ::PlotDataBase< Value >.

Definition at line 425 of file plotdata.h.

template<typename Value >
void PJ::TimeseriesBase< Value >::pushBack ( const Point p)
inline

Definition at line 330 of file plotdata.h.

template<typename Value >
void PJ::TimeseriesBase< Value >::pushBack ( Point &&  p)
inlineoverride

Definition at line 336 of file plotdata.h.

template<>
void PJ::TimeseriesBase< nonstd::any >::pushBack ( Point &&  p)
inline

Definition at line 466 of file plotdata.h.

template<typename Value >
RangeOpt PJ::TimeseriesBase< Value >::rangeX ( ) const
inlineoverridevirtual

Reimplemented from PJ::PlotDataBase< Value >.

Definition at line 387 of file plotdata.h.

template<typename Value >
void PJ::TimeseriesBase< Value >::setMaximumRangeX ( double  max_range)
inline

Definition at line 299 of file plotdata.h.

template<typename Value >
void PJ::TimeseriesBase< Value >::trimRange ( )
inlineprivate

Definition at line 402 of file plotdata.h.

Member Data Documentation

template<typename Value >
double PJ::TimeseriesBase< Value >::_max_range_x
protected

Definition at line 281 of file plotdata.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:52