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

Method pixelPosition

qcustomplot/qcustomplot.cpp:11355–11372  ·  view source on GitHub ↗

! Returns the final absolute pixel position of the QCPItemAnchor on the QCustomPlot surface. The pixel information is internally retrieved via QCPAbstractItem::anchorPixelPosition of the parent item, QCPItemAnchor is just an intermediary. */

Source from the content-addressed store, hash-verified

11353 parent item, QCPItemAnchor is just an intermediary.
11354*/
11355QPointF QCPItemAnchor::pixelPosition() const
11356{
11357 if (mParentItem)
11358 {
11359 if (mAnchorId > -1)
11360 {
11361 return mParentItem->anchorPixelPosition(mAnchorId);
11362 } else
11363 {
11364 qDebug() << Q_FUNC_INFO << "no valid anchor id set:" << mAnchorId;
11365 return QPointF();
11366 }
11367 } else
11368 {
11369 qDebug() << Q_FUNC_INFO << "no parent item set";
11370 return QPointF();
11371 }
11372}
11373
11374/*! \internal
11375

Callers 5

setPixelPositionMethod · 0.80
selectTestMethod · 0.80
drawMethod · 0.80
anchorPixelPositionMethod · 0.80
getFinalRectMethod · 0.80

Calls 3

anchorPixelPositionMethod · 0.80
dataMethod · 0.80
coordToPixelMethod · 0.80

Tested by

no test coverage detected