X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FHYDROData%2FHYDROData_PolylineXY.h;h=8375616b912921c6e36b12f4aabca5daa9314387;hb=fce3f1240b6161d7cb837344078e5943b90eca65;hp=cbf5657baaa9d2f66ab18501f6a56a5117c28136;hpb=e77a4312d0891c252baac0e1dcac298bb7bdeb72;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_PolylineXY.h b/src/HYDROData/HYDROData_PolylineXY.h index cbf5657b..8375616b 100644 --- a/src/HYDROData/HYDROData_PolylineXY.h +++ b/src/HYDROData/HYDROData_PolylineXY.h @@ -20,8 +20,7 @@ #define HYDROData_PolylineXY_HeaderFile #include "HYDROData_IPolyline.h" - -DEFINE_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline) +#include class QPainterPath; class QTransform; @@ -46,7 +45,7 @@ protected: }; public: - DEFINE_STANDARD_RTTI(HYDROData_PolylineXY); + DEFINE_STANDARD_RTTIEXT(HYDROData_PolylineXY, HYDROData_IPolyline); /** @@ -151,6 +150,11 @@ 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 between first and point with index thePointIndex * at the section with index theSectionIndex. -1 is returned if error is occurred.