MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / selectTest

Method selectTest

qcustomplot/qcustomplot.cpp:1475–1481  ·  view source on GitHub ↗

! This function is used to decide whether a click hits a layerable object or not. \a pos is a point in pixel coordinates on the QCustomPlot surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn't be determined, -1.0 is returned. Further, if \a onlySelectable is true and the object is not selectabl

Source from the content-addressed store, hash-verified

1473 QCPAbstractPlottable1D::selectTestRect
1474*/
1475double QCPLayerable::selectTest(const QPointF &pos, bool onlySelectable, QVariant *details) const
1476{
1477 Q_UNUSED(pos)
1478 Q_UNUSED(onlySelectable)
1479 Q_UNUSED(details)
1480 return -1.0;
1481}
1482
1483/*! \internal
1484

Callers 4

foreachFunction · 0.45
layoutElementAtMethod · 0.45
axisRectAtMethod · 0.45
layerableListAtMethod · 0.45

Calls 15

containsMethod · 0.80
realVisibilityMethod · 0.80
atMethod · 0.80
axisRectMethod · 0.80
dataMethod · 0.80
constEndMethod · 0.80
constBeginMethod · 0.80
distanceSquaredToLineMethod · 0.80
keyRangeMethod · 0.80
valueRangeMethod · 0.80
pixelPositionMethod · 0.80

Tested by

no test coverage detected