1 // Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : SMESH_SequentialMesh.hxx
24 // Author : Yoann AUDOUIN, EDF
27 #ifndef _SMESH_SEQUENTIALMESH_HXX_
28 #define _SMESH_SEQUENTIALMESH_HXX_
30 #include "SMESH_Mesh.hxx"
32 #include "SMESH_Gen.hxx"
33 #include "SMESH_subMesh.hxx"
35 class SMESH_EXPORT SMESH_SequentialMesh: public SMESH_Mesh
38 SMESH_SequentialMesh(int theLocalId,
40 bool theIsEmbeddedMode,
41 SMESHDS_Document* theDocument);
43 virtual ~SMESH_SequentialMesh();
45 void Lock() override {};
46 void Unlock() override {};
48 int GetNbThreads() override {return 0;};
49 void SetNbThreads(long nbThreads) {(void) nbThreads;};
51 void InitPoolThreads() override {};
52 void DeletePoolThreads() override {};
53 void wait() override {};
55 bool IsParallel() override {return false;};
57 bool ComputeSubMeshes (
60 const TopoDS_Shape & aShape,
61 const ::MeshDimension aDim,
62 TSetOfInt* aShapesId /*=0*/,
63 TopTools_IndexedMapOfShape* allowedSubShapes,
64 SMESH_subMesh::compute_event &computeEvent,
65 const bool includeSelf,
66 const bool complexShapeFirst,
67 const bool aShapeOnly) override;
70 SMESH_SequentialMesh():SMESH_Mesh() {};
71 SMESH_SequentialMesh(const SMESH_SequentialMesh& aMesh):SMESH_Mesh(aMesh) {};