Show selected objects even before selecting origin point.
--HG-- branch : feature
This commit is contained in:
parent
19df01be2e
commit
fd39c19da0
|
@ -75,9 +75,11 @@ void VisToolRotation::RefreshGeometry()
|
|||
return;
|
||||
}
|
||||
|
||||
QSharedPointer<VPointF> origin;
|
||||
|
||||
if (object1Id != NULL_ID)
|
||||
{
|
||||
const QSharedPointer<VPointF> origin = Visualization::data->GeometricObject<VPointF>(object1Id);
|
||||
origin = Visualization::data->GeometricObject<VPointF>(object1Id);
|
||||
DrawPoint(point, *origin, supportColor2);
|
||||
|
||||
QLineF rLine;
|
||||
|
@ -105,6 +107,7 @@ void VisToolRotation::RefreshGeometry()
|
|||
|
||||
Visualization::toolTip = tr("Rotating angle = %1°, <b>Shift</b> - sticking angle, "
|
||||
"<b>Mouse click</b> - finish creation").arg(rLine.angle());
|
||||
}
|
||||
|
||||
int iPoint = -1;
|
||||
int iCurve = -1;
|
||||
|
@ -128,7 +131,11 @@ void VisToolRotation::RefreshGeometry()
|
|||
|
||||
++iPoint;
|
||||
point = GetPoint(iPoint);
|
||||
|
||||
if (object1Id != NULL_ID)
|
||||
{
|
||||
DrawPoint(point, p->Rotate(*origin, angle), supportColor);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GOType::Arc:
|
||||
|
@ -166,7 +173,6 @@ void VisToolRotation::RefreshGeometry()
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(Q_CC_GNU)
|
||||
#pragma GCC diagnostic pop
|
||||
|
@ -253,8 +259,11 @@ int VisToolRotation::AddCurve(const QPointF &origin, quint32 id, int i)
|
|||
|
||||
++i;
|
||||
path = GetCurve(i);
|
||||
if (object1Id != NULL_ID)
|
||||
{
|
||||
const Item rotated = curve->Rotate(origin, angle);
|
||||
DrawPath(path, rotated.GetPath(PathDirection::Hide), mainColor, Qt::SolidLine, Qt::RoundCap);
|
||||
}
|
||||
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user