#include <HYDROData_Entity.h>
+class TopoDS_Shell;
+
class Handle(HYDROData_Object);
class Handle(HYDROData_Region);
class Handle(HYDROData_Zone);
-class Handle(HYDROData_Polyline);
+class Handle(HYDROData_PolylineXY);
DEFINE_STANDARD_HANDLE(HYDROData_CalculationCase, HYDROData_Entity)
*/
HYDRODATA_EXPORT virtual const ObjectKind GetKind() const { return KIND_CALCULATION; }
+ /**
+ * Updates the name of this object.
+ * Reimplemented to update the names of regions and zones.
+ */
+ HYDRODATA_EXPORT virtual void SetName( const QString& theName );
/**
* Dump Calculation object to Python script representation.
/**
* Sets reference boundary polyline object for calculation case.
*/
- HYDRODATA_EXPORT virtual void SetBoundaryPolyline( const Handle(HYDROData_Polyline)& thePolyline );
+ HYDRODATA_EXPORT virtual void SetBoundaryPolyline( const Handle(HYDROData_PolylineXY)& thePolyline );
/**
* Returns reference boundary polyline object of calculation case.
*/
- HYDRODATA_EXPORT virtual Handle(HYDROData_Polyline) GetBoundaryPolyline() const;
+ HYDRODATA_EXPORT virtual Handle(HYDROData_PolylineXY) GetBoundaryPolyline() const;
/**
* Remove reference boundary polyline object from calculation case.
*/
HYDRODATA_EXPORT virtual void RemoveRegions();
+ /**
+ * Returns shell containing faces which correspond to regions.
+ * \return shell as TopoDS_Shell
+ */
+ HYDRODATA_EXPORT virtual TopoDS_Shell GetShell();
+
private:
/**
* Creates new object in the internal data structure. Use higher level objects
* to create objects with real content.
*/
- HYDROData_CalculationCase();
+ HYDRODATA_EXPORT HYDROData_CalculationCase();
/**
* Destructs properties of the object and object itself, removes it from the document.
*/
- ~HYDROData_CalculationCase();
+ HYDRODATA_EXPORT ~HYDROData_CalculationCase();
};
#endif