class QFile;
class Handle(HYDROData_Polyline);
+class Handle(HYDROData_Zone);
+class Handle(HYDROData_Region);
DEFINE_STANDARD_HANDLE(HYDROData_Calculation, HYDROData_Object)
{
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:
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;