|
KiCad PCB EDA Suite
|
< Smith chart placement plus pan/zoom, maps a gamma point to a screen pixel and back. More...
#include <smith_math.h>
Public Member Functions | |
| wxPoint | ToScreen (double aRe, double aIm) const |
| wxRealPoint | ToGamma (const wxPoint &aPt) const |
Public Attributes | |
| wxPoint | center |
| double | radius = 0.0 |
| double | zoom = 1.0 |
| wxRealPoint | pan |
| wxRect | plotRect |
< Smith chart placement plus pan/zoom, maps a gamma point to a screen pixel and back.
Definition at line 31 of file smith_math.h.
|
inline |
Definition at line 53 of file smith_math.h.
References center, pan, and radius.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SIM_PLOT_TAB::onSmithMenuCommand(), and SMITH_MATH::ZoomAboutPoint().
|
inline |
Definition at line 39 of file smith_math.h.
References center, KiROUND(), pan, and radius.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SMITH_CURSOR::Inside(), SMITH_CURSOR::Plot(), SMITH_GRID::Plot(), and SMITH_TRACE::Plot().
| wxPoint SMITH_VIEW::center |
Definition at line 33 of file smith_math.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SMITH_GRID::GetChartView(), ToGamma(), ToScreen(), and SMITH_MATH::ZoomAboutPoint().
| wxRealPoint SMITH_VIEW::pan |
Definition at line 36 of file smith_math.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SMITH_GRID::GetChartView(), ToGamma(), and ToScreen().
| wxRect SMITH_VIEW::plotRect |
Definition at line 37 of file smith_math.h.
Referenced by SMITH_GRID::GetChartView(), SMITH_GRID::Plot(), and SMITH_TRACE::Plot().
| double SMITH_VIEW::radius = 0.0 |
Definition at line 34 of file smith_math.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SMITH_GRID::GetChartView(), SMITH_GRID::Plot(), SIM_PLOT_TAB::SmithPanBy(), ToGamma(), ToScreen(), and SMITH_MATH::ZoomAboutPoint().
| double SMITH_VIEW::zoom = 1.0 |
Definition at line 35 of file smith_math.h.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SMITH_GRID::GetChartView(), SMITH_GRID::Plot(), and SMITH_MATH::ZoomAboutPoint().