-//=============================================================================
-// File : SMESH_Mesh_i.hxx
-// Created : lun mai 6 13:41:50 CEST 2002
-// Author : Paul RASCLE, EDF
-// Project : SALOME
-// Copyright : EDF 2002
-// $Header$
-//=============================================================================
+// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : SMESH_Mesh_i.hxx
+// Author : Paul RASCLE, EDF
+// Module : SMESH
+// $Header$
#ifndef _SMESH_MESH_I_HXX_
#define _SMESH_MESH_I_HXX_
public POA_SMESH::SMESH_Mesh
{
public:
- SMESH_Mesh_i();
SMESH_Mesh_i(SMESH_Gen_i* myGen_i,
GEOM::GEOM_Gen_ptr geomEngine,
CORBA::Long studyId,
- int localId);
+ ::SMESH_Mesh * impl);
virtual ~SMESH_Mesh_i();
CORBA::Long GetStudyId()
throw (SALOME::SALOME_Exception);
+ void Export(const char* fileName, const char* fileType)
+ throw (SALOME::SALOME_Exception);
+
// --- C++ interface
void SetImpl(::SMESH_Mesh* impl);
void SetIor(SMESH::SMESH_Mesh_ptr myIor);
SMESH::SMESH_Mesh_ptr GetIor();
- void ExportMED( const char* file )
- throw (SALOME::SALOME_Exception);
- void ExportDAT( const char* file )
- throw (SALOME::SALOME_Exception);
- void ExportUNV( const char* file )
- throw (SALOME::SALOME_Exception);
-
SALOME_MED::MESH_ptr GetMEDMesh()
throw (SALOME::SALOME_Exception);
map<int, ::SMESH_subMesh*> _mapSubMesh; //NRI
private:
-
+ SMESH::log_array_var createUpdateAllCommand(SMESH::log_array_var log, int * index);
::SMESH_Mesh* _impl; // :: force no namespace here
SMESH_Gen_i* _gen_i;
// CORBA::ORB_ptr _orb;
// SMESH_topo* _topo; // all local TopoDS_Shape of subShapes
- int _id; // id given by creator (unique within the creator instance)
GEOM::GEOM_Gen_var _geom;
- int _studyId;
- // int _localId; // id attributed to all objects created by Mesh_i
+ CORBA::Long _studyId;
map<int, SMESH::SMESH_subMesh_ptr> _mapSubMeshIor;
SMESH::SMESH_Mesh_var _myIor;
};