X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Gen.hxx;h=311fe4aad4d8581942fcf1c63fc48d04f9e38927;hp=a9af382ef5061cc22a8f69985af2874ea61b08f4;hb=c4bd4ff43b510056ee6a6b0ffdf8693c4adb1be5;hpb=911977bc89d1e9527b0a4ac4c22823116b2e883c diff --git a/src/SMESH/SMESH_Gen.hxx b/src/SMESH/SMESH_Gen.hxx index a9af382ef..311fe4aad 100644 --- a/src/SMESH/SMESH_Gen.hxx +++ b/src/SMESH/SMESH_Gen.hxx @@ -83,6 +83,13 @@ public: const ::MeshDimension aDim=::MeshDim_3D, TSetOfInt* aShapesId=0); +#ifdef WITH_SMESH_CANCEL_COMPUTE + void PrepareCompute(::SMESH_Mesh & aMesh, + const TopoDS_Shape & aShape); + void CancelCompute(::SMESH_Mesh & aMesh, + const TopoDS_Shape & aShape); +#endif + /*! * \brief evaluates size of prospective mesh on a shape * \param aMesh - the mesh @@ -162,6 +169,11 @@ private: // default of segments int _nbSegments; counters *_counters; + +#ifdef WITH_SMESH_CANCEL_COMPUTE + volatile bool _compute_canceled; + SMESH_subMesh* _sm_current; +#endif }; #endif