using namespace std;
#include "SMESHGUI_Swig.hxx"
+#include "SMESHGUI_Utils.h"
#include "Utils_ORB_INIT.hxx"
#include "Utils_SINGLETON.hxx"
static CORBA::ORB_var _orb;
-static char* ObjectToString (CORBA::Object_ptr obj)
-{
- return _orb->object_to_string(obj);
-}
+// static char* ObjectToString (CORBA::Object_ptr obj)
+// {
+// return _orb->object_to_string(obj);
+// }
static CORBA::Object_ptr StringToObject (const char* ior)
{
}
ASSERT(! CORBA::is_nil(_orb));
}
+
+//=======================================================================
+//function : SetMeshIcon
+//purpose :
+//=======================================================================
+
+void SMESH_Swig::SetMeshIcon(const char* Mesh_Entry, const bool isComputed)
+{
+ SALOMEDS::SObject_var mesh = myStudy->FindObjectID( Mesh_Entry );
+ if ( !mesh->_is_nil() )
+ SMESH::ModifiedMesh( mesh, isComputed );
+}
+
void SetName(const char* Entry, const char* Name);
+ void SetMeshIcon(const char* Mesh_Entry, const bool isComputed);
+
private:
SALOMEDS::Study_var myStudy;
SALOMEDS::StudyBuilder_var myStudyBuilder;
const char* AddSubMeshOnShape (const char* Mesh_Entry, const char* GeomShape_Entry, const char* SM_IOR, int ST);
void SetName(const char* Entry, const char* Name);
+
+ void SetMeshIcon(const char* Mesh_Entry, const bool isComputed);
};