mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-19 04:02:09 +01:00
24 lines
405 B
C++
24 lines
405 B
C++
#include "path.h"
|
|
|
|
RectC Path::boundingRect() const
|
|
{
|
|
RectC ret;
|
|
|
|
if (size() < 2)
|
|
return ret;
|
|
|
|
for (int i = 0; i < size(); i++)
|
|
ret = ret.united(at(i).coordinates());
|
|
|
|
return ret;
|
|
}
|
|
|
|
#ifndef QT_NO_DEBUG
|
|
QDebug operator<<(QDebug dbg, const PathPoint &point)
|
|
{
|
|
dbg.nospace() << "PathPoint(" << point.distance() << ", "
|
|
<< point.coordinates() << ")";
|
|
return dbg.space();
|
|
}
|
|
#endif // QT_NO_DEBUG
|