mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 14:07:30 +00:00
PC Application: partial firmware update dialog
This commit is contained in:
parent
8c8749accd
commit
07ba714f1f
134 changed files with 13954 additions and 7 deletions
44
Software/PC_Application/Traces/tracesmithchart.h
Normal file
44
Software/PC_Application/Traces/tracesmithchart.h
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#ifndef TRACESMITHCHART_H
|
||||
#define TRACESMITHCHART_H
|
||||
|
||||
#include "traceplot.h"
|
||||
#include <QPen>
|
||||
|
||||
class TraceSmithChart : public TracePlot
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TraceSmithChart(TraceModel &model, QWidget *parent = 0);
|
||||
|
||||
protected:
|
||||
static constexpr double ReferenceImpedance = 50.0;
|
||||
static constexpr double screenUsage = 0.9;
|
||||
static constexpr int smithCoordMax = 4096;
|
||||
|
||||
QPoint plotToPixel(std::complex<double> S);
|
||||
std::complex<double> pixelToPlot(const QPoint &pos);
|
||||
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
bool supported(Trace *t) override;
|
||||
void draw(QPainter * painter, double width_factor);
|
||||
void replot() override;
|
||||
QPen textPen;
|
||||
QPen chartLinesPen;
|
||||
QPen thinPen;
|
||||
QPen pointDataPen;
|
||||
QPen lineDataPen;
|
||||
|
||||
/// Path for the thin arcs
|
||||
QPainterPath thinArcsPath;
|
||||
/// Path for the thick arcs
|
||||
QPainterPath thickArcsPath;
|
||||
|
||||
double plotToPixelXOffset, plotToPixelXScale;
|
||||
double plotToPixelYOffset, plotToPixelYScale;
|
||||
TraceMarker *selectedMarker;
|
||||
};
|
||||
|
||||
#endif // TRACESMITHCHART_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue