Refactoring.
--HG-- branch : develop
This commit is contained in:
parent
280b7c9584
commit
a980381cb4
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user