Salome HOME
Feature #86: The hierarchy in the Object Browser (T 19).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_OCCDisplayer.cxx
index fe5fe68b6b82efa0adcbb5a7c5bce05eb5ec5cf7..602cb5cb5cd00ab7a2a967c84f0de611fde56c30 100644 (file)
@@ -104,7 +104,8 @@ HYDROGUI_Shape* HYDROGUI_OCCDisplayer::createShape( const int
        anObjectKind != KIND_POLYLINE &&
        anObjectKind != KIND_IMMERSIBLE_ZONE &&
        anObjectKind != KIND_REGION &&
-       anObjectKind != KIND_ZONE )
+       anObjectKind != KIND_ZONE &&
+       anObjectKind != KIND_OBSTACLE  )
     return aResShape;
 
   aResShape = new HYDROGUI_Shape( theContext, theObject );
@@ -193,4 +194,7 @@ void HYDROGUI_OCCDisplayer::purgeObjects( const int theViewerId )
   }
 }
 
-
+QString HYDROGUI_OCCDisplayer::GetType() const
+{
+  return OCCViewer_Viewer::Type();
+}