Salome HOME
Merge remote-tracking branch 'origin/BR_1321_ECW' into BR_DEMO
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Shape.cxx
index 8f271e54ff1bd599e0c826530571bf91984d86b2..964df94c41e6e121859167af5477eef6ef255e0d 100644 (file)
@@ -42,6 +42,9 @@
 #include <TopoDS_Wire.hxx>
 #include <TopExp_Explorer.hxx>
 
+#include <SUIT_ResourceMgr.h>
+#include <SUIT_Session.h>
+
 HYDROGUI_Shape::HYDROGUI_Shape( const Handle(AIS_InteractiveContext)& theContext,
                                 const Handle(HYDROData_Entity)&       theObject,
                                 const int                             theZLayer )
@@ -499,7 +502,20 @@ QList<Handle(AIS_InteractiveObject)> HYDROGUI_Shape::createShape() const
 
   if ( aShapeType==TopAbs_EDGE || aShapeType==TopAbs_WIRE || IsWireEdgeCompound)
   {
-    shapes.append( HYDROGUI_Polyline::createPresentations( myTopoShape ) );
+    SUIT_ResourceMgr* aResMgr = 0;
+    SUIT_Session* aSession = SUIT_Session::session();
+    if ( aSession )
+      aResMgr = SUIT_Session::session()->resourceMgr();
+
+    int aType = -1;
+    int aSize = -1;
+    if( aResMgr )
+    {
+      aResMgr->value( "polyline", "arrow_type", aType );
+      aResMgr->value( "polyline", "arrow_size", aSize );
+    }
+
+    shapes.append( HYDROGUI_Polyline::createPresentations( myTopoShape, aType, aSize ) );
   }
   else
   {