mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +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:
@@ -70,17 +70,6 @@ public:
|
||||
const Standard_Real theAngle,
|
||||
const Standard_Real theLength);
|
||||
|
||||
//! Alias to another method Draw() for backward compatibility.
|
||||
Standard_DEPRECATED("Prs3d_Arrow::Draw() taking Graphic3d_Group should be used instead")
|
||||
static void Draw (const Handle(Prs3d_Presentation)& thePrs,
|
||||
const gp_Pnt& theLocation,
|
||||
const gp_Dir& theDirection,
|
||||
const Standard_Real theAngle,
|
||||
const Standard_Real theLength)
|
||||
{
|
||||
Draw (thePrs->CurrentGroup(), theLocation, theDirection, theAngle, theLength);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // _Prs3d_Arrow_HeaderFile
|
||||
|
@@ -67,38 +67,6 @@ Prs3d_DatumAspect::Prs3d_DatumAspect()
|
||||
myTextAspects[Prs3d_DatumParts_ZAxis] = new Prs3d_TextAspect();
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : SetDrawFirstAndSecondAxis
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void Prs3d_DatumAspect::SetDrawFirstAndSecondAxis (Standard_Boolean theToDraw)
|
||||
{
|
||||
if (theToDraw)
|
||||
{
|
||||
myAxes = ((myAxes & Prs3d_DatumAxes_ZAxis) != 0 ? Prs3d_DatumAxes_XYZAxes : Prs3d_DatumAxes_XYAxes);
|
||||
}
|
||||
else
|
||||
{
|
||||
myAxes = Prs3d_DatumAxes_ZAxis;
|
||||
}
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : SetDrawThirdAxis
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void Prs3d_DatumAspect::SetDrawThirdAxis (Standard_Boolean theToDraw)
|
||||
{
|
||||
if (theToDraw)
|
||||
{
|
||||
myAxes = ((myAxes & Prs3d_DatumAxes_XYAxes) != 0 ? Prs3d_DatumAxes_XYZAxes : Prs3d_DatumAxes_ZAxis);
|
||||
}
|
||||
else
|
||||
{
|
||||
myAxes = Prs3d_DatumAxes_XYAxes;
|
||||
}
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : DrawDatumPart
|
||||
// purpose :
|
||||
|
@@ -122,50 +122,6 @@ public:
|
||||
Standard_DEPRECATED("This method is deprecated - TextAspect() with axis parameter should be called instead")
|
||||
const Handle(Prs3d_TextAspect)& TextAspect() const { return myTextAspects[Prs3d_DatumParts_XAxis]; }
|
||||
|
||||
//! Returns the attributes for display of the first axis.
|
||||
Standard_DEPRECATED("This method is deprecated - LineAspect() should be called instead")
|
||||
const Handle(Prs3d_LineAspect)& FirstAxisAspect() const { return myLineAspects[Prs3d_DatumParts_XAxis]; }
|
||||
|
||||
//! Returns the attributes for display of the second axis.
|
||||
Standard_DEPRECATED("This method is deprecated - LineAspect() should be called instead")
|
||||
const Handle(Prs3d_LineAspect)& SecondAxisAspect() const { return myLineAspects[Prs3d_DatumParts_YAxis]; }
|
||||
|
||||
//! Returns the attributes for display of the third axis.
|
||||
Standard_DEPRECATED("This method is deprecated - LineAspect() should be called instead")
|
||||
const Handle(Prs3d_LineAspect)& ThirdAxisAspect() const { return myLineAspects[Prs3d_DatumParts_ZAxis]; }
|
||||
|
||||
//! Sets the DrawFirstAndSecondAxis attributes to active.
|
||||
Standard_DEPRECATED("This method is deprecated - SetDrawDatumAxes() should be called instead")
|
||||
Standard_EXPORT void SetDrawFirstAndSecondAxis (Standard_Boolean theToDraw);
|
||||
|
||||
//! Returns true if the first and second axes can be drawn.
|
||||
Standard_DEPRECATED("This method is deprecated - DatumAxes() should be called instead")
|
||||
Standard_Boolean DrawFirstAndSecondAxis() const
|
||||
{
|
||||
return (myAxes & Prs3d_DatumAxes_XAxis) != 0
|
||||
&& (myAxes & Prs3d_DatumAxes_YAxis) != 0;
|
||||
}
|
||||
|
||||
//! Sets the DrawThirdAxis attributes to active.
|
||||
Standard_DEPRECATED("This method is deprecated - SetDrawDatumAxes() should be called instead")
|
||||
Standard_EXPORT void SetDrawThirdAxis (Standard_Boolean theToDraw);
|
||||
|
||||
//! Returns true if the third axis can be drawn.
|
||||
Standard_DEPRECATED("This method is deprecated - DatumAxes() should be called instead")
|
||||
Standard_Boolean DrawThirdAxis() const { return (myAxes & Prs3d_DatumAxes_ZAxis) != 0; }
|
||||
|
||||
//! Returns the length of the displayed first axis.
|
||||
Standard_DEPRECATED("This method is deprecated - AxisLength() should be called instead")
|
||||
Standard_Real FirstAxisLength() const { return myAttributes[Prs3d_DatumAttribute_XAxisLength]; }
|
||||
|
||||
//! Returns the length of the displayed second axis.
|
||||
Standard_DEPRECATED("This method is deprecated - AxisLength() should be called instead")
|
||||
Standard_Real SecondAxisLength() const { return myAttributes[Prs3d_DatumAttribute_YAxisLength]; }
|
||||
|
||||
//! Returns the length of the displayed third axis.
|
||||
Standard_DEPRECATED("This method is deprecated - AxisLength() should be called instead")
|
||||
Standard_Real ThirdAxisLength() const { return myAttributes[Prs3d_DatumAttribute_ZAxisLength]; }
|
||||
|
||||
protected:
|
||||
|
||||
Handle(Prs3d_ShadingAspect) myShadedAspects[Prs3d_DatumParts_NB];
|
||||
|
@@ -1034,7 +1034,4 @@ protected:
|
||||
Standard_Boolean myHasOwnDimAngleDisplayUnits;
|
||||
};
|
||||
|
||||
Standard_DEPRECATED("Class name is deprecated - use Prs3d_Drawer instead")
|
||||
typedef Prs3d_Drawer Graphic3d_HighlightStyle;
|
||||
|
||||
#endif // _Prs3d_Drawer_HeaderFile
|
||||
|
@@ -56,39 +56,6 @@ public:
|
||||
const gp_Ax2& theOrientation,
|
||||
const Standard_Boolean theHasOwnAnchor = Standard_True);
|
||||
|
||||
public:
|
||||
|
||||
//! Alias to another method Draw() for backward compatibility.
|
||||
Standard_DEPRECATED("Prs3d_Text::Draw() taking Graphic3d_Group should be used instead")
|
||||
static void Draw (const Handle(Prs3d_Presentation)& thePrs,
|
||||
const Handle(Prs3d_Drawer)& theDrawer,
|
||||
const TCollection_ExtendedString& theText,
|
||||
const gp_Pnt& theAttachmentPoint)
|
||||
{
|
||||
Draw (thePrs->CurrentGroup(), theDrawer->TextAspect(), theText, theAttachmentPoint);
|
||||
}
|
||||
|
||||
//! Alias to another method Draw() for backward compatibility.
|
||||
Standard_DEPRECATED("Prs3d_Text::Draw() taking Graphic3d_Group should be used instead")
|
||||
static void Draw (const Handle(Prs3d_Presentation)& thePrs,
|
||||
const Handle(Prs3d_TextAspect)& theAspect,
|
||||
const TCollection_ExtendedString& theText,
|
||||
const gp_Ax2& theOrientation,
|
||||
const Standard_Boolean theHasOwnAnchor = Standard_True)
|
||||
{
|
||||
Draw (thePrs->CurrentGroup(), theAspect, theText, theOrientation, theHasOwnAnchor);
|
||||
}
|
||||
|
||||
//! Alias to another method Draw() for backward compatibility.
|
||||
Standard_DEPRECATED("Prs3d_Text::Draw() taking Graphic3d_Group should be used instead")
|
||||
static void Draw (const Handle(Prs3d_Presentation)& thePrs,
|
||||
const Handle(Prs3d_TextAspect)& theAspect,
|
||||
const TCollection_ExtendedString& theText,
|
||||
const gp_Pnt& theAttachmentPoint)
|
||||
{
|
||||
Draw (thePrs->CurrentGroup(), theAspect, theText, theAttachmentPoint);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // _Prs3d_Text_HeaderFile
|
||||
|
Reference in New Issue
Block a user