mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
PAL9199. add SetMeshIcon()
This commit is contained in:
parent
50e9cd3fbf
commit
ffccd77f47
@ -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 );
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user