|
|
|
@ -3,6 +3,7 @@ |
|
|
|
|
#include <QStackedLayout> |
|
|
|
|
#include <QWidget> |
|
|
|
|
|
|
|
|
|
#include "selfdrive/common/util.h" |
|
|
|
|
#include "selfdrive/ui/qt/widgets/cameraview.h" |
|
|
|
|
#include "selfdrive/ui/ui.h" |
|
|
|
|
|
|
|
|
@ -66,7 +67,7 @@ class NvgWindow : public CameraViewWidget { |
|
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
explicit NvgWindow(VisionStreamType type, QWidget* parent = 0) : CameraViewWidget("camerad", type, true, parent) {} |
|
|
|
|
explicit NvgWindow(VisionStreamType type, QWidget* parent = 0); |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
void paintGL() override; |
|
|
|
@ -77,7 +78,9 @@ protected: |
|
|
|
|
void drawLead(QPainter &painter, const cereal::ModelDataV2::LeadDataV3::Reader &lead_data, const QPointF &vd); |
|
|
|
|
inline QColor redColor(int alpha = 255) { return QColor(201, 34, 49, alpha); } |
|
|
|
|
inline QColor whiteColor(int alpha = 255) { return QColor(255, 255, 255, alpha); } |
|
|
|
|
|
|
|
|
|
double prev_draw_t = 0; |
|
|
|
|
FirstOrderFilter fps_filter; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// container for all onroad widgets
|
|
|
|
|