Salome HOME
Refs #289 - Spline profile is represented in OCC view as polyline profile
[modules/hydro.git] / src / HYDROData / HYDROData_Obstacle.cxx
index a1807649fd95f864d1fe72addab69ab62439b0c5..f66444e70da9d39e8f9ecf1b8af5418b86f66361 100644 (file)
@@ -2,8 +2,8 @@
 #include "HYDROData_Obstacle.h"
 
 #include "HYDROData_Document.h"
-#include "HYDROData_Tool.h"
 #include "HYDROData_ShapesGroup.h"
+#include "HYDROData_ShapesTool.h"
 
 #include <Basics_Utils.hxx>
 
@@ -355,7 +355,7 @@ void HYDROData_Obstacle::createGroupObjects()
   if ( !anObstacleShape.IsNull() )
   {
     TopTools_SequenceOfShape aWireEdges;
-    HYDROData_Tool::ExploreShapeToShapes( anObstacleShape, TopAbs_EDGE, aWireEdges );
+    HYDROData_ShapesTool::ExploreShapeToShapes( anObstacleShape, TopAbs_EDGE, aWireEdges );
     if ( !aWireEdges.IsEmpty() )
     {
       QString aWireGroupName = GetName() + "_Outer_Wire";
@@ -368,6 +368,10 @@ void HYDROData_Obstacle::createGroupObjects()
   }
 }
 
+ObjectKind HYDROData_Obstacle::getAltitudeObjectType() const
+{
+  return KIND_OBSTACLE_ALTITUDE;
+}