smesh/src/SMESH_I/SMESH_MEDSupport_i.hxx

121 lines
3.9 KiB
C++
Raw Normal View History

2012-08-09 16:03:55 +06:00
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
2003-07-10 19:35:03 +06:00
//
2012-08-09 16:03:55 +06:00
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
2003-07-10 19:35:03 +06:00
//
2012-08-09 16:03:55 +06:00
// 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.
//
2012-08-09 16:03:55 +06:00
// 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.
//
2012-08-09 16:03:55 +06:00
// 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
//
2012-08-09 16:03:55 +06:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
2012-08-09 16:03:55 +06:00
2009-02-17 10:27:49 +05:00
// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
// File : SMESH_MEDSupport_i.hxx
// Module : SMESH
2009-02-17 10:27:49 +05:00
//
2003-05-19 19:54:48 +06:00
#ifndef _MED_SMESH_MEDSUPPORT_I_HXX_
#define _MED_SMESH_MEDSUPPORT_I_HXX_
#include "SMESH.hxx"
2003-05-19 19:54:48 +06:00
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(MED)
#include <string>
#include "SMESHDS_Mesh.hxx"
#include "SMESHDS_SubMesh.hxx"
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
#include "SMESH_MEDSupport_i.hxx"
#include "SALOME_GenericObj_i.hh"
2012-08-09 16:03:55 +06:00
class SMESH_subMesh;
2003-05-19 19:54:48 +06:00
class SMESH_subMesh_i;
class SMESH_I_EXPORT SMESH_MEDSupport_i:
2012-08-09 16:03:55 +06:00
public virtual POA_SALOME_MED::SUPPORT, public virtual SALOME::GenericObj_i
2003-05-19 19:54:48 +06:00
{
public:
// Constructors and associated internal methods
2012-08-09 16:03:55 +06:00
SMESH_MEDSupport_i(SMESH_subMesh_i * sm,
std::string name, std::string description, SALOME_MED::medEntityMesh entity);
SMESH_MEDSupport_i(const SMESH_MEDSupport_i & s);
// IDL Methods
2012-08-09 16:03:55 +06:00
char *getName() throw(SALOME::SALOME_Exception);
char *getDescription() throw(SALOME::SALOME_Exception);
SALOME_MED::GMESH_ptr getMesh() throw(SALOME::SALOME_Exception);
CORBA::Boolean isOnAllElements() throw(SALOME::SALOME_Exception);
SALOME_MED::medEntityMesh getEntity() throw(SALOME::SALOME_Exception);
CORBA::Long
2012-08-09 16:03:55 +06:00
getNumberOfElements(SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception);
CORBA::Long getNumberOfTypes() throw (SALOME::SALOME_Exception);
2012-08-09 16:03:55 +06:00
SALOME_TYPES::ListOfLong *
getNumber(SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception);
/*!
* Same function as getNumber.
*/
2012-08-09 16:03:55 +06:00
SALOME_TYPES::ListOfLong *
getNumberFromFile(SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception);
2012-08-09 16:03:55 +06:00
SALOME_TYPES::ListOfLong * getNumberIndex()
throw(SALOME::SALOME_Exception);
CORBA::Long
2012-08-09 16:03:55 +06:00
getNumberOfGaussPoint(SALOME_MED::medGeometryElement geomElement)
throw(SALOME::SALOME_Exception);
2012-08-09 16:03:55 +06:00
SALOME_TYPES::ListOfLong* getNumbersOfGaussPoint()
throw (SALOME::SALOME_Exception);
2012-08-09 16:03:55 +06:00
SALOME_MED::medGeometryElement_array *getTypes()
throw(SALOME::SALOME_Exception);
void getBoundaryElements() throw (SALOME::SALOME_Exception);
2012-08-09 16:03:55 +06:00
CORBA::Long getCorbaIndex() throw(SALOME::SALOME_Exception);
SALOME_MED::SUPPORT::supportInfos * getSupportGlobal()
2012-08-09 16:03:55 +06:00
throw (SALOME::SALOME_Exception);
2012-08-09 16:03:55 +06:00
void createSeq() throw(SALOME::SALOME_Exception);
public: //public field
2012-08-09 16:03:55 +06:00
SMESH_subMesh_i * _subMesh_i;
::SMESH_subMesh * _subMesh;
2012-08-09 16:03:55 +06:00
std::string _name;
2009-02-17 10:27:49 +05:00
std::string _description;
2012-08-09 16:03:55 +06:00
bool _isOnAllElements;
bool _seqNumber;
int _seqLength;
2012-08-09 16:03:55 +06:00
SALOME_MED::medEntityMesh _entity;
SALOME_MED::medGeometryElement * _geometricType;
int _numberOfGeometricType;
protected:
2012-08-09 16:03:55 +06:00
SMESH_MEDSupport_i();
~SMESH_MEDSupport_i();
2003-05-19 19:54:48 +06:00
};
#endif /* _MED_MEDSUPPORT_I_HXX_ */