Salome HOME
Sorting alphabetically.
[modules/hydro.git] / src / HYDROData / HYDROData_Calculation.h
index cee923cecc6ca48b4206d7630844bf4771bff632..a5b72c0fdc91155acb03244d23f4ef9bd4b04bde 100644 (file)
@@ -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;