Widget for entering the load impedance data.
More...
#include <LoadSpecificationWidget.h>
|
|
void | impedanceChanged () |
| | Emitted when impedance value changes.
|
| |
|
void | reflectionCoefficientChanged () |
| | Emitted when reflection coefficient changes.
|
| |
|
void | sParametersChanged () |
| | Emitted when S-parameters change.
|
| |
| void | collapsedStateChanged (bool collapsed) |
| | Emitted when collapsed state changes.
|
| |
|
| | LoadSpecificationWidget (QWidget *parent=nullptr) |
| | Class constructor.
|
| |
|
| ~LoadSpecificationWidget () |
| | Class destructor.
|
| |
|
| std::array< std::complex< double >, 4 > | getSParameters () const |
| | Get all S-parameters as an array [S11, S12, S21, S22].
|
| |
| std::complex< double > | getLoadImpedance_At_Fmatch () const |
| | Get load impedance at matching frequency.
|
| |
| QList< std::complex< double > > | getZLdata () |
| | Get load impedance data over frequency.
|
| |
| QList< double > | getFrequency () |
| | Get frequency data points.
|
| |
| std::pair< std::complex< double >, std::complex< double > > | getTwoPortMatchingImpedances () const |
| | Calculate two-port matching impedances (source and load)
|
| |
| std::complex< double > | getReflectionCoefficient () const |
| | Get reflection coefficient.
|
| |
| QString | getSparFilePath () |
| | Get S-parameter file path.
|
| |
| bool | isTwoPortMode () const |
| | Check if widget is in two-port mode.
|
| |
|
Get S11 parameter
- Returns
- Complex S11 value
|
|
std::complex< double > | getS11 () const |
| |
| std::complex< double > | getS12 () const |
| | Get S12 parameter.
|
| |
| std::complex< double > | getS21 () const |
| | Get S21 parameter.
|
| |
| std::complex< double > | getS22 () const |
| | Get S22 parameter.
|
| |
|
|
double | Z0_Port1 |
| |
|
double | Z0_Port2 |
| |
| void | setLoadImpedance (const std::complex< double > &impedance) |
| | Set load impedance.
|
| |
| void | setReflectionCoefficient (const std::complex< double > &gamma) |
| | Set reflection coefficient.
|
| |
| void | setTwoPortMode (bool enabled) |
| | Enable or disable two-port mode.
|
| |
| void | setReferenceImpedance (double Z0) |
| | Set reference impedance.
|
| |
| void | setCollapsed (bool collapsed) |
| | Set collapsed state of widget.
|
| |
| void | setFmatch (double freq) |
| | Set matching frequency.
|
| |
| bool | isCollapsed () const |
| | Check if widget is collapsed.
|
| |
| void | mousePressEvent (QMouseEvent *event) override |
| | Handle mouse press events for collapsible header.
|
| |
Widget for entering the load impedance data.
◆ LoadSpecificationWidget()
| LoadSpecificationWidget::LoadSpecificationWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Class constructor.
- Parameters
-
◆ collapsedStateChanged
| void LoadSpecificationWidget::collapsedStateChanged |
( |
bool |
collapsed | ) |
|
|
signal |
Emitted when collapsed state changes.
- Parameters
-
| collapsed | New collapsed state |
◆ getFrequency()
| QList< double > LoadSpecificationWidget::getFrequency |
( |
| ) |
|
Get frequency data points.
- Returns
- List of frequencies in Hz
◆ getLoadImpedance_At_Fmatch()
| std::complex< double > LoadSpecificationWidget::getLoadImpedance_At_Fmatch |
( |
| ) |
const |
Get load impedance at matching frequency.
- Returns
- Complex load impedance
◆ getReflectionCoefficient()
| std::complex< double > LoadSpecificationWidget::getReflectionCoefficient |
( |
| ) |
const |
Get reflection coefficient.
- Returns
- Complex reflection coefficient
◆ getS12()
| std::complex< double > LoadSpecificationWidget::getS12 |
( |
| ) |
const |
Get S12 parameter.
- Returns
- Complex S12 value
◆ getS21()
| std::complex< double > LoadSpecificationWidget::getS21 |
( |
| ) |
const |
Get S21 parameter.
- Returns
- Complex S21 value
◆ getS22()
| std::complex< double > LoadSpecificationWidget::getS22 |
( |
| ) |
const |
Get S22 parameter.
- Returns
- Complex S22 value
◆ getSParameters()
| std::array< std::complex< double >, 4 > LoadSpecificationWidget::getSParameters |
( |
| ) |
const |
|
inline |
Get all S-parameters as an array [S11, S12, S21, S22].
- Returns
- Array containing S11, S12, S21, S22
◆ getSparFilePath()
| QString LoadSpecificationWidget::getSparFilePath |
( |
| ) |
|
|
inline |
Get S-parameter file path.
- Returns
- Path to S-parameter file
◆ getTwoPortMatchingImpedances()
| std::pair< std::complex< double >, std::complex< double > > LoadSpecificationWidget::getTwoPortMatchingImpedances |
( |
| ) |
const |
Calculate two-port matching impedances (source and load)
- Returns
- Pair of complex impedances (source, load)
◆ getZLdata()
| QList< std::complex< double > > LoadSpecificationWidget::getZLdata |
( |
| ) |
|
Get load impedance data over frequency.
- Returns
- List of complex impedances
◆ isCollapsed()
| bool LoadSpecificationWidget::isCollapsed |
( |
| ) |
const |
|
inline |
Check if widget is collapsed.
- Returns
- True if collapsed, false otherwise
◆ isTwoPortMode()
| bool LoadSpecificationWidget::isTwoPortMode |
( |
| ) |
const |
|
inline |
Check if widget is in two-port mode.
- Returns
- True if in two-port mode, false otherwise
◆ mousePressEvent()
| void LoadSpecificationWidget::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
Handle mouse press events for collapsible header.
- Parameters
-
◆ setCollapsed()
| void LoadSpecificationWidget::setCollapsed |
( |
bool |
collapsed | ) |
|
Set collapsed state of widget.
- Parameters
-
| collapsed | True to collapse, false to expand |
◆ setFmatch()
| void LoadSpecificationWidget::setFmatch |
( |
double |
freq | ) |
|
|
inline |
Set matching frequency.
- Parameters
-
◆ setLoadImpedance()
| void LoadSpecificationWidget::setLoadImpedance |
( |
const std::complex< double > & |
impedance | ) |
|
Set load impedance.
- Parameters
-
| impedance | Complex impedance value |
◆ setReferenceImpedance()
| void LoadSpecificationWidget::setReferenceImpedance |
( |
double |
Z0 | ) |
|
|
inline |
Set reference impedance.
- Parameters
-
| Z0 | Reference impedance in ohms |
◆ setReflectionCoefficient()
| void LoadSpecificationWidget::setReflectionCoefficient |
( |
const std::complex< double > & |
gamma | ) |
|
Set reflection coefficient.
- Parameters
-
| gamma | Complex reflection coefficient |
◆ setTwoPortMode()
| void LoadSpecificationWidget::setTwoPortMode |
( |
bool |
enabled | ) |
|
Enable or disable two-port mode.
- Parameters
-
| enabled | True to enable two-port mode, false for one-port |
The documentation for this class was generated from the following files: