Added a new window - Temporal Graph which shows all frame IDs and the
time stamp when they came in. Shows the temporal relationship between all frames.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
#ifndef TEMPORALGRAPHWINDOW_H
|
||||
#define TEMPORALGRAPHWINDOW_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "qcustomplot.h"
|
||||
#include "can_structs.h"
|
||||
|
||||
namespace Ui {
|
||||
class TemporalGraphWindow;
|
||||
}
|
||||
|
||||
class HexTicker : public QCPAxisTicker
|
||||
{
|
||||
QString getTickLabel (double tick, const QLocale& locale, QChar formatChar, int precision);
|
||||
};
|
||||
|
||||
class TemporalGraphWindow : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TemporalGraphWindow(const QVector<CANFrame> *, QWidget *parent = nullptr);
|
||||
~TemporalGraphWindow();
|
||||
void showEvent(QShowEvent*);
|
||||
|
||||
private slots:
|
||||
void updatedFrames(int);
|
||||
void mousePress();
|
||||
void mouseWheel();
|
||||
void resetView();
|
||||
void zoomIn();
|
||||
void zoomOut();
|
||||
void selectionChanged();
|
||||
|
||||
private:
|
||||
Ui::TemporalGraphWindow *ui;
|
||||
const QVector<CANFrame> *modelFrames;
|
||||
bool useOpenGL;
|
||||
bool followGraphEnd;
|
||||
QCPGraph *graph;
|
||||
|
||||
void closeEvent(QCloseEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
void readSettings();
|
||||
void writeSettings();
|
||||
void generateGraph();
|
||||
|
||||
};
|
||||
|
||||
#endif // TEMPORALGRAPHWINDOW_H
|
||||
Reference in New Issue
Block a user