X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_PolylineXY.h;h=611a2a30f51a8eb3a2683937da67e5842a9c871b;hb=9c947f35615e69e9e54a8c4b074dd1f2be13689c;hp=fa764067ac0a874b5f4c349370266042f5298684;hpb=2cf9e838e652ae811d9b3931914771ad1836c6b8;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_PolylineXY.h b/src/HYDROData/HYDROData_PolylineXY.h index fa764067..611a2a30 100644 --- a/src/HYDROData/HYDROData_PolylineXY.h +++ b/src/HYDROData/HYDROData_PolylineXY.h @@ -24,8 +24,10 @@ DEFINE_STANDARD_HANDLE(HYDROData_PolylineXY, HYDROData_IPolyline) class QPainterPath; +class QTransform; class TopoDS_Wire; class gp_XYZ; +class gp_Pnt; /**\class HYDROData_PolylineXY * \brief Class that stores/retreives information about the @@ -81,6 +83,8 @@ public: */ HYDRODATA_EXPORT static QColor DefaultWireColor(); + HYDRODATA_EXPORT bool IsCustom() const; + public: /** @@ -120,16 +124,12 @@ public: public: - /** - * Returns the 2D presentation of all points. - */ - HYDRODATA_EXPORT virtual TopoDS_Shape GetShape() const; - /** * 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. @@ -276,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; /** @@ -286,6 +286,11 @@ public: */ HYDRODATA_EXPORT virtual QPainterPath GetPainterPath() const; + /** + * Transform the polyline points. + * @param theTrsf the transformation + */ + HYDRODATA_EXPORT void Transform( const QTransform& theTrsf ); protected: @@ -294,6 +299,8 @@ protected: */ HYDRODATA_EXPORT virtual void setEditable( const bool theIsEditable ); + HYDRODATA_EXPORT void Interpolate(); + protected: friend class HYDROData_Profile; @@ -309,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