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
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
00080
00081
00082
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