mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 14:07:30 +00:00
Calculate additional parameters (R/L/C,...) for markers and traces
This commit is contained in:
parent
a232be3443
commit
e27e594435
18 changed files with 168 additions and 164 deletions
|
|
@ -12,16 +12,21 @@ public:
|
|||
TraceXYPlot(TraceModel &model, QWidget *parent = nullptr);
|
||||
|
||||
enum class YAxisType {
|
||||
Disabled = 0,
|
||||
Disabled,
|
||||
// S parameter options
|
||||
Magnitude = 1,
|
||||
Phase = 2,
|
||||
VSWR = 3,
|
||||
Magnitude,
|
||||
Phase,
|
||||
VSWR,
|
||||
// derived parameter options
|
||||
SeriesR,
|
||||
Capacitance,
|
||||
Inductance,
|
||||
QualityFactor,
|
||||
// TDR options
|
||||
ImpulseReal = 4,
|
||||
ImpulseMag = 5,
|
||||
Step = 6,
|
||||
Impedance = 7,
|
||||
ImpulseReal,
|
||||
ImpulseMag,
|
||||
Step,
|
||||
Impedance,
|
||||
Last,
|
||||
};
|
||||
static const std::set<YAxisType> YAxisTypes;
|
||||
|
|
@ -62,9 +67,9 @@ private slots:
|
|||
void updateAxisTicks();
|
||||
private:
|
||||
static constexpr int AxisLabelSize = 10;
|
||||
QString AxisTypeToName(YAxisType type);
|
||||
QString AxisTypeToName(XAxisType type);
|
||||
QString AxisModeToName(XAxisMode mode);
|
||||
static QString AxisTypeToName(YAxisType type);
|
||||
static QString AxisTypeToName(XAxisType type);
|
||||
static QString AxisModeToName(XAxisMode mode);
|
||||
XAxisType XAxisTypeFromName(QString name);
|
||||
YAxisType YAxisTypeFromName(QString name);
|
||||
XAxisMode AxisModeFromName(QString name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue