Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <trafficgraphwidget.h>

+ Inheritance diagram for TrafficGraphWidget:
+ Collaboration diagram for TrafficGraphWidget:

Public Slots

void updateRates ()
 
void setGraphRangeMins (int value)
 
void clear ()
 

Public Member Functions

 TrafficGraphWidget (QWidget *parent=0)
 
void setClientModel (ClientModel *model)
 
int getGraphRangeMins () const
 

Protected Member Functions

void paintEvent (QPaintEvent *)
 

Private Types

typedef boost::function< float(const TrafficSample &)> SampleChooser
 

Private Member Functions

void paintPath (QPainterPath &path, const TrafficGraphData::SampleQueue &queue, SampleChooser chooser)
 

Private Attributes

QTimer * timer
 
float fMax
 
int nMins
 
ClientModelclientModel
 
TrafficGraphData trafficGraphData
 

Detailed Description

Definition at line 22 of file trafficgraphwidget.h.

Member Typedef Documentation

◆ SampleChooser

typedef boost::function<float(const TrafficSample&)> TrafficGraphWidget::SampleChooser
private

Definition at line 40 of file trafficgraphwidget.h.

Constructor & Destructor Documentation

◆ TrafficGraphWidget()

TrafficGraphWidget::TrafficGraphWidget ( QWidget *  parent = 0)
explicit

Member Function Documentation

◆ clear

◆ getGraphRangeMins()

int TrafficGraphWidget::getGraphRangeMins ( ) const

Definition at line 44 of file trafficgraphwidget.cpp.

References nMins.

◆ paintEvent()

◆ paintPath()

void TrafficGraphWidget::paintPath ( QPainterPath &  path,
const TrafficGraphData::SampleQueue queue,
SampleChooser  chooser 
)
private

Definition at line 50 of file trafficgraphwidget.cpp.

References TrafficGraphData::DESIRED_DATA_SAMPLES, fMax, XMARGIN, and YMARGIN.

Referenced by paintEvent().

◆ setClientModel()

void TrafficGraphWidget::setClientModel ( ClientModel model)

◆ setGraphRangeMins

void TrafficGraphWidget::setGraphRangeMins ( int  value)
slot

Definition at line 244 of file trafficgraphwidget.cpp.

References TrafficGraphData::switchRange(), and trafficGraphData.

◆ updateRates

Member Data Documentation

◆ clientModel

ClientModel* TrafficGraphWidget::clientModel
private

Definition at line 46 of file trafficgraphwidget.h.

Referenced by clear(), setClientModel(), and updateRates().

◆ fMax

float TrafficGraphWidget::fMax
private

Definition at line 44 of file trafficgraphwidget.h.

Referenced by clear(), paintEvent(), paintPath(), and updateRates().

◆ nMins

int TrafficGraphWidget::nMins
private

Definition at line 45 of file trafficgraphwidget.h.

Referenced by getGraphRangeMins().

◆ timer

QTimer* TrafficGraphWidget::timer
private

Definition at line 43 of file trafficgraphwidget.h.

Referenced by TrafficGraphWidget().

◆ trafficGraphData

TrafficGraphData TrafficGraphWidget::trafficGraphData
private

The documentation for this class was generated from the following files:
Released under the MIT license