X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Calculation.h;h=a5b72c0fdc91155acb03244d23f4ef9bd4b04bde;hb=f108c7fd8c3b2dbb8c263b14456a31f8dd1d0921;hp=cee923cecc6ca48b4206d7630844bf4771bff632;hpb=6a7b1d68094c60ceebc46449530a3f12fe16b080;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Calculation.h b/src/HYDROData/HYDROData_Calculation.h index cee923ce..a5b72c0f 100644 --- a/src/HYDROData/HYDROData_Calculation.h +++ b/src/HYDROData/HYDROData_Calculation.h @@ -10,6 +10,8 @@ class QPointF; class QFile; class Handle(HYDROData_Polyline); +class Handle(HYDROData_Zone); +class Handle(HYDROData_Region); DEFINE_STANDARD_HANDLE(HYDROData_Calculation, HYDROData_Object) @@ -31,6 +33,8 @@ protected: { DataTag_First = HYDROData_Object::DataTag_First + 100, ///< first tag, to reserve DataTag_BoundaryPolyline, ///< reference boundary polyline + DataTag_Zone, ///< reference zones + DataTag_Region ///< reference regions }; public: @@ -51,10 +55,95 @@ public: public: // Public methods to work with Calculation + /** + * Sets boundary polyline for calculation case. + */ HYDRODATA_EXPORT virtual void SetBoundaryPolyline( const Handle(HYDROData_Polyline)& thePolyline ); + /** + * Returns boundary polyline of calculation case. + */ HYDRODATA_EXPORT virtual Handle(HYDROData_Polyline) GetBoundaryPolyline() const; + /** + * Removes boundary polyline of calculation case. + */ + HYDRODATA_EXPORT virtual void RemoveBoundaryPolyline(); + + + /** + * Returns number of refrence zones for calculation case. + */ + HYDRODATA_EXPORT virtual int NbZones() const; + + /** + * Add new one refrence zone for calculation case. + */ + HYDRODATA_EXPORT virtual void AddZone( const Handle(HYDROData_Zone)& theZone ); + + /** + * Replace the refrence zone for calculation case. + */ + HYDRODATA_EXPORT virtual void SetZone( const int theIndex, + const Handle(HYDROData_Zone)& theZone ); + + /** + * Sets the refrence zones for calculation case. + */ + HYDRODATA_EXPORT virtual void SetZones( const HYDROData_SequenceOfObjects& theZones ); + + /** + * Returns refrence zone of calculation case by index. + */ + HYDRODATA_EXPORT virtual Handle(HYDROData_Zone) GetZone( const int theIndex ) const; + + /** + * Returns all refrence zone of calculation case. + */ + HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetZones() const; + + /** + * Removes all refrence zone of calculation case. + */ + HYDRODATA_EXPORT virtual void RemoveZones(); + + + /** + * Returns number of regions for calculation case. + */ + HYDRODATA_EXPORT virtual int NbRegions() const; + + /** + * Add new one region for calculation case. + */ + HYDRODATA_EXPORT virtual void AddRegion( const Handle(HYDROData_Region)& theRegion ); + + /** + * Replace the region for calculation case. + */ + HYDRODATA_EXPORT virtual void SetRegion( const int theIndex, + const Handle(HYDROData_Region)& theRegion ); + + /** + * Sets the refrence region for calculation case. + */ + HYDRODATA_EXPORT virtual void SetRegions( const HYDROData_SequenceOfObjects& theRegions ); + + /** + * Returns region of calculation case by index. + */ + HYDRODATA_EXPORT virtual Handle(HYDROData_Region) GetRegion( const int theIndex ) const; + + /** + * Returns all regions of calculation case. + */ + HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetRegions() const; + + /** + * Removes all regions of calculation case. + */ + HYDRODATA_EXPORT virtual void RemoveRegions(); + protected: friend class HYDROData_Iterator;