Salome HOME
patch for install error on Linux
[modules/hydro.git] / src / HYDROData / HYDROData_PolylineOperator.h
index 8e27796cea78a6f98165bbf531534985fc482ca3..a4c280b8c12eb0fd72911af03536b883581879af 100644 (file)
@@ -26,6 +26,7 @@
 
 class Handle( HYDROData_Document );
 class HYDROData_TopoCurve;
+class Handle(HYDROData_Object);
 
 class HYDRODATA_EXPORT HYDROData_PolylineOperator
 {
@@ -58,12 +59,15 @@ public:
   //! the middle deflection is more than the required deflection and
   //! more than the half of the maximal middle deflection.
   //! Returns the initial maximal middle deflection.
-  //! Returns a negative value in the case of any erorr.
+  //! Returns a negative value in the case of any error.
   static double ReduceDeflection(
     const double theDeflection,
     HYDROData_TopoCurve& theCurve,
     int& thePieceCount);
 
+  bool Extract( const Handle(HYDROData_Document)& theDocument,
+                const Handle(HYDROData_Object)& theObject );
+
 protected:
   bool split( const Handle( HYDROData_Document )& theDoc,
               const Handle( HYDROData_PolylineXY )& thePolyline,
@@ -79,7 +83,7 @@ protected:
     std::vector<TopoDS_Shape>& theWires);
 
   static bool CreatePolylines( const Handle( HYDROData_Document )& theDoc,
-                               const QString& theNamePrefix,
+                               const Handle( HYDROData_PolylineXY )& theOldPolyline,
                                const std::vector<TopoDS_Shape>& theShape,
                                bool isUseIndices );
 };