mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0032161: Coding Rules - deprecate obsolete alias PrsMgr_PresentationManager3d
This commit is contained in:
@@ -86,9 +86,9 @@ IsHilighted(const Handle(PrsMgr_PresentationManager)& PM,
|
||||
//function : HilightWithColor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void StdSelect_BRepOwner::HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM,
|
||||
const Handle(Prs3d_Drawer)& theStyle,
|
||||
const Standard_Integer theMode)
|
||||
void StdSelect_BRepOwner::HilightWithColor (const Handle(PrsMgr_PresentationManager)& thePM,
|
||||
const Handle(Prs3d_Drawer)& theStyle,
|
||||
const Standard_Integer theMode)
|
||||
{
|
||||
if (!HasSelectable())
|
||||
{
|
||||
@@ -174,7 +174,7 @@ void StdSelect_BRepOwner::SetLocation(const TopLoc_Location& aLoc)
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void StdSelect_BRepOwner::UpdateHighlightTrsf (const Handle(V3d_Viewer)& theViewer,
|
||||
const Handle(PrsMgr_PresentationManager3d)& theManager,
|
||||
const Handle(PrsMgr_PresentationManager)& theManager,
|
||||
const Standard_Integer theDispMode)
|
||||
{
|
||||
if (myPrsSh.IsNull() && Selectable().IsNull())
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <SelectMgr_EntityOwner.hxx>
|
||||
#include <PrsMgr_PresentationManager3d.hxx>
|
||||
#include <PrsMgr_PresentationManager.hxx>
|
||||
#include <Quantity_NameOfColor.hxx>
|
||||
#include <Graphic3d_ZLayerId.hxx>
|
||||
class StdSelect_Shape;
|
||||
@@ -98,9 +98,9 @@ public:
|
||||
//! aMode is highlighted in the presentation manager aPM.
|
||||
Standard_EXPORT virtual Standard_Boolean IsHilighted (const Handle(PrsMgr_PresentationManager)& aPM, const Standard_Integer aMode = 0) const Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM,
|
||||
const Handle(Prs3d_Drawer)& theStyle,
|
||||
const Standard_Integer theMode = 0) Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager)& thePM,
|
||||
const Handle(Prs3d_Drawer)& theStyle,
|
||||
const Standard_Integer theMode) Standard_OVERRIDE;
|
||||
|
||||
//! Removes highlighting from the type of shape
|
||||
//! identified the selection mode aMode in the presentation manager aPM.
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
|
||||
//! Implements immediate application of location transformation of parent object to dynamic highlight structure
|
||||
Standard_EXPORT virtual void UpdateHighlightTrsf (const Handle(V3d_Viewer)& theViewer,
|
||||
const Handle(PrsMgr_PresentationManager3d)& theManager,
|
||||
const Handle(PrsMgr_PresentationManager)& theManager,
|
||||
const Standard_Integer theDispMode) Standard_OVERRIDE;
|
||||
|
||||
//! Dumps the content of me into the stream
|
||||
|
@@ -36,24 +36,31 @@ StdSelect_Shape::StdSelect_Shape (const TopoDS_Shape& theShape,
|
||||
}
|
||||
}
|
||||
|
||||
void StdSelect_Shape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*PM*/,
|
||||
const Handle(Prs3d_Presentation)& P,
|
||||
const Standard_Integer aMode)
|
||||
void StdSelect_Shape::Compute(const Handle(PrsMgr_PresentationManager)& ,
|
||||
const Handle(Prs3d_Presentation)& thePrs,
|
||||
const Standard_Integer theMode)
|
||||
{
|
||||
if(mysh.IsNull())
|
||||
if (mysh.IsNull())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Standard_Boolean CanShade = (mysh.ShapeType()<5 || mysh.ShapeType()==8);
|
||||
if(aMode==1){
|
||||
if(CanShade)
|
||||
StdPrs_ShadedShape::Add (P, mysh, myDrawer);
|
||||
Standard_Boolean canShade = (mysh.ShapeType() < 5 || mysh.ShapeType() == 8);
|
||||
if (theMode == 1)
|
||||
{
|
||||
if (canShade)
|
||||
{
|
||||
StdPrs_ShadedShape::Add (thePrs, mysh, myDrawer);
|
||||
}
|
||||
else
|
||||
StdPrs_WFShape::Add (P, mysh, myDrawer);
|
||||
{
|
||||
StdPrs_WFShape::Add (thePrs, mysh, myDrawer);
|
||||
}
|
||||
}
|
||||
else if (theMode == 0)
|
||||
{
|
||||
StdPrs_WFShape::Add (thePrs, mysh, myDrawer);
|
||||
}
|
||||
else if (aMode==0)
|
||||
StdPrs_WFShape::Add (P, mysh, myDrawer);
|
||||
}
|
||||
|
||||
void StdSelect_Shape::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
|
||||
|
@@ -30,8 +30,10 @@ class StdSelect_Shape : public PrsMgr_PresentableObject
|
||||
public:
|
||||
|
||||
Standard_EXPORT StdSelect_Shape(const TopoDS_Shape& theShape, const Handle(Prs3d_Drawer)& theDrawer = Handle(Prs3d_Drawer)());
|
||||
|
||||
Standard_EXPORT void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode = 0) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
|
||||
const Handle(Prs3d_Presentation)& thePrs,
|
||||
const Standard_Integer theMode) Standard_OVERRIDE;
|
||||
|
||||
const TopoDS_Shape& Shape() const { return mysh; }
|
||||
|
||||
|
Reference in New Issue
Block a user