mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 07:23:43 +00:00
partial eye diagram implementation
This commit is contained in:
parent
9a198217b8
commit
c7a99af820
17 changed files with 7404 additions and 25 deletions
|
|
@ -188,3 +188,16 @@ std::complex<double> Util::addTransmissionLine(std::complex<double> termination_
|
|||
|
||||
return Gamma_i;
|
||||
}
|
||||
|
||||
QColor Util::getIntensityGradeColor(double intensity)
|
||||
{
|
||||
if(intensity < 0.0) {
|
||||
return Qt::black;
|
||||
} else if(intensity > 1.0) {
|
||||
return Qt::white;
|
||||
} else if(intensity >= 0.0 && intensity <= 1.0) {
|
||||
return QColor::fromHsv(Util::Scale<double>(intensity, 0.0, 1.0, 240, 0), 255, 255);
|
||||
} else {
|
||||
return Qt::black;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue