Improved visualization for tool Cubic Bezier.
--HG-- branch : feature
This commit is contained in:
parent
f61bd5f42a
commit
ca020c4c7f
|
@ -62,12 +62,11 @@ void VisToolCubicBezier::RefreshGeometry()
|
||||||
if (object1Id > NULL_ID)
|
if (object1Id > NULL_ID)
|
||||||
{
|
{
|
||||||
const auto first = Visualization::data->GeometricObject<VPointF>(object1Id);
|
const auto first = Visualization::data->GeometricObject<VPointF>(object1Id);
|
||||||
DrawPoint(point1, first->toQPointF(), supportColor);
|
DrawPoint(point1, first->toQPointF(), Qt::DashLine);
|
||||||
|
|
||||||
if (object2Id <= NULL_ID)
|
if (object2Id <= NULL_ID)
|
||||||
{
|
{
|
||||||
const QLineF line = QLineF(first->toQPointF(), Visualization::scenePos);
|
DrawLine(helpLine1, QLineF(first->toQPointF(), Visualization::scenePos), mainColor, Qt::DashLine);
|
||||||
DrawLine(helpLine1, line, mainColor, Qt::DashLine);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -90,6 +89,7 @@ void VisToolCubicBezier::RefreshGeometry()
|
||||||
{
|
{
|
||||||
VCubicBezier spline(*first, *second, *third, VPointF(Visualization::scenePos));
|
VCubicBezier spline(*first, *second, *third, VPointF(Visualization::scenePos));
|
||||||
DrawPath(this, spline.GetPath(PathDirection::Hide), mainColor, Qt::SolidLine, Qt::RoundCap);
|
DrawPath(this, spline.GetPath(PathDirection::Hide), mainColor, Qt::SolidLine, Qt::RoundCap);
|
||||||
|
DrawLine(helpLine2, QLineF(third->toQPointF(), Visualization::scenePos), mainColor, Qt::DashLine);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user