Refactoring.

--HG--
branch : develop
This commit is contained in:
dismine 2014-06-26 13:48:31 +03:00
parent 280b7c9584
commit a980381cb4
2 changed files with 0 additions and 26 deletions

View file

@ -128,31 +128,6 @@ QPointF VArc::GetP2 () const
return centerP2.p2();
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief GetPath return QPainterPath for this arc.
* @return path.
*/
QPainterPath VArc::GetPath() const
{
QPainterPath path;
QVector<QPointF> points = GetPoints();
if (points.count() >= 2)
{
for (qint32 i = 0; i < points.count()-1; ++i)
{
path.moveTo(points.at(i));
path.lineTo(points.at(i+1));
}
}
else
{
qDebug()<<"points.count() < 2"<<Q_FUNC_INFO;
}
return path;
}
//---------------------------------------------------------------------------------------------------------------------
/**
* @brief AngleArc calculate arc angle.

View file

@ -57,7 +57,6 @@ public:
VPointF GetCenter () const;
QPointF GetP1() const;
QPointF GetP2 () const;
QPainterPath GetPath() const;
qreal AngleArc() const;
QVector<QPointF> GetPoints () const;
QPointF CutArc (const qreal &length, VArc &arc1, VArc &arc2) const;