1 // Copyright (C) 2014-2015 EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // Lesser General Public License for more details.
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef HYDROData_GeomTool_HeaderFile
20 #define HYDROData_GeomTool_HeaderFile
22 #include "HYDROData.h"
24 #include <GEOM_Client.hxx>
29 class HYDRODATA_EXPORT HYDROData_GeomTool {
34 * \brief Get shape by the specified IOR.
35 * \param theIOR the GEOM object IOR
36 * \param theStudyId the study ID
39 static TopoDS_Shape GetShapeFromIOR( const int theStudyId, const QString& theIOR );
42 * \brief Get GEOM engine.
43 * \return the GEOM engine
45 static GEOM::GEOM_Gen_var GetGeomGen();
48 * \brief Get shape by the specified study ID.
49 * \param theStudyId the study ID
52 static SALOMEDS::Study_var GetStudyByID( const int theStudyId );
55 * \brief Get free name for GEOM object.
56 * \param theStudy the study
57 * \param theBaseName the base name
58 * \return the default name
60 static QString GetFreeName( SALOMEDS::Study_ptr theStudy, const QString& theBaseName );