nngn
Loading...
Searching...
No Matches
Graph Class Reference

#include <graph.h>

Inheritance diagram for Graph:
Collaboration diagram for Graph:

Public Types

enum class  Type : uint8_t { LINE = 'l' }
 
enum class  Mode { ABSOLUTE , RELATIVE }
 

Public Slots

void new_graph (QString title)
 
void new_data (const QVector< qreal > &v)
 
void set_mode (Mode m)
 

Public Member Functions

 Graph ()
 
 Graph (Graph &)=delete
 
Graphoperator= (Graph &)=delete
 
Mode mode () const
 

Private Types

using QLineSeries = QtCharts::QLineSeries
 

Private Attributes

std::vector< QLineSeries * > series = {}
 
Mode m_mode = Mode::RELATIVE
 

Member Typedef Documentation

◆ QLineSeries

using Graph::QLineSeries = QtCharts::QLineSeries
private

Member Enumeration Documentation

◆ Mode

enum class Graph::Mode
strong
Enumerator
ABSOLUTE 
RELATIVE 

◆ Type

enum class Graph::Type : uint8_t
strong
Enumerator
LINE 

Constructor & Destructor Documentation

◆ Graph() [1/2]

Graph::Graph ( )

◆ Graph() [2/2]

Graph::Graph ( Graph & )
delete

Member Function Documentation

◆ mode()

Mode Graph::mode ( ) const
inline

◆ new_data

void Graph::new_data ( const QVector< qreal > & v)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_graph

void Graph::new_graph ( QString title)
slot
Here is the caller graph for this function:

◆ operator=()

Graph & Graph::operator= ( Graph & )
delete

◆ set_mode

void Graph::set_mode ( Mode m)
inlineslot

Member Data Documentation

◆ m_mode

Mode Graph::m_mode = Mode::RELATIVE
private

◆ series

std::vector<QLineSeries*> Graph::series = {}
private

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