Version: 6.3.1
Public Member Functions | Protected Member Functions | Private Attributes

SMESHGUI_ComputeDlg_QThread Class Reference

Thread to launch computation. More...

#include <SMESHGUI_ComputeDlg.h>

Inheritance diagram for SMESHGUI_ComputeDlg_QThread:
Inheritance graph
[legend]

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

Detailed Description

Thread to launch computation.

Definition at line 268 of file SMESHGUI_ComputeDlg.h.


Constructor & Destructor Documentation

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;
}

Member Function Documentation

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);
}

Field Documentation

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().

Definition at line 286 of file SMESHGUI_ComputeDlg.h.

Referenced by result(), run(), and SMESHGUI_ComputeDlg_QThread().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS