From: vsr Date: Mon, 24 Sep 2018 11:12:09 +0000 (+0300) Subject: 0023595: [CEA 2275] : Manual test KO GEOM : The fields are not displayed X-Git-Tag: V9_2_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0dd7f39358913af7248f8241200aee47e7dac6cd;p=modules%2Fgeom.git 0023595: [CEA 2275] : Manual test KO GEOM : The fields are not displayed - Fixed pb raised after migration to OCCT 7.3 --- 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);