Code style.
This commit is contained in:
parent
92c9160bea
commit
1ba202e550
|
@ -43,7 +43,7 @@
|
||||||
VisLine::VisLine(const VContainer *data, QGraphicsItem *parent)
|
VisLine::VisLine(const VContainer *data, QGraphicsItem *parent)
|
||||||
:Visualization(data), VScaledLine(parent)
|
:Visualization(data), VScaledLine(parent)
|
||||||
{
|
{
|
||||||
this->setZValue(1);// Show on top real tool
|
this->setZValue(1);// Show on top of a real tool
|
||||||
InitPen();
|
InitPen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,7 @@
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
VisToolHeight::VisToolHeight(const VContainer *data, QGraphicsItem *parent)
|
VisToolHeight::VisToolHeight(const VContainer *data, QGraphicsItem *parent)
|
||||||
: VisLine(data, parent), lineP1Id(NULL_ID), lineP2Id(NULL_ID), point(nullptr), base_point(nullptr), lineP1(nullptr),
|
: VisLine(data, parent)
|
||||||
lineP2(nullptr), line(nullptr), line_intersection(nullptr)
|
|
||||||
{
|
{
|
||||||
base_point = InitPoint(supportColor, this);
|
base_point = InitPoint(supportColor, this);
|
||||||
lineP1 = InitPoint(supportColor, this);
|
lineP1 = InitPoint(supportColor, this);
|
||||||
|
|
|
@ -56,14 +56,14 @@ public:
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VisToolHeight)
|
Q_DISABLE_COPY(VisToolHeight)
|
||||||
//base point in parent class
|
//base point in parent class
|
||||||
quint32 lineP1Id;//first point of line
|
quint32 lineP1Id{NULL_ID};//first point of line
|
||||||
quint32 lineP2Id;//second point of line
|
quint32 lineP2Id{NULL_ID};//second point of line
|
||||||
VScaledEllipse *point;
|
VScaledEllipse *point{nullptr};
|
||||||
VScaledEllipse *base_point;
|
VScaledEllipse *base_point{nullptr};
|
||||||
VScaledEllipse *lineP1;
|
VScaledEllipse *lineP1{nullptr};
|
||||||
VScaledEllipse *lineP2;
|
VScaledEllipse *lineP2{nullptr};
|
||||||
VScaledLine *line;
|
VScaledLine *line{nullptr};
|
||||||
VScaledLine *line_intersection;
|
VScaledLine *line_intersection{nullptr};
|
||||||
void ShowIntersection(const QLineF &height_line, const QLineF &base_line);
|
void ShowIntersection(const QLineF &height_line, const QLineF &base_line);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user