Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _SMESH_SUBMESH_I_HXX_
00029 #define _SMESH_SUBMESH_I_HXX_
00030
00031 #include "SMESH.hxx"
00032
00033 #include <SALOMEconfig.h>
00034 #include CORBA_SERVER_HEADER(SMESH_Mesh)
00035 #include CORBA_SERVER_HEADER(SMESH_Hypothesis)
00036 #include CORBA_CLIENT_HEADER(GEOM_Gen)
00037 #include CORBA_CLIENT_HEADER(MED)
00038
00039 #include "SALOME_GenericObj_i.hh"
00040 #include "SMESH_Mesh_i.hxx"
00041
00042 class SMESH_Gen_i;
00043
00044 class SMESH_I_EXPORT SMESH_subMesh_i:
00045 public virtual POA_SMESH::SMESH_subMesh,
00046 public virtual SALOME::GenericObj_i
00047 {
00048 public:
00049 SMESH_subMesh_i();
00050 SMESH_subMesh_i( PortableServer::POA_ptr thePOA,
00051 SMESH_Gen_i* gen_i,
00052 SMESH_Mesh_i* mesh_i,
00053 int localId );
00054 ~SMESH_subMesh_i();
00055
00056 CORBA::Long GetNumberOfElements()
00057 throw (SALOME::SALOME_Exception);
00058
00059 CORBA::Long GetNumberOfNodes( CORBA::Boolean all )
00060 throw (SALOME::SALOME_Exception);
00061
00062 SMESH::long_array* GetElementsId()
00063 throw (SALOME::SALOME_Exception);
00064
00065 SMESH::long_array* GetElementsByType( SMESH::ElementType theElemType )
00066 throw (SALOME::SALOME_Exception);
00067
00068
00069
00070
00071 SMESH::ElementType GetElementType( CORBA::Long id, bool iselem )
00072 throw (SALOME::SALOME_Exception);
00073
00074 SMESH::long_array* GetNodesId()
00075 throw (SALOME::SALOME_Exception);
00076
00077 SMESH::SMESH_Mesh_ptr GetFather()
00078 throw (SALOME::SALOME_Exception);
00079
00080 GEOM::GEOM_Object_ptr GetSubShape()
00081 throw (SALOME::SALOME_Exception);
00082
00083 CORBA::Long GetId();
00084
00085 SALOME_MED::FAMILY_ptr GetFamily()
00086 throw (SALOME::SALOME_Exception);
00087
00088
00089
00090
00091
00095 virtual SMESH::long_array* GetIDs();
00101 virtual SMESH::long_array* GetMeshInfo();
00105 virtual SMESH::array_of_ElementType* GetTypes();
00109 SMESH::SMESH_Mesh_ptr GetMesh();
00110
00111
00112 SMESH_Mesh_i* _mesh_i;
00113
00114 protected:
00115 void changeLocalId(int localId) { _localId = localId; }
00116 SMESH_Gen_i* _gen_i;
00117 int _localId;
00118
00119 friend void SMESH_Mesh_i::CheckGeomGroupModif();
00120 };
00121
00122 #endif