mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 13:10:34 +05:00
IPAL0052195: TC7.3.0: Application crashes after closing "Add Quadratic Edge" dialog
This commit is contained in:
parent
26a602248d
commit
68e9313a5e
@ -113,7 +113,7 @@ namespace
|
|||||||
}
|
}
|
||||||
namespace SMESH
|
namespace SMESH
|
||||||
{
|
{
|
||||||
class TElementSimulation {
|
class TElementSimulationQuad {
|
||||||
SalomeApp_Application* myApplication;
|
SalomeApp_Application* myApplication;
|
||||||
SUIT_ViewWindow* myViewWindow;
|
SUIT_ViewWindow* myViewWindow;
|
||||||
SVTK_ViewWindow* myVTKViewWindow;
|
SVTK_ViewWindow* myVTKViewWindow;
|
||||||
@ -130,7 +130,7 @@ namespace SMESH
|
|||||||
SMESH_FaceOrientationFilter* myFaceOrientationFilter;
|
SMESH_FaceOrientationFilter* myFaceOrientationFilter;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TElementSimulation (SalomeApp_Application* theApplication)
|
TElementSimulationQuad (SalomeApp_Application* theApplication)
|
||||||
{
|
{
|
||||||
myApplication = theApplication;
|
myApplication = theApplication;
|
||||||
SUIT_ViewManager* mgr = theApplication->activeViewManager();
|
SUIT_ViewManager* mgr = theApplication->activeViewManager();
|
||||||
@ -230,7 +230,7 @@ namespace SMESH
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
~TElementSimulation()
|
~TElementSimulationQuad()
|
||||||
{
|
{
|
||||||
if (FindVtkViewWindow(myApplication->activeViewManager(), myViewWindow)) {
|
if (FindVtkViewWindow(myApplication->activeViewManager(), myViewWindow)) {
|
||||||
myVTKViewWindow->RemoveActor(myPreviewActor);
|
myVTKViewWindow->RemoveActor(myPreviewActor);
|
||||||
@ -344,7 +344,7 @@ SMESHGUI_AddQuadraticElementDlg::SMESHGUI_AddQuadraticElementDlg( SMESHGUI* theM
|
|||||||
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>
|
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>
|
||||||
(SUIT_Session::session()->activeApplication());
|
(SUIT_Session::session()->activeApplication());
|
||||||
|
|
||||||
mySimulation = new SMESH::TElementSimulation (anApp);
|
mySimulation = new SMESH::TElementSimulationQuad (anApp);
|
||||||
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
|
||||||
|
|
||||||
QString anElementName;
|
QString anElementName;
|
||||||
@ -1039,7 +1039,7 @@ void SMESHGUI_AddQuadraticElementDlg::displaySimulation()
|
|||||||
{
|
{
|
||||||
if ( IsValid() )
|
if ( IsValid() )
|
||||||
{
|
{
|
||||||
SMESH::TElementSimulation::TVTKIds anIds;
|
SMESH::TElementSimulationQuad::TVTKIds anIds;
|
||||||
|
|
||||||
// Collect ids from the dialog
|
// Collect ids from the dialog
|
||||||
int anID;
|
int anID;
|
||||||
|
@ -54,7 +54,7 @@ class LightApp_SelectionMgr;
|
|||||||
|
|
||||||
namespace SMESH
|
namespace SMESH
|
||||||
{
|
{
|
||||||
struct TElementSimulation;
|
struct TElementSimulationQuad;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
@ -92,7 +92,7 @@ private:
|
|||||||
|
|
||||||
SMESH::SMESH_Mesh_var myMesh;
|
SMESH::SMESH_Mesh_var myMesh;
|
||||||
SMESH_Actor* myActor;
|
SMESH_Actor* myActor;
|
||||||
SMESH::TElementSimulation* mySimulation;
|
SMESH::TElementSimulationQuad* mySimulation;
|
||||||
QString myEntry;
|
QString myEntry;
|
||||||
GrpList myGroups;
|
GrpList myGroups;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user