Show curve foot if only is selected.
--HG-- branch : feature
This commit is contained in:
parent
f6d3068d0f
commit
d2e5be50b4
|
@ -217,3 +217,12 @@ QPainterPath VAbstractSpline::ToolPath(PathDirection direction) const
|
||||||
path.setFillRule( Qt::WindingFill );
|
path.setFillRule( Qt::WindingFill );
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VAbstractSpline::ShowFoot(bool show)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < controlPoints.size(); ++i)
|
||||||
|
{
|
||||||
|
controlPoints.at(i)->setVisible(show);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -81,6 +81,7 @@ protected:
|
||||||
virtual void keyReleaseEvent(QKeyEvent * event);
|
virtual void keyReleaseEvent(QKeyEvent * event);
|
||||||
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event );
|
||||||
QPainterPath ToolPath(PathDirection direction = PathDirection::Hide) const;
|
QPainterPath ToolPath(PathDirection direction = PathDirection::Hide) const;
|
||||||
|
void ShowFoot(bool show);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VABSTRACTSPLINE_H
|
#endif // VABSTRACTSPLINE_H
|
||||||
|
|
|
@ -72,6 +72,8 @@ VToolSpline::VToolSpline(VPattern *doc, VContainer *data, quint32 id, const Sour
|
||||||
connect(this, &VToolSpline::setEnabledPoint, controlPoint2, &VControlPointSpline::setEnabledPoint);
|
connect(this, &VToolSpline::setEnabledPoint, controlPoint2, &VControlPointSpline::setEnabledPoint);
|
||||||
controlPoints.append(controlPoint2);
|
controlPoints.append(controlPoint2);
|
||||||
|
|
||||||
|
ShowFoot(false);
|
||||||
|
|
||||||
if (typeCreation == Source::FromGui)
|
if (typeCreation == Source::FromGui)
|
||||||
{
|
{
|
||||||
AddToFile();
|
AddToFile();
|
||||||
|
@ -242,6 +244,7 @@ void VToolSpline::ShowVisualization(bool show)
|
||||||
delete vis;
|
delete vis;
|
||||||
vis = nullptr;
|
vis = nullptr;
|
||||||
}
|
}
|
||||||
|
ShowFoot(show);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user