1 // File : SMESHGUI_StudyAPI.h
2 // Created : Fri May 17 15:23:35 CEST 2002
3 // Author : Yves FRICAUD
6 // Copyright : Open CASCADE
9 #ifndef _INCLUDE_SMESHGUI_StudyAPI_
10 #define _INCLUDE_SMESHGUI_StudyAPI_
13 #include <SALOMEconfig.h>
14 #include CORBA_SERVER_HEADER(SMESH_Gen)
15 #include CORBA_SERVER_HEADER(SMESH_Mesh)
16 #include CORBA_SERVER_HEADER(SMESH_Hypothesis)
17 #include CORBA_SERVER_HEADER(GEOM_Shape)
18 #include CORBA_SERVER_HEADER(SALOMEDS)
19 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
21 class SMESH_subMesh_ptr;
23 class SMESHGUI_StudyAPI {
29 SMESHGUI_StudyAPI ( SALOMEDS::Study_ptr aStudy, SMESH::SMESH_Gen_ptr Gen);
31 ~SMESHGUI_StudyAPI ();
34 CORBA::Object_ptr StringToIOR(const char* IOR);
36 SALOMEDS::SObject_ptr AddNewMesh (SMESH::SMESH_Mesh_ptr M);
38 SALOMEDS::SObject_ptr AddNewHypothesis (SMESH::SMESH_Hypothesis_ptr H);
39 SALOMEDS::SObject_ptr AddNewAlgorithms (SMESH::SMESH_Hypothesis_ptr H);
41 SALOMEDS::SObject_ptr AddSubMeshOnShape (SALOMEDS::SObject_ptr SO_Mesh, SMESH::SMESH_subMesh_ptr SM, GEOM::shape_type ST);
43 SALOMEDS::SObject_ptr AddSubMeshOnShape (SALOMEDS::SObject_ptr SO_Mesh, SALOMEDS::SObject_ptr SO_GeomShape, SMESH::SMESH_subMesh_ptr SM, GEOM::shape_type ST);
45 void Update(SMESH::SMESH_Gen_ptr Gen);
47 void ModifiedMesh( SALOMEDS::SObject_ptr MorSM, bool right);
50 void SetShape (SALOMEDS::SObject_ptr SO_Mesh_Or_SubMesh, SALOMEDS::SObject_ptr SO_GeomShape);
51 GEOM::GEOM_Shape_ptr GetShapeOnMeshOrSubMesh(SALOMEDS::SObject_ptr SO_Mesh_Or_SubMesh);
53 void SetHypothesis (SALOMEDS::SObject_ptr SO_Mesh_Or_SubMesh, SALOMEDS::SObject_ptr SO_Hypothesis);
54 void SetAlgorithms (SALOMEDS::SObject_ptr SO_Mesh_Or_SubMesh, SALOMEDS::SObject_ptr SO_Algorithms);
56 void UnSetHypothesis (SALOMEDS::SObject_ptr SO_Applied_Hypothesis);
57 void UnSetAlgorithm (SALOMEDS::SObject_ptr SO_Applied_Algorithm);
59 void SetTagHypothesisRoot();
61 void SetName( SALOMEDS::SObject_ptr SO, const char* Name ) ;
65 SALOMEDS::SObject_ptr GetMeshOrSubmesh (SALOMEDS::SObject_ptr SO);
67 SALOMEDS::SObject_ptr FindMesh (SMESH::SMESH_Mesh_ptr M);
69 SALOMEDS::SObject_ptr FindHypothesisOrAlgorithms (SMESH::SMESH_Hypothesis_ptr H);
71 SALOMEDS::SObject_ptr FindSubMesh (SMESH::SMESH_subMesh_ptr SM);
73 //SALOMEDS::ListOfSObject_ptr FindMesh (SALOMEDS_SObject_ptr SO_GeomShape);
74 //SALOMEDS_SObject_ptr FindSubMesh (SALOMEDS_SObject_ptr SO_Mesh, SALOMEDS_SObject_ptr SO_GeomShape);
80 SALOMEDS::Study_var myStudy;
81 SALOMEDS::StudyBuilder_var myStudyBuilder;
82 SALOMEDS::SComponent_var mySComponentMesh;