Salome HOME
0023595: [CEA 2275] : Manual test KO GEOM : The fields are not displayed V9_2_0a1
authorvsr <vsr@opencascade.com>
Mon, 24 Sep 2018 11:12:09 +0000 (14:12 +0300)
committervsr <vsr@opencascade.com>
Mon, 24 Sep 2018 11:12:09 +0000 (14:12 +0300)
- Fixed pb raised after migration to OCCT 7.3

src/OBJECT/GEOM_AISShape.cxx
src/OBJECT/GEOM_AISShape.hxx

index ba498156704e7c83437c5db137f13b7645b74e6e..06cd122b363e36d57e1f6c211b48f2025c67c708 100644 (file)
@@ -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)
index 62bf81233e5b967fd13254044e057c7a19159b29..54b0c4c7088671685211dad2c6c5bdfb0db70142 100644 (file)
@@ -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);