X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Stream.h;h=cfcd6a1109aa9c3eca56765fc83a4053e394afef;hb=545854182f0363f61284d5abe34c3627d4f3b088;hp=16d76503ebd1539b327ffcc0d4a335c4e4d3c837;hpb=f0688b4c39fcc3e49c2b58a90724b9c1c84f1337;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Stream.h b/src/HYDROData/HYDROData_Stream.h index 16d76503..cfcd6a11 100644 --- a/src/HYDROData/HYDROData_Stream.h +++ b/src/HYDROData/HYDROData_Stream.h @@ -33,6 +33,7 @@ class Handle(HYDROData_Polyline3D); class Handle(HYDROData_Profile); class HYDROData_IProfilesInterpolator; class TColStd_Array1OfReal; +class Handle(TopTools_HArray1OfShape); /**\class HYDROData_Stream @@ -79,6 +80,16 @@ public: const HYDROData_SequenceOfObjects& theProfiles, PrsDefinition& thePrs ); + /** + * Creates the presentations(2D and 3D) by given first points, last points and profiles. + * If 2D profiles is null - they will not used in the presentation. + */ + HYDRODATA_EXPORT static bool CreatePresentations( const Handle(TColgp_HArray1OfPnt) theArrayOfFPnt, + const Handle(TColgp_HArray1OfPnt) theArrayOfLPnt, + const Handle(TopTools_HArray1OfShape) theArrOfProfiles, + const Handle(TopTools_HArray1OfShape) theArrOf2DProfiles, + PrsDefinition& thePrs ); + public: /** @@ -96,16 +107,6 @@ public: */ HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const; - /** - * Returns the top shape of the object. - */ - HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const; - - /** - * Returns the 3d shape of the object. - */ - HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const; - /** * Update the profiles order and shape presentations of stream. * Call this method whenever you made changes for stream data. @@ -125,18 +126,19 @@ public: /** * */ - HYDRODATA_EXPORT virtual void CopyTo( const Handle(HYDROData_Entity)& theDestination ) const; + HYDRODATA_EXPORT virtual void CopyTo( const Handle(HYDROData_Entity)& theDestination, + bool isGenerateNewName ) const; /** * Returns default filling color for new stream. */ - HYDRODATA_EXPORT static QColor DefaultFillingColor(); + HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const; /** * Returns default border color for new stream. */ - HYDRODATA_EXPORT static QColor DefaultBorderColor(); + HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const; /** * Returns true if given polyline can be used as stream axis. @@ -287,16 +289,6 @@ protected: static 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: void setParametersArray( const TColStd_Array1OfReal& theArray );