MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / forceMagnify

Method forceMagnify

gui/src/plotnavigator.cpp:384–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void PlotNavigator::forceMagnify(QwtAxisId axisId, double factor, QPointF cursorPos)
385{
386 for(Navigator *nav : *m_navigators) {
387 if((nav->magnifier->isXAxisEn() && nav->magnifier->getXAxis() == axisId) ||
388 (nav->magnifier->isYAxisEn() && nav->magnifier->getYAxis() == axisId)) {
389 nav->magnifier->zoom(factor, cursorPos);
390 }
391 }
392}
393
394void PlotNavigator::forceZoom(QwtAxisId axisId, const QRectF &rect)
395{

Callers

nothing calls this directly

Calls 5

isXAxisEnMethod · 0.45
getXAxisMethod · 0.45
isYAxisEnMethod · 0.45
getYAxisMethod · 0.45
zoomMethod · 0.45

Tested by

no test coverage detected