Explicitly set visualization mode to Show even if not used.
This commit is contained in:
parent
b5ec1e61b8
commit
e608e13fa1
src/libs/vtools/tools/drawTools
operation
toolpoint
tooldoublepoint
toolsinglepoint
toolcut
toollinepoint
vtoolalongline.cppvtoolbisector.cppvtoolcurveintersectaxis.cppvtoolheight.cppvtoollineintersectaxis.cppvtoolnormal.cppvtoolshoulderpoint.cpp
vtoollineintersect.cppvtoolpointfromarcandtangent.cppvtoolpointfromcircleandtangent.cppvtoolpointofcontact.cppvtoolpointofintersection.cppvtoolpointofintersectionarcs.cppvtoolpointofintersectioncircles.cppvtoolpointofintersectioncurves.cppvtooltriangle.cpp
|
@ -212,6 +212,7 @@ void VToolFlippingByAxis::SetVisualization()
|
|||
visual->SetObjects(SourceToObjects(source));
|
||||
visual->SetOriginPointId(m_originPointId);
|
||||
visual->SetAxisType(m_axisType);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -197,6 +197,7 @@ void VToolFlippingByLine::SetVisualization()
|
|||
visual->SetObjects(SourceToObjects(source));
|
||||
visual->SetFirstLinePointId(m_firstLinePointId);
|
||||
visual->SetSecondLinePointId(m_secondLinePointId);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -470,6 +470,7 @@ void VToolMove::SetVisualization()
|
|||
visual->SetRotationAngle(trVars->FormulaToUser(formulaRotationAngle, osSeparator));
|
||||
visual->SetLength(trVars->FormulaToUser(formulaLength, osSeparator));
|
||||
visual->SetRotationOriginPointId(origPointId);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -348,6 +348,7 @@ void VToolRotation::SetVisualization()
|
|||
visual->SetOriginPointId(origPointId);
|
||||
visual->SetAngle(VAbstractApplication::VApp()->TrVars()
|
||||
->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -332,6 +332,7 @@ void VToolTrueDarts::SetVisualization()
|
|||
visual->SetD1PointId(dartP1Id);
|
||||
visual->SetD2PointId(dartP2Id);
|
||||
visual->SetD3PointId(dartP3Id);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -276,7 +276,7 @@ void VToolCutArc::SetVisualization()
|
|||
|
||||
const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId);
|
||||
visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle()));
|
||||
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -275,7 +275,7 @@ void VToolCutSpline::SetVisualization()
|
|||
|
||||
const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId);
|
||||
visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle()));
|
||||
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -369,7 +369,7 @@ void VToolCutSplinePath::SetVisualization()
|
|||
|
||||
const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId);
|
||||
visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle()));
|
||||
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,6 +146,7 @@ void VToolAlongLine::SetVisualization()
|
|||
visual->SetLength(VAbstractApplication::VApp()->TrVars()
|
||||
->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
|
||||
visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -307,6 +307,7 @@ void VToolBisector::SetVisualization()
|
|||
visual->SetLength(VAbstractApplication::VApp()->TrVars()
|
||||
->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
|
||||
visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -327,6 +327,7 @@ void VToolCurveIntersectAxis::SetVisualization()
|
|||
visual->SetAngle(VAbstractApplication::VApp()->TrVars()
|
||||
->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
|
||||
visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -264,6 +264,7 @@ void VToolHeight::SetVisualization()
|
|||
visual->SetLineP1Id(p1LineId);
|
||||
visual->SetLineP2Id(p2LineId);
|
||||
visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -324,6 +324,7 @@ void VToolLineIntersectAxis::SetVisualization()
|
|||
visual->SetAngle(VAbstractApplication::VApp()->TrVars()
|
||||
->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
|
||||
visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -277,6 +277,7 @@ void VToolNormal::SetVisualization()
|
|||
->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
|
||||
visual->SetAngle(angle);
|
||||
visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -327,6 +327,7 @@ void VToolShoulderPoint::SetVisualization()
|
|||
visual->SetLength(VAbstractApplication::VApp()->TrVars()
|
||||
->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
|
||||
visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -300,6 +300,7 @@ void VToolLineIntersect::SetVisualization()
|
|||
visual->SetLine1P2Id(p2Line1);
|
||||
visual->SetLine2P1Id(p1Line2);
|
||||
visual->SetLine2P2Id(p2Line2);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -337,6 +337,7 @@ void VToolPointFromArcAndTangent::SetVisualization()
|
|||
visual->SetPointId(tangentPointId);
|
||||
visual->SetArcId(arcId);
|
||||
visual->SetCrossPoint(crossPoint);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -335,6 +335,7 @@ void VToolPointFromCircleAndTangent::SetVisualization()
|
|||
visual->SetCenterId(circleCenterId);
|
||||
visual->SetCRadius(trVars->FormulaToUser(circleRadius, osSeparator));
|
||||
visual->SetCrossPoint(crossPoint);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -356,6 +356,7 @@ void VToolPointOfContact::SetVisualization()
|
|||
visual->SetRadiusId(center);
|
||||
visual->SetRadius(VAbstractApplication::VApp()->TrVars()
|
||||
->FormulaToUser(arcRadius, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -242,6 +242,7 @@ void VToolPointOfIntersection::SetVisualization()
|
|||
|
||||
visual->SetPoint1Id(firstPointId);
|
||||
visual->SetPoint2Id(secondPointId);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -357,6 +357,7 @@ void VToolPointOfIntersectionArcs::SetVisualization()
|
|||
visual->SetArc1Id(firstArcId);
|
||||
visual->SetArc2Id(secondArcId);
|
||||
visual->SetCrossPoint(crossPoint);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -379,6 +379,7 @@ void VToolPointOfIntersectionCircles::SetVisualization()
|
|||
visual->SetC1Radius(trVars->FormulaToUser(firstCircleRadius, osSeparator));
|
||||
visual->SetC2Radius(trVars->FormulaToUser(secondCircleRadius, osSeparator));
|
||||
visual->SetCrossPoint(crossPoint);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -473,6 +473,7 @@ void VToolPointOfIntersectionCurves::SetVisualization()
|
|||
visual->SetCurve2Id(secondCurveId);
|
||||
visual->SetVCrossPoint(vCrossPoint);
|
||||
visual->SetHCrossPoint(hCrossPoint);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -345,6 +345,7 @@ void VToolTriangle::SetVisualization()
|
|||
visual->SetObject2Id(axisP2Id);
|
||||
visual->SetHypotenuseP1Id(firstPointId);
|
||||
visual->SetHypotenuseP2Id(secondPointId);
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -429,6 +429,7 @@ void VToolLine::SetVisualization()
|
|||
visual->SetPoint1Id(firstPoint);
|
||||
visual->SetPoint2Id(secondPoint);
|
||||
visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
|
||||
visual->SetMode(Mode::Show);
|
||||
visual->RefreshGeometry();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user