X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Stream.h;h=e7bec1950525accfbaba3acdfa31092779f17533;hb=c52bda48bea5753316f128f52a3be1abb5aff055;hp=d0f6202894ccdaaed6bc2eab19bd4ad190603b58;hpb=f69c6f07782392fb5e8c95aa917b1bfaa8f4b012;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Stream.h b/src/HYDROData/HYDROData_Stream.h index d0f62028..e7bec195 100644 --- a/src/HYDROData/HYDROData_Stream.h +++ b/src/HYDROData/HYDROData_Stream.h @@ -4,6 +4,7 @@ #include "HYDROData_NaturalObject.h" #include +#include DEFINE_STANDARD_HANDLE(HYDROData_Stream, HYDROData_NaturalObject) class Handle(HYDROData_PolylineXY); @@ -62,6 +63,16 @@ public: */ HYDRODATA_EXPORT virtual void Update(); + /** + * Returns default filling color for new stream. + */ + HYDRODATA_EXPORT static QColor DefaultFillingColor(); + + /** + * Returns default border color for new stream. + */ + HYDRODATA_EXPORT static QColor DefaultBorderColor(); + public: // Public methods to work with Stream @@ -114,8 +125,7 @@ public: * Removes all reference profile objects from stream. */ HYDRODATA_EXPORT virtual void RemoveProfiles(); - - + protected: /** @@ -129,6 +139,21 @@ protected: * If hydraulic axis is not set all profiles will be removed from order. */ void updateProfilesOrder(); + + /** + * Builds b-spline using interpolation algorithm. + */ + Handle(Geom_BSplineCurve) buildInterpolationCurve(const Handle(TColgp_HArray1OfPnt)& theArrayOfPnt); + + /** + * 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; private: