mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 10:57:26 +05:00
Some changes for bug PAL14022.
This commit is contained in:
parent
5564653998
commit
f2e8eabef3
@ -34,10 +34,13 @@
|
|||||||
#include "SMESHGUI.h"
|
#include "SMESHGUI.h"
|
||||||
#include "SMESHGUI_Utils.h"
|
#include "SMESHGUI_Utils.h"
|
||||||
#include "SMESHGUI_GEOMGenUtils.h"
|
#include "SMESHGUI_GEOMGenUtils.h"
|
||||||
|
#include "SMESHGUI_Displayer.h"
|
||||||
|
|
||||||
// SALOME Includes
|
// SALOME Includes
|
||||||
#include "SUIT_ResourceMgr.h"
|
#include "SUIT_ResourceMgr.h"
|
||||||
#include "SUIT_Session.h"
|
#include "SUIT_Session.h"
|
||||||
|
#include "SUIT_ViewModel.h"
|
||||||
|
#include "VTKViewer_ViewModel.h"
|
||||||
|
|
||||||
#include "SALOME_Event.hxx"
|
#include "SALOME_Event.hxx"
|
||||||
#include "SALOME_NamingService.hxx"
|
#include "SALOME_NamingService.hxx"
|
||||||
@ -584,6 +587,27 @@ SMESH_Swig::AddSubMeshOnShape(const char* theMeshEntry,
|
|||||||
void SMESH_Swig::CreateAndDisplayActor( const char* Mesh_Entry )
|
void SMESH_Swig::CreateAndDisplayActor( const char* Mesh_Entry )
|
||||||
{
|
{
|
||||||
// SMESH_Actor* Mesh = smeshGUI->ReadScript(aM);
|
// SMESH_Actor* Mesh = smeshGUI->ReadScript(aM);
|
||||||
|
class TEvent: public SALOME_Event
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
const char* _entry;
|
||||||
|
public:
|
||||||
|
TEvent(const char* Mesh_Entry) {
|
||||||
|
_entry = Mesh_Entry;
|
||||||
|
}
|
||||||
|
virtual void Execute() {
|
||||||
|
//SMESH::UpdateView(SMESH::eDisplay, _entry);
|
||||||
|
SUIT_Session* aSession = SUIT_Session::session();
|
||||||
|
SUIT_Application* anApplication = aSession->activeApplication();
|
||||||
|
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>(anApplication);
|
||||||
|
SUIT_ViewManager* vman = anApp->getViewManager(VTKViewer_Viewer::Type(),true);
|
||||||
|
SMESHGUI_Displayer* aDisp = new SMESHGUI_Displayer(anApp);
|
||||||
|
aDisp->Display(_entry,1);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
ProcessVoidEvent(new TEvent(Mesh_Entry));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -74,4 +74,6 @@ class SMESH_Swig
|
|||||||
void SetName(const char* Entry, const char* Name);
|
void SetName(const char* Entry, const char* Name);
|
||||||
|
|
||||||
void SetMeshIcon(const char* Mesh_Entry, const bool isComputed);
|
void SetMeshIcon(const char* Mesh_Entry, const bool isComputed);
|
||||||
|
|
||||||
|
void CreateAndDisplayActor( const char* Mesh_Entry );
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user