1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
24 // File : SMESH_Pattern_i.hxx
25 // Created : Fri Aug 20 16:03:15 2004
26 // Author : Edward AGAPOV (eap)
29 #ifndef SMESH_Pattern_I_HeaderFile
30 #define SMESH_Pattern_I_HeaderFile
34 #include "SALOMEconfig.h"
35 #include CORBA_SERVER_HEADER(SMESH_Pattern)
36 #include CORBA_SERVER_HEADER(SMESH_Mesh)
37 #include CORBA_CLIENT_HEADER(GEOM_Gen)
39 #include <TopoDS_Shape.hxx>
40 #include "SMESH_Pattern.hxx"
45 class SMESH_I_EXPORT SMESH_Pattern_i:
46 public virtual POA_SMESH::SMESH_Pattern
50 SMESH_Pattern_i (SMESH_Gen_i* theGen_i);
52 CORBA::Boolean LoadFromFile(const char* theFileContents);
54 CORBA::Boolean LoadFromFace(SMESH::SMESH_Mesh_ptr theMesh,
55 GEOM::GEOM_Object_ptr theFace,
56 CORBA::Boolean theProject);
58 CORBA::Boolean LoadFrom3DBlock(SMESH::SMESH_Mesh_ptr theMesh,
59 GEOM::GEOM_Object_ptr theBlock);
61 SMESH::point_array* ApplyToFace(GEOM::GEOM_Object_ptr theFace,
62 GEOM::GEOM_Object_ptr theVertexOnKeyPoint1,
63 CORBA::Boolean theReverse);
65 SMESH::point_array* ApplyTo3DBlock(GEOM::GEOM_Object_ptr theBlock,
66 GEOM::GEOM_Object_ptr theVertex000,
67 GEOM::GEOM_Object_ptr theVertex001);
69 SMESH::point_array* ApplyToMeshFaces(SMESH::SMESH_Mesh_ptr theMesh,
70 const SMESH::long_array& theFacesIDs,
71 CORBA::Long theNodeIndexOnKeyPoint1,
72 CORBA::Boolean theReverse);
74 SMESH::point_array* ApplyToHexahedrons(SMESH::SMESH_Mesh_ptr theMesh,
75 const SMESH::long_array& theVolumesIDs,
76 CORBA::Long theNode000Index,
77 CORBA::Long theNode001Index);
79 //for omniORB conflict compilation
80 /*CORBA::Boolean MakeMesh (SMESH::SMESH_Mesh_ptr theMesh,
81 const CORBA::Boolean CreatePolygons,
82 const CORBA::Boolean CreatePolyedrs);*/
84 CORBA::Boolean MakeMesh (SMESH::SMESH_Mesh_ptr theMesh,
85 CORBA::Boolean CreatePolygons,
86 CORBA::Boolean CreatePolyedrs);
88 SMESH::SMESH_Pattern::ErrorCode GetErrorCode();
92 CORBA::Boolean Is2D();
94 SMESH::point_array* GetPoints();
96 SMESH::long_array* GetKeyPoints();
98 SMESH::array_of_long_array* GetElementPoints(CORBA::Boolean applied);
103 ::SMESH_Mesh* getMesh( SMESH::SMESH_Mesh_ptr & theMesh );
105 ::SMESH_Pattern myPattern;