X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Polyline.h;h=4f9e4008fb1d5eb923a82a09d774c4394a8293bb;hb=f108c7fd8c3b2dbb8c263b14456a31f8dd1d0921;hp=3906ac5321178f2b6b58676ff6162be212056750;hpb=5bdd5a07050d0879edb5efdc7e009850a46c64f8;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Polyline.h b/src/HYDROData/HYDROData_Polyline.h index 3906ac53..4f9e4008 100755 --- a/src/HYDROData/HYDROData_Polyline.h +++ b/src/HYDROData/HYDROData_Polyline.h @@ -9,6 +9,8 @@ #include #include +class TopoDS_Wire; + DEFINE_STANDARD_HANDLE(HYDROData_Polyline, HYDROData_Object) struct PolylineSection @@ -45,7 +47,8 @@ protected: DataTag_SectionsName, DataTag_SectionsClosed, DataTag_SectionsSize, - DataTag_SectionsType + DataTag_SectionsType, + DataTag_Wire }; public: @@ -101,12 +104,27 @@ public: */ HYDRODATA_EXPORT void removeAll(); - /** - * Returns the painter path. The painter path is construct by lines + * Returns the painter path. + * Note: currently only the first section of the polyline data is taken into account. */ HYDRODATA_EXPORT QPainterPath painterPath() const; + /** + * Sets the wire contour of the object. + */ + HYDRODATA_EXPORT void SetWire( const TopoDS_Wire& theWire ); + + /** + * Returns the wire contour of the object. + */ + HYDRODATA_EXPORT TopoDS_Wire Wire() const; + +protected: + /** + * Update the wire contour on the basis of the polyline data. + */ + void UpdateWire( const PolylineData& theSections ); protected: