mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-24 05:32:03 +05:00
Make the visualisation work with SSL gui mode
This commit is contained in:
parent
18d8f27e3e
commit
a195a4eb8f
@ -36,6 +36,7 @@ INCLUDE_DIRECTORIES(
|
|||||||
${PROJECT_SOURCE_DIR}/src/SMESHDS
|
${PROJECT_SOURCE_DIR}/src/SMESHDS
|
||||||
${PROJECT_SOURCE_DIR}/src/SMESH
|
${PROJECT_SOURCE_DIR}/src/SMESH
|
||||||
${PROJECT_SOURCE_DIR}/src/SMESHUtils
|
${PROJECT_SOURCE_DIR}/src/SMESHUtils
|
||||||
|
${PROJECT_SOURCE_DIR}/src/SMESH_I
|
||||||
${PROJECT_BINARY_DIR}/idl
|
${PROJECT_BINARY_DIR}/idl
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include "SMESHDS_Mesh.hxx"
|
#include "SMESHDS_Mesh.hxx"
|
||||||
#include "SMESHDS_Script.hxx"
|
#include "SMESHDS_Script.hxx"
|
||||||
#include "SMESH_Mesh.hxx"
|
#include "SMESH_Mesh.hxx"
|
||||||
|
#include "SMESH_Component_Generator.hxx"
|
||||||
|
|
||||||
#include "SALOME_NamingService.hxx"
|
#include "SALOME_NamingService.hxx"
|
||||||
#include "SALOME_LifeCycleCORBA.hxx"
|
#include "SALOME_LifeCycleCORBA.hxx"
|
||||||
@ -783,7 +784,11 @@ SMESH_Client::GetSMESHGen(CORBA::ORB_ptr theORB,
|
|||||||
{
|
{
|
||||||
static SMESH::SMESH_Gen_var aMeshGen;
|
static SMESH::SMESH_Gen_var aMeshGen;
|
||||||
|
|
||||||
if(CORBA::is_nil(aMeshGen.in())){
|
if(CORBA::is_nil(aMeshGen.in()))
|
||||||
|
{
|
||||||
|
Engines::EngineComponent_var isCompoInSSLMode = GetSMESHInstanceHasThis();
|
||||||
|
if( CORBA::is_nil(isCompoInSSLMode) )
|
||||||
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
long aClientPID = (long)_getpid();
|
long aClientPID = (long)_getpid();
|
||||||
#else
|
#else
|
||||||
@ -801,8 +806,13 @@ SMESH_Client::GetSMESHGen(CORBA::ORB_ptr theORB,
|
|||||||
CORBA::Long aServerPID = aServerContainer->getPID();
|
CORBA::Long aServerPID = aServerContainer->getPID();
|
||||||
aMeshGen->SetEmbeddedMode((aClientPID == aServerPID) && (aClientHostName == aServerHostName.in()));
|
aMeshGen->SetEmbeddedMode((aClientPID == aServerPID) && (aClientHostName == aServerHostName.in()));
|
||||||
}
|
}
|
||||||
theIsEmbeddedMode = aMeshGen->IsEmbeddedMode();
|
else
|
||||||
|
{
|
||||||
|
aMeshGen = SMESH::SMESH_Gen::_narrow(isCompoInSSLMode);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
theIsEmbeddedMode = aMeshGen->IsEmbeddedMode();
|
||||||
return aMeshGen;
|
return aMeshGen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,3 +53,8 @@ Engines::EngineComponent_var RetrieveSMESHInstance()
|
|||||||
}
|
}
|
||||||
return _unique_compo;
|
return _unique_compo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Engines::EngineComponent_var GetSMESHInstanceHasThis()
|
||||||
|
{
|
||||||
|
return _unique_compo;
|
||||||
|
}
|
||||||
|
@ -26,3 +26,4 @@
|
|||||||
#include CORBA_SERVER_HEADER(SMESH_Gen)
|
#include CORBA_SERVER_HEADER(SMESH_Gen)
|
||||||
|
|
||||||
SMESH_I_EXPORT Engines::EngineComponent_var RetrieveSMESHInstance();
|
SMESH_I_EXPORT Engines::EngineComponent_var RetrieveSMESHInstance();
|
||||||
|
SMESH_I_EXPORT Engines::EngineComponent_var GetSMESHInstanceHasThis();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user