X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_CalculationCase.h;h=1b6d4bfbeef34bac283ea1d3cf381bb8dd3cb0a3;hb=ad8562bab9992101430a6327aa7ca06c71f6d084;hp=77edbf778faa997b627d62276f4abb03a8f1b855;hpb=85eaba6cfd3cd0b88d4228afee4670ad75985377;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_CalculationCase.h b/src/HYDROData/HYDROData_CalculationCase.h index 77edbf77..1b6d4bfb 100644 --- a/src/HYDROData/HYDROData_CalculationCase.h +++ b/src/HYDROData/HYDROData_CalculationCase.h @@ -5,6 +5,8 @@ #include +class TopoDS_Shell; + class Handle(HYDROData_Object); class Handle(HYDROData_Region); class Handle(HYDROData_Zone); @@ -43,6 +45,11 @@ public: */ 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. @@ -130,6 +137,12 @@ public: */ 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: /** @@ -147,12 +160,12 @@ protected: * 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