X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Calculation.h;h=a5b72c0fdc91155acb03244d23f4ef9bd4b04bde;hb=f108c7fd8c3b2dbb8c263b14456a31f8dd1d0921;hp=1f9a7716d1d0f3abbdaedb229cf05d0d8c3496e4;hpb=1c5e5ce146491c870ecaf7fbffa48d43254aed88;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Calculation.h b/src/HYDROData/HYDROData_Calculation.h index 1f9a7716..a5b72c0f 100644 --- a/src/HYDROData/HYDROData_Calculation.h +++ b/src/HYDROData/HYDROData_Calculation.h @@ -9,6 +9,10 @@ class gp_XYZ; class QPointF; class QFile; +class Handle(HYDROData_Polyline); +class Handle(HYDROData_Zone); +class Handle(HYDROData_Region); + DEFINE_STANDARD_HANDLE(HYDROData_Calculation, HYDROData_Object) @@ -28,6 +32,9 @@ protected: enum DataTag { 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: @@ -48,6 +55,94 @@ 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: