X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_PolylineXY.h;h=d67f0ad5ad781a3b0c0694742f8057927b769c68;hb=89c7928d864f9be4f35aaa7409896c264849f273;hp=39d01e72e75fe29b78fa6b4f2cfe9bd7e7e3bc7d;hpb=7de2b9cfd8501129720f9338fcdf1766007511b9;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_PolylineXY.h b/src/HYDROData/HYDROData_PolylineXY.h index 39d01e72..d67f0ad5 100644 --- a/src/HYDROData/HYDROData_PolylineXY.h +++ b/src/HYDROData/HYDROData_PolylineXY.h @@ -20,6 +20,7 @@ #define HYDROData_PolylineXY_HeaderFile #include "HYDROData_IPolyline.h" +#include DEFINE_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline) @@ -132,6 +133,7 @@ public: */ HYDRODATA_EXPORT virtual bool ImportShape( const TopoDS_Shape& theShape, bool IsInterpolationAllowed, + const Handle( HYDROData_PolylineXY )& theOldPolyline, bool IsClosureAllowed = true, double theDeviation = 1.); @@ -150,20 +152,18 @@ public: */ HYDRODATA_EXPORT bool IsClosed( const bool theIsSimpleCheck = true ) const; + /** + * Returns connected wires and their number, by rebuild of the wires from the edges, looking for connections + */ + HYDRODATA_EXPORT int GetNbConnectedWires(Handle(TopTools_HSequenceOfShape)& aConnectedWires) const; + /** - * Returns the distance beetwen first and point with index thePointIndex + * Returns the distance between first and point with index thePointIndex * at the section with index theSectionIndex. -1 is returned if error is occurred. */ HYDRODATA_EXPORT double GetDistance( const int theSectionIndex, const int thePointIndex ) const; - /** - * Returns the distance between a section and a point - */ -// HYDRODATA_EXPORT double GetMinDistance( const int theSectionIndex, -// const Point& thePoint ) const; - - /** * Returns number of sections. */