* Exports the calculation case data (shell and groups) to GEOM module.
* \param theGeomEngine GEOM module engine
* \param theStudy SALOMEDS study, is used for publishing of GEOM objects
+ * \param theGeomObjEntry the published GEOM object entry
+ * \param theErrorMsg the error message
* \return true in case of success
*/
HYDRODATA_EXPORT virtual bool Export( GEOM::GEOM_Gen_var theGeomEngine,
SALOMEDS::Study_ptr theStudy,
- QString& theGeomObjEntry ) const;
+ QString& theGeomObjEntry,
+ QString& theErrorMsg ) const;
public:
// Public methods to work with Calculation services
HYDRODATA_EXPORT AssignmentMode GetAssignmentLandCoverMode() const;
HYDRODATA_EXPORT QString DumpRules() const;
+ HYDRODATA_EXPORT QString DumpLandCoverRules() const;
HYDRODATA_EXPORT HYDROData_Warning GetLastWarning() const;
const TopTools_ListOfShape& theFaces,
const HYDROData_ShapesGroup::SeqOfGroupsDefs& theGroupsDefs,
QString& theGeomObjEntry ) const;
-
- /**
- * Publish the given shape in GEOM as a GEOM object.
- * \param theGeomEngine GEOM module engine
- * \param theStudy SALOMEDS study, used for publishing of the shape
- * \param theShape the shape to publish as a GEOM object
- * \param theName the name of the published object
- * \return the published GEOM object
- */
- GEOM::GEOM_Object_ptr publishShapeInGEOM( GEOM::GEOM_Gen_var theGeomEngine,
- SALOMEDS::Study_ptr theStudy,
- const TopoDS_Shape& theShape,
- const QString& theName,
- QString& theGeomObjEntry ) const;
-
+
void CreateRegionsDef( const Handle(HYDROData_Document)& theDoc,
const HYDROData_SplitToZonesTool::SplitDataList& theZones,
const bool theLandCover );
const HYDROData_SplitToZonesTool::SplitDataList& theEdges );
void DumpRulesToPython( const QString& theCalcCaseName, QStringList& theScript ) const;
+ void DumpLandCoverRulesToPython( const QString& theCalcCaseName, QStringList& theScript ) const;
void SetWarning( HYDROData_WarningType theType = WARN_OK, const QString& theData = "" );