mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0032056: Coding Rules - remove package MMgt and other types deprecated since OCCT 7.2.0
Removed functionality deprecated since OCCT 7.1.0: - 0027834 built-in iterator in class SelectMgr_ViewerSelector; - 0027900 obsolete constructor of V3d_Viewer class; - 0027816 obsolete clipping plane setters V3d_View/PrsMgr_PresentableObject:SetClipPlanes(); - 0027860 obsolete transformation persistence methods from class PrsMgr_PresentableObject; - 0027756 obsolete methods Prs3d_Text::Draw(); - 0024393 obsolete enum Graphic3d_ZLayerSetting; - 0025180 obsolete method Graphic3d_Structure::Transform(). Removed functionality deprecated since OCCT 7.2.0: - 0028832 obsolete class MMgt_TShared; - 0026937 obsolete property Standard_Failure::Caught(); - 0028799 obsolete types defined within Quantity package; - 0028441 obsolete nested enum Image_PixMap::ImgFormat; - 0025695 obsolete method PrsMgr_PresentationManager::Unhighlight(); - 0028205 obsolete class MeshVS_ColorHasher; - 0027958 obsolete methods from Prs3d_DatumAspect class; - 0025695 obsolete class Graphic3d_HighlightStyle; - 0027954 obsolete BRepOffsetAPI_MakeOffsetShape,BRepOffsetAPI_MakeThickSolid constructors.
This commit is contained in:
@@ -4993,14 +4993,18 @@ static int VDisplay2 (Draw_Interpretor& theDI,
|
||||
}
|
||||
}
|
||||
|
||||
const gp_Pnt aPnt (aX.RealValue(), aY.RealValue(), aZ.RealValue());
|
||||
if (aTrsfPers->IsZoomOrRotate())
|
||||
{
|
||||
aTrsfPers->SetAnchorPoint (aPnt);
|
||||
aTrsfPers->SetAnchorPoint (gp_Pnt (aX.RealValue(), aY.RealValue(), aZ.RealValue()));
|
||||
}
|
||||
else if (aTrsfPers->IsTrihedronOr2d())
|
||||
{
|
||||
aTrsfPers = Graphic3d_TransformPers::FromDeprecatedParams (aTrsfPers->Mode(), aPnt);
|
||||
Standard_Integer aCorner = Aspect_TOTP_CENTER;
|
||||
if (aX.RealValue() > 0.0) { aCorner |= Aspect_TOTP_RIGHT; }
|
||||
else if (aX.RealValue() < 0.0) { aCorner |= Aspect_TOTP_LEFT; }
|
||||
if (aY.RealValue() > 0.0) { aCorner |= Aspect_TOTP_TOP; }
|
||||
else if (aY.RealValue() < 0.0) { aCorner |= Aspect_TOTP_BOTTOM; }
|
||||
aTrsfPers = new Graphic3d_TransformPers (aTrsfPers->Mode(), Aspect_TypeOfTriedronPosition (aCorner), Graphic3d_Vec2i (aZ.IntegerValue()));
|
||||
}
|
||||
}
|
||||
else if (aNameCase == "-layer"
|
||||
|
@@ -2729,7 +2729,12 @@ static int VDrawText (Draw_Interpretor& theDI,
|
||||
}
|
||||
}
|
||||
|
||||
aTrsfPers = Graphic3d_TransformPers::FromDeprecatedParams (Graphic3d_TMF_2d, gp_Pnt (aX.IntegerValue(), aY.IntegerValue(), aZ.IntegerValue()));
|
||||
Standard_Integer aCorner = Aspect_TOTP_CENTER;
|
||||
if (aX.IntegerValue() > 0.0) { aCorner |= Aspect_TOTP_RIGHT; }
|
||||
else if (aX.IntegerValue() < 0.0) { aCorner |= Aspect_TOTP_LEFT; }
|
||||
if (aY.IntegerValue() > 0.0) { aCorner |= Aspect_TOTP_TOP; }
|
||||
else if (aY.IntegerValue() < 0.0) { aCorner |= Aspect_TOTP_BOTTOM; }
|
||||
aTrsfPers = new Graphic3d_TransformPers (aTrsfPers->Mode(), Aspect_TypeOfTriedronPosition (aCorner), Graphic3d_Vec2i (aZ.IntegerValue()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user