From 8c9ebd878ec12f1f113a265eeb4ef6ab41b8a61a Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 24 Sep 2018 14:12:09 +0300 Subject: [PATCH] 0023595: [CEA 2275] : Manual test KO GEOM : The fields are not displayed - Fixed pb raised after migration to OCCT 7.3 --- src/OBJECT/GEOM_AISShape.cxx | 5 +++++ src/OBJECT/GEOM_AISShape.hxx | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/OBJECT/GEOM_AISShape.cxx b/src/OBJECT/GEOM_AISShape.cxx index ba4981567..06cd122b3 100644 --- a/src/OBJECT/GEOM_AISShape.cxx +++ b/src/OBJECT/GEOM_AISShape.cxx @@ -206,6 +206,11 @@ Standard_CString GEOM_AISShape::getName() return myName.ToCString(); } +Standard_Boolean GEOM_AISShape::AcceptDisplayMode(const Standard_Integer theMode) const +{ + return theMode >= Wireframe && theMode <= CustomHighlight; +} + void GEOM_AISShape::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPrs, const Standard_Integer aMode) diff --git a/src/OBJECT/GEOM_AISShape.hxx b/src/OBJECT/GEOM_AISShape.hxx index 62bf81233..54b0c4c70 100644 --- a/src/OBJECT/GEOM_AISShape.hxx +++ b/src/OBJECT/GEOM_AISShape.hxx @@ -76,6 +76,8 @@ public: Standard_EXPORT void highlightSubShapes(const TColStd_IndexedMapOfInteger& aIndexMap, const Standard_Boolean aHighlight ); + Standard_Boolean AcceptDisplayMode(const Standard_Integer theMode) const; + Standard_EXPORT void SetShadingColor(const Quantity_Color &aCol); Standard_EXPORT void SetEdgesInShadingColor(const Quantity_Color &aCol); Standard_EXPORT void SetLabelColor(const Quantity_Color &aCol); -- 2.39.2