PAL9199. add SetMeshIcon()

This commit is contained in:
eap 2005-07-06 11:22:01 +00:00
parent 50e9cd3fbf
commit ffccd77f47
3 changed files with 22 additions and 4 deletions

View File

@ -28,6 +28,7 @@
using namespace std;
#include "SMESHGUI_Swig.hxx"
#include "SMESHGUI_Utils.h"
#include "Utils_ORB_INIT.hxx"
#include "Utils_SINGLETON.hxx"
@ -50,10 +51,10 @@ using namespace std;
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)
{
@ -451,3 +452,16 @@ void SMESH_Swig::setOrb()
}
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 );
}

View File

@ -63,6 +63,8 @@ public:
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;

View File

@ -55,4 +55,6 @@ class SMESH_Swig
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);
};