VToolRotation::SetFactor.
--HG-- branch : feature
This commit is contained in:
parent
35c1267672
commit
18d3a297cd
|
@ -419,6 +419,29 @@ void VToolRotation::FullUpdateFromFile()
|
||||||
SetVisualization();
|
SetVisualization();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VToolRotation::SetFactor(qreal factor)
|
||||||
|
{
|
||||||
|
VDrawTool::SetFactor(factor);
|
||||||
|
QMapIterator<quint32, VAbstractSimple *> i(rObjects);
|
||||||
|
while (i.hasNext())
|
||||||
|
{
|
||||||
|
i.next();
|
||||||
|
if (i.value()->GetType() == GOType::Point)
|
||||||
|
{
|
||||||
|
VSimplePoint *item = qobject_cast<VSimplePoint *>(i.value());
|
||||||
|
SCASSERT(item != nullptr);
|
||||||
|
item->RefreshGeometry(*VAbstractTool::data.GeometricObject<VPointF>(i.key()));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
VSimpleCurve *item = qobject_cast<VSimpleCurve *>(i.value());
|
||||||
|
SCASSERT(item != nullptr);
|
||||||
|
item->RefreshGeometry(VAbstractTool::data.GeometricObject<VAbstractCurve>(i.key()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VToolRotation::AllowHover(bool enabled)
|
void VToolRotation::AllowHover(bool enabled)
|
||||||
{
|
{
|
||||||
|
|
|
@ -78,6 +78,7 @@ public:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void FullUpdateFromFile() Q_DECL_OVERRIDE;
|
virtual void FullUpdateFromFile() Q_DECL_OVERRIDE;
|
||||||
|
virtual void SetFactor(qreal factor) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
virtual void AllowHover(bool enabled) Q_DECL_OVERRIDE;
|
virtual void AllowHover(bool enabled) Q_DECL_OVERRIDE;
|
||||||
virtual void AllowSelecting(bool enabled) Q_DECL_OVERRIDE;
|
virtual void AllowSelecting(bool enabled) Q_DECL_OVERRIDE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user