X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Profile.h;h=f1f5238076afee17d34b514fcfd36118348b99f5;hb=545854182f0363f61284d5abe34c3627d4f3b088;hp=0c3ab048806a7d44faf646a30638f71d69c9ef64;hpb=439579ec24edd8b147cab07f688d446d59029a1e;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Profile.h b/src/HYDROData/HYDROData_Profile.h index 0c3ab048..f1f52380 100644 --- a/src/HYDROData/HYDROData_Profile.h +++ b/src/HYDROData/HYDROData_Profile.h @@ -87,12 +87,12 @@ public: /** * Returns default filling color for new profile. */ - HYDRODATA_EXPORT static QColor DefaultFillingColor(); + HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const; /** * Returns default border color for new profile. */ - HYDRODATA_EXPORT static QColor DefaultBorderColor(); + HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const; public: @@ -196,6 +196,12 @@ public: */ HYDRODATA_EXPORT ProfilePoint GetBottomPoint() const; + /** + * Return profile middle point. + * \return non-parametric profile point + */ + HYDRODATA_EXPORT ProfilePoint GetMiddlePoint( bool CanUseDefault ) const; + public: // Public methods to work with files. @@ -241,17 +247,6 @@ public: bool* theIsRead = 0 ); protected: - - /** - * Returns default filling color for new object. - */ - HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const; - - /** - * Returns default border color for new object. - */ - HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const; - /** * Checks and if necessary create child 3D object. * Reimplemented to prevent creation of 3D child object.