Cppcheck.
--HG-- branch : feature
This commit is contained in:
parent
29c6dd0057
commit
24245bf759
|
@ -229,7 +229,7 @@ QVector<QPointF> VEquidistant::CorrectEquidistantPoints(const QVector<QPointF> &
|
||||||
}
|
}
|
||||||
|
|
||||||
QPainterPath VEquidistant::Equidistant(QVector<QPointF> points, const Detail::Equidistant &eqv,
|
QPainterPath VEquidistant::Equidistant(QVector<QPointF> points, const Detail::Equidistant &eqv,
|
||||||
const qreal &width) const
|
const qreal &width)
|
||||||
{
|
{
|
||||||
QPainterPath ekv;
|
QPainterPath ekv;
|
||||||
QVector<QPointF> ekvPoints;
|
QVector<QPointF> ekvPoints;
|
||||||
|
@ -364,7 +364,7 @@ QVector<QPointF> VEquidistant::GetReversePoint(const QVector<QPointF> &points)
|
||||||
return reversePoints;
|
return reversePoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
QVector<QPointF> VEquidistant::EkvPoint(const QLineF &line1, const QLineF &line2, const qreal &width) const
|
QVector<QPointF> VEquidistant::EkvPoint(const QLineF &line1, const QLineF &line2, const qreal &width)
|
||||||
{
|
{
|
||||||
Q_ASSERT(width > 0);
|
Q_ASSERT(width > 0);
|
||||||
QVector<QPointF> points;
|
QVector<QPointF> points;
|
||||||
|
@ -413,7 +413,7 @@ QVector<QPointF> VEquidistant::EkvPoint(const QLineF &line1, const QLineF &line2
|
||||||
return points;
|
return points;
|
||||||
}
|
}
|
||||||
|
|
||||||
QLineF VEquidistant::ParallelLine(const QLineF &line, qreal width) const
|
QLineF VEquidistant::ParallelLine(const QLineF &line, qreal width)
|
||||||
{
|
{
|
||||||
Q_ASSERT(width > 0);
|
Q_ASSERT(width > 0);
|
||||||
QLineF paralel = QLineF (SingleParallelPoint(line, 90, width), SingleParallelPoint(QLineF(line.p2(), line.p1()),
|
QLineF paralel = QLineF (SingleParallelPoint(line, 90, width), SingleParallelPoint(QLineF(line.p2(), line.p1()),
|
||||||
|
|
|
@ -74,7 +74,7 @@ private:
|
||||||
* @param width width of equidistant.
|
* @param width width of equidistant.
|
||||||
* @return return painter path of equidistant.
|
* @return return painter path of equidistant.
|
||||||
*/
|
*/
|
||||||
QPainterPath Equidistant(QVector<QPointF> points, const Detail::Equidistant &eqv, const qreal &width) const;
|
static QPainterPath Equidistant(QVector<QPointF> points, const Detail::Equidistant &eqv, const qreal &width);
|
||||||
/**
|
/**
|
||||||
* @brief CheckLoops seek and delete loops in equidistant.
|
* @brief CheckLoops seek and delete loops in equidistant.
|
||||||
* @param points vector of points of equidistant.
|
* @param points vector of points of equidistant.
|
||||||
|
@ -94,14 +94,14 @@ private:
|
||||||
* @param width width of equidistant.
|
* @param width width of equidistant.
|
||||||
* @return vector of points.
|
* @return vector of points.
|
||||||
*/
|
*/
|
||||||
QVector<QPointF> EkvPoint(const QLineF &line1, const QLineF &line2, const qreal &width) const;
|
static QVector<QPointF> EkvPoint(const QLineF &line1, const QLineF &line2, const qreal &width);
|
||||||
/**
|
/**
|
||||||
* @brief ParallelLine create parallel line.
|
* @brief ParallelLine create parallel line.
|
||||||
* @param line starting line.
|
* @param line starting line.
|
||||||
* @param width width to parallel line.
|
* @param width width to parallel line.
|
||||||
* @return parallel line.
|
* @return parallel line.
|
||||||
*/
|
*/
|
||||||
QLineF ParallelLine(const QLineF &line, qreal width ) const;
|
static QLineF ParallelLine(const QLineF &line, qreal width );
|
||||||
/**
|
/**
|
||||||
* @brief SingleParallelPoint return point of parallel line.
|
* @brief SingleParallelPoint return point of parallel line.
|
||||||
* @param line starting line.
|
* @param line starting line.
|
||||||
|
|
|
@ -119,8 +119,8 @@ void VToolCutSplinePath::Create(const quint32 _id, const QString &pointName, con
|
||||||
quint32 splPath1id = id + 1;
|
quint32 splPath1id = id + 1;
|
||||||
quint32 splPath2id = id + 2;
|
quint32 splPath2id = id + 2;
|
||||||
|
|
||||||
const VSplinePoint splP1 = splPath->at(p1);
|
VSplinePoint splP1 = splPath->at(p1);
|
||||||
const VSplinePoint splP2 = splPath->at(p2);
|
VSplinePoint splP2 = splPath->at(p2);
|
||||||
const VSpline spl1 = VSpline(splP1.P(), spl1p2, spl1p3, *p, splPath->getKCurve());
|
const VSpline spl1 = VSpline(splP1.P(), spl1p2, spl1p3, *p, splPath->getKCurve());
|
||||||
const VSpline spl2 = VSpline(*p, spl2p2, spl2p3, splP2.P(), splPath->getKCurve());
|
const VSpline spl2 = VSpline(*p, spl2p2, spl2p3, splP2.P(), splPath->getKCurve());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user