Explicitly set visualization mode to Show even if not used.

This commit is contained in:
Roman Telezhynskyi 2022-08-24 19:58:58 +03:00
parent b5ec1e61b8
commit e608e13fa1
25 changed files with 25 additions and 3 deletions

View File

@ -212,6 +212,7 @@ void VToolFlippingByAxis::SetVisualization()
visual->SetObjects(SourceToObjects(source)); visual->SetObjects(SourceToObjects(source));
visual->SetOriginPointId(m_originPointId); visual->SetOriginPointId(m_originPointId);
visual->SetAxisType(m_axisType); visual->SetAxisType(m_axisType);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -197,6 +197,7 @@ void VToolFlippingByLine::SetVisualization()
visual->SetObjects(SourceToObjects(source)); visual->SetObjects(SourceToObjects(source));
visual->SetFirstLinePointId(m_firstLinePointId); visual->SetFirstLinePointId(m_firstLinePointId);
visual->SetSecondLinePointId(m_secondLinePointId); visual->SetSecondLinePointId(m_secondLinePointId);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -470,6 +470,7 @@ void VToolMove::SetVisualization()
visual->SetRotationAngle(trVars->FormulaToUser(formulaRotationAngle, osSeparator)); visual->SetRotationAngle(trVars->FormulaToUser(formulaRotationAngle, osSeparator));
visual->SetLength(trVars->FormulaToUser(formulaLength, osSeparator)); visual->SetLength(trVars->FormulaToUser(formulaLength, osSeparator));
visual->SetRotationOriginPointId(origPointId); visual->SetRotationOriginPointId(origPointId);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -348,6 +348,7 @@ void VToolRotation::SetVisualization()
visual->SetOriginPointId(origPointId); visual->SetOriginPointId(origPointId);
visual->SetAngle(VAbstractApplication::VApp()->TrVars() visual->SetAngle(VAbstractApplication::VApp()->TrVars()
->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator())); ->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -332,6 +332,7 @@ void VToolTrueDarts::SetVisualization()
visual->SetD1PointId(dartP1Id); visual->SetD1PointId(dartP1Id);
visual->SetD2PointId(dartP2Id); visual->SetD2PointId(dartP2Id);
visual->SetD3PointId(dartP3Id); visual->SetD3PointId(dartP3Id);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -276,7 +276,7 @@ void VToolCutArc::SetVisualization()
const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId); const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId);
visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle())); visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle()));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -275,7 +275,7 @@ void VToolCutSpline::SetVisualization()
const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId); const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId);
visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle())); visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle()));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -369,7 +369,7 @@ void VToolCutSplinePath::SetVisualization()
const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId); const QSharedPointer<VAbstractCurve> curve = VAbstractTool::data.GeometricObject<VAbstractCurve>(baseCurveId);
visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle())); visual->SetLineStyle(LineStyleToPenStyle(curve->GetPenStyle()));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -146,6 +146,7 @@ void VToolAlongLine::SetVisualization()
visual->SetLength(VAbstractApplication::VApp()->TrVars() visual->SetLength(VAbstractApplication::VApp()->TrVars()
->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator())); ->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
visual->SetLineStyle(LineStyleToPenStyle(m_lineType)); visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -307,6 +307,7 @@ void VToolBisector::SetVisualization()
visual->SetLength(VAbstractApplication::VApp()->TrVars() visual->SetLength(VAbstractApplication::VApp()->TrVars()
->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator())); ->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
visual->SetLineStyle(LineStyleToPenStyle(m_lineType)); visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -327,6 +327,7 @@ void VToolCurveIntersectAxis::SetVisualization()
visual->SetAngle(VAbstractApplication::VApp()->TrVars() visual->SetAngle(VAbstractApplication::VApp()->TrVars()
->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator())); ->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
visual->SetLineStyle(LineStyleToPenStyle(m_lineType)); visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -264,6 +264,7 @@ void VToolHeight::SetVisualization()
visual->SetLineP1Id(p1LineId); visual->SetLineP1Id(p1LineId);
visual->SetLineP2Id(p2LineId); visual->SetLineP2Id(p2LineId);
visual->SetLineStyle(LineStyleToPenStyle(m_lineType)); visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -324,6 +324,7 @@ void VToolLineIntersectAxis::SetVisualization()
visual->SetAngle(VAbstractApplication::VApp()->TrVars() visual->SetAngle(VAbstractApplication::VApp()->TrVars()
->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator())); ->FormulaToUser(formulaAngle, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
visual->SetLineStyle(LineStyleToPenStyle(m_lineType)); visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -277,6 +277,7 @@ void VToolNormal::SetVisualization()
->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator())); ->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
visual->SetAngle(angle); visual->SetAngle(angle);
visual->SetLineStyle(LineStyleToPenStyle(m_lineType)); visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -327,6 +327,7 @@ void VToolShoulderPoint::SetVisualization()
visual->SetLength(VAbstractApplication::VApp()->TrVars() visual->SetLength(VAbstractApplication::VApp()->TrVars()
->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator())); ->FormulaToUser(formulaLength, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
visual->SetLineStyle(LineStyleToPenStyle(m_lineType)); visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -300,6 +300,7 @@ void VToolLineIntersect::SetVisualization()
visual->SetLine1P2Id(p2Line1); visual->SetLine1P2Id(p2Line1);
visual->SetLine2P1Id(p1Line2); visual->SetLine2P1Id(p1Line2);
visual->SetLine2P2Id(p2Line2); visual->SetLine2P2Id(p2Line2);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -337,6 +337,7 @@ void VToolPointFromArcAndTangent::SetVisualization()
visual->SetPointId(tangentPointId); visual->SetPointId(tangentPointId);
visual->SetArcId(arcId); visual->SetArcId(arcId);
visual->SetCrossPoint(crossPoint); visual->SetCrossPoint(crossPoint);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -335,6 +335,7 @@ void VToolPointFromCircleAndTangent::SetVisualization()
visual->SetCenterId(circleCenterId); visual->SetCenterId(circleCenterId);
visual->SetCRadius(trVars->FormulaToUser(circleRadius, osSeparator)); visual->SetCRadius(trVars->FormulaToUser(circleRadius, osSeparator));
visual->SetCrossPoint(crossPoint); visual->SetCrossPoint(crossPoint);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -356,6 +356,7 @@ void VToolPointOfContact::SetVisualization()
visual->SetRadiusId(center); visual->SetRadiusId(center);
visual->SetRadius(VAbstractApplication::VApp()->TrVars() visual->SetRadius(VAbstractApplication::VApp()->TrVars()
->FormulaToUser(arcRadius, VAbstractApplication::VApp()->Settings()->GetOsSeparator())); ->FormulaToUser(arcRadius, VAbstractApplication::VApp()->Settings()->GetOsSeparator()));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -242,6 +242,7 @@ void VToolPointOfIntersection::SetVisualization()
visual->SetPoint1Id(firstPointId); visual->SetPoint1Id(firstPointId);
visual->SetPoint2Id(secondPointId); visual->SetPoint2Id(secondPointId);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -357,6 +357,7 @@ void VToolPointOfIntersectionArcs::SetVisualization()
visual->SetArc1Id(firstArcId); visual->SetArc1Id(firstArcId);
visual->SetArc2Id(secondArcId); visual->SetArc2Id(secondArcId);
visual->SetCrossPoint(crossPoint); visual->SetCrossPoint(crossPoint);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -379,6 +379,7 @@ void VToolPointOfIntersectionCircles::SetVisualization()
visual->SetC1Radius(trVars->FormulaToUser(firstCircleRadius, osSeparator)); visual->SetC1Radius(trVars->FormulaToUser(firstCircleRadius, osSeparator));
visual->SetC2Radius(trVars->FormulaToUser(secondCircleRadius, osSeparator)); visual->SetC2Radius(trVars->FormulaToUser(secondCircleRadius, osSeparator));
visual->SetCrossPoint(crossPoint); visual->SetCrossPoint(crossPoint);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -473,6 +473,7 @@ void VToolPointOfIntersectionCurves::SetVisualization()
visual->SetCurve2Id(secondCurveId); visual->SetCurve2Id(secondCurveId);
visual->SetVCrossPoint(vCrossPoint); visual->SetVCrossPoint(vCrossPoint);
visual->SetHCrossPoint(hCrossPoint); visual->SetHCrossPoint(hCrossPoint);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -345,6 +345,7 @@ void VToolTriangle::SetVisualization()
visual->SetObject2Id(axisP2Id); visual->SetObject2Id(axisP2Id);
visual->SetHypotenuseP1Id(firstPointId); visual->SetHypotenuseP1Id(firstPointId);
visual->SetHypotenuseP2Id(secondPointId); visual->SetHypotenuseP2Id(secondPointId);
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }

View File

@ -429,6 +429,7 @@ void VToolLine::SetVisualization()
visual->SetPoint1Id(firstPoint); visual->SetPoint1Id(firstPoint);
visual->SetPoint2Id(secondPoint); visual->SetPoint2Id(secondPoint);
visual->SetLineStyle(LineStyleToPenStyle(m_lineType)); visual->SetLineStyle(LineStyleToPenStyle(m_lineType));
visual->SetMode(Mode::Show);
visual->RefreshGeometry(); visual->RefreshGeometry();
} }
} }