Back to index

salome-smesh  6.5.0
SMESH_Pattern_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
00024 // File      : SMESH_Pattern_i.hxx
00025 // Created   : Fri Aug 20 16:03:15 2004
00026 // Author    : Edward AGAPOV (eap)
00027 //  $Header: 
00028 //
00029 #ifndef SMESH_Pattern_I_HeaderFile
00030 #define SMESH_Pattern_I_HeaderFile
00031 
00032 #include "SMESH.hxx"
00033 
00034 #include "SALOMEconfig.h"
00035 #include CORBA_SERVER_HEADER(SMESH_Pattern)
00036 #include CORBA_SERVER_HEADER(SMESH_Mesh)
00037 #include CORBA_CLIENT_HEADER(GEOM_Gen)
00038 
00039 #include <TopoDS_Shape.hxx>
00040 #include "SMESH_Pattern.hxx"
00041 
00042 class SMESH_Gen_i;
00043 class SMESH_Mesh;
00044 
00045 class SMESH_I_EXPORT SMESH_Pattern_i:
00046   public virtual POA_SMESH::SMESH_Pattern
00047 {
00048  public:
00049 
00050   SMESH_Pattern_i (SMESH_Gen_i* theGen_i);
00051 
00052   CORBA::Boolean LoadFromFile(const char* theFileContents);
00053 
00054   CORBA::Boolean LoadFromFace(SMESH::SMESH_Mesh_ptr theMesh,
00055                               GEOM::GEOM_Object_ptr theFace,
00056                               CORBA::Boolean        theProject);
00057 
00058   CORBA::Boolean LoadFrom3DBlock(SMESH::SMESH_Mesh_ptr theMesh,
00059                                  GEOM::GEOM_Object_ptr theBlock);
00060 
00061   SMESH::point_array* ApplyToFace(GEOM::GEOM_Object_ptr theFace,
00062                                   GEOM::GEOM_Object_ptr theVertexOnKeyPoint1,
00063                                   CORBA::Boolean        theReverse);
00064 
00065   SMESH::point_array* ApplyTo3DBlock(GEOM::GEOM_Object_ptr theBlock,
00066                                      GEOM::GEOM_Object_ptr theVertex000,
00067                                      GEOM::GEOM_Object_ptr theVertex001);
00068 
00069   SMESH::point_array* ApplyToMeshFaces(SMESH::SMESH_Mesh_ptr    theMesh,
00070                                        const SMESH::long_array& theFacesIDs,
00071                                        CORBA::Long              theNodeIndexOnKeyPoint1,
00072                                        CORBA::Boolean           theReverse);
00073 
00074   SMESH::point_array* ApplyToHexahedrons(SMESH::SMESH_Mesh_ptr    theMesh,
00075                                          const SMESH::long_array& theVolumesIDs,
00076                                          CORBA::Long              theNode000Index,
00077                                          CORBA::Long              theNode001Index);
00078 
00079   //for omniORB conflict compilation
00080   /*CORBA::Boolean MakeMesh (SMESH::SMESH_Mesh_ptr theMesh,
00081                            const CORBA::Boolean  CreatePolygons,
00082                            const CORBA::Boolean  CreatePolyedrs);*/
00083 
00084   CORBA::Boolean MakeMesh (SMESH::SMESH_Mesh_ptr theMesh,
00085                            CORBA::Boolean  CreatePolygons,
00086                            CORBA::Boolean  CreatePolyedrs);
00087 
00088   SMESH::SMESH_Pattern::ErrorCode GetErrorCode();
00089 
00090   char* GetString();
00091 
00092   CORBA::Boolean Is2D();
00093 
00094   SMESH::point_array* GetPoints();
00095 
00096   SMESH::long_array* GetKeyPoints();
00097 
00098   SMESH::array_of_long_array* GetElementPoints(CORBA::Boolean applied);
00099 
00100 
00101  private:
00102 
00103   ::SMESH_Mesh* getMesh( SMESH::SMESH_Mesh_ptr & theMesh );
00104 
00105   ::SMESH_Pattern myPattern;
00106 
00107   SMESH_Gen_i*    myGen;
00108 };
00109 #endif