X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_GeomTool.h;h=278e6cafc84cf9b577eb880bc451961f494e64ca;hb=d398a8be8e0b0259b476b358d53d234ce4c82379;hp=ea4cb95d39dad7d48fbecb721958a8cbc6418aea;hpb=439579ec24edd8b147cab07f688d446d59029a1e;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_GeomTool.h b/src/HYDROData/HYDROData_GeomTool.h index ea4cb95d..278e6caf 100644 --- a/src/HYDROData/HYDROData_GeomTool.h +++ b/src/HYDROData/HYDROData_GeomTool.h @@ -21,8 +21,17 @@ #include "HYDROData.h" +#ifdef WIN32 + #pragma warning ( disable: 4251 ) +#endif + +#ifndef LIGHT_MODE #include +#ifdef WIN32 + #pragma warning ( default: 4251 ) +#endif + class TopoDS_Shape; class QString; @@ -58,8 +67,56 @@ public: * \return the default name */ static QString GetFreeName( SALOMEDS::Study_ptr theStudy, const QString& theBaseName ); + + /** + * 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 + * \param theGeomObjEntry the entry of the published object + * \return the published GEOM object + */ + static GEOM::GEOM_Object_ptr publishShapeInGEOM( GEOM::GEOM_Gen_var theGeomEngine, + SALOMEDS::Study_ptr theStudy, + const TopoDS_Shape& theShape, + const QString& theName, + QString& theGeomObjEntry ); + + /** + * Create and publish face in GEOM as a GEOM object. + * \param theGeomEngine GEOM module engine + * \param theStudy SALOMEDS study, used for publishing of the face + * \param theWidth the face width + * \param theHeight the face height + * \param theName the name of the published face + * \param theFaceEntry the entry of the published face + * \return the published GEOM object + */ + static GEOM::GEOM_Object_ptr createFaceInGEOM( GEOM::GEOM_Gen_var theGeomEngine, + SALOMEDS::Study_ptr theStudy, + const int theWidth, + const int theHeight, + const QString& theName, + QString& theFaceEntry ); + + /** + * Publish the given GEOM object in the study. + * \param theGeomEngine GEOM module engine + * \param theStudy SALOMEDS study, used for publishing of the object + * \param theGeomObj the GEOM object + * \param theName the object name + * \return the entry of the published object (empty string in case of fail) + */ + static QString publishGEOMObject( GEOM::GEOM_Gen_var theGeomEngine, + SALOMEDS::Study_ptr theStudy, + GEOM::GEOM_Object_ptr theGeomObj, + const QString& theName ); + }; #endif +#endif +