X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_PolylineXY.h;h=611a2a30f51a8eb3a2683937da67e5842a9c871b;hb=9c947f35615e69e9e54a8c4b074dd1f2be13689c;hp=c088b987d3659dcd5d2ceddb9599ce270080765d;hpb=53ffa9fa57d352fcb5abc0e8a6bb79ea74e52621;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_PolylineXY.h b/src/HYDROData/HYDROData_PolylineXY.h index c088b987..611a2a30 100644 --- a/src/HYDROData/HYDROData_PolylineXY.h +++ b/src/HYDROData/HYDROData_PolylineXY.h @@ -124,16 +124,12 @@ public: public: - /** - * Returns the 2D presentation of all points. - */ - HYDRODATA_EXPORT virtual TopoDS_Shape GetShape() const; - HYDRODATA_EXPORT bool SetShape( const TopoDS_Shape& theShape ); - /** * Returns the 3D presentation of all points. */ - HYDRODATA_EXPORT virtual bool ImportShape( const TopoDS_Shape& theShape ); + HYDRODATA_EXPORT virtual bool ImportShape( const TopoDS_Shape& theShape, + bool IsInterpolationAllowed = false, + double theDeviation = 1E-3 ); /** * Returns flag indicating that polyline can be edited or not. @@ -280,7 +276,7 @@ public: * only for section with this index * \return list of points */ - HYDRODATA_EXPORT virtual PointsList GetPoints( const int theSectionIndex = -1 ) const; + HYDRODATA_EXPORT virtual PointsList GetPoints( const int theSectionIndex = -1, bool IsConvertToGlobal = false ) const; /** @@ -303,6 +299,8 @@ protected: */ HYDRODATA_EXPORT virtual void setEditable( const bool theIsEditable ); + HYDRODATA_EXPORT void Interpolate(); + protected: friend class HYDROData_Profile; @@ -318,6 +316,9 @@ protected: * Destructs properties of the object and object itself, removes it from the document. */ HYDRODATA_EXPORT ~HYDROData_PolylineXY(); + +private: + bool myIsInCustomFlag; }; #endif