Thread to launch computation. More...
#include <SMESHGUI_ComputeDlg.h>

Public Member Functions | |
| SMESHGUI_ComputeDlg_QThread (SMESH::SMESH_Gen_var gen, SMESH::SMESH_Mesh_var mesh, GEOM::GEOM_Object_var mainShape) | |
| bool | result () |
| void | cancel () |
Protected Member Functions | |
| void | run () |
Private Attributes | |
| SMESH::SMESH_Gen_var | myGen |
| SMESH::SMESH_Mesh_var | myMesh |
| GEOM::GEOM_Object_var | myMainShape |
| bool | myResult |
Thread to launch computation.
Definition at line 268 of file SMESHGUI_ComputeDlg.h.
| SMESHGUI_ComputeDlg_QThread::SMESHGUI_ComputeDlg_QThread | ( | SMESH::SMESH_Gen_var | gen, |
| SMESH::SMESH_Mesh_var | mesh, | ||
| GEOM::GEOM_Object_var | mainShape | ||
| ) |
Definition at line 678 of file SMESHGUI_ComputeDlg.cxx.
References PAL_MESH_041_mesh.mesh, myGen, myMainShape, myMesh, and myResult.
{
myResult = false;
myGen = gen;
myMesh = mesh;
myMainShape = mainShape;
}
| void SMESHGUI_ComputeDlg_QThread::cancel | ( | ) |
Definition at line 698 of file SMESHGUI_ComputeDlg.cxx.
References myGen, myMainShape, and myMesh.
Referenced by SMESHGUI_ComputeDlg_QThreadQDialog.onCancel().
{
myGen->CancelCompute(myMesh, myMainShape);
}
| bool SMESHGUI_ComputeDlg_QThread::result | ( | ) |
Definition at line 693 of file SMESHGUI_ComputeDlg.cxx.
References myResult.
Referenced by SMESHGUI_ComputeDlg_QThreadQDialog.result().
{
return myResult;
}
| void SMESHGUI_ComputeDlg_QThread::run | ( | ) | [protected] |
Definition at line 688 of file SMESHGUI_ComputeDlg.cxx.
References myGen, myMainShape, myMesh, and myResult.
{
myResult = myGen->Compute(myMesh, myMainShape);
}
SMESH::SMESH_Gen_var SMESHGUI_ComputeDlg_QThread.myGen [private] |
Definition at line 283 of file SMESHGUI_ComputeDlg.h.
Referenced by cancel(), run(), and SMESHGUI_ComputeDlg_QThread().
GEOM::GEOM_Object_var SMESHGUI_ComputeDlg_QThread.myMainShape [private] |
Definition at line 285 of file SMESHGUI_ComputeDlg.h.
Referenced by cancel(), run(), and SMESHGUI_ComputeDlg_QThread().
SMESH::SMESH_Mesh_var SMESHGUI_ComputeDlg_QThread.myMesh [private] |
Definition at line 284 of file SMESHGUI_ComputeDlg.h.
Referenced by cancel(), run(), and SMESHGUI_ComputeDlg_QThread().
bool SMESHGUI_ComputeDlg_QThread.myResult [private] |
Definition at line 286 of file SMESHGUI_ComputeDlg.h.
Referenced by result(), run(), and SMESHGUI_ComputeDlg_QThread().