Salome HOME
3a5a6dfeaf7848534038403d087b914e1a7ee4a0
[modules/smesh.git] / src / SMESH / SMESH_SequentialMesh.hxx
1 // Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 //  File   : SMESH_SequentialMesh.hxx
24 //  Author : Yoann AUDOUIN, EDF
25 //  Module : SMESH
26 //
27 #ifndef _SMESH_SEQUENTIALMESH_HXX_
28 #define _SMESH_SEQUENTIALMESH_HXX_
29
30 #include "SMESH_Mesh.hxx"
31
32 #include "SMESH_Gen.hxx"
33 #include "SMESH_subMesh.hxx"
34
35 class SMESH_EXPORT SMESH_SequentialMesh: public SMESH_Mesh
36 {
37  public:
38   SMESH_SequentialMesh(int               theLocalId,
39                        SMESH_Gen*        theGen,
40                        bool              theIsEmbeddedMode,
41                        SMESHDS_Document* theDocument);
42
43   virtual ~SMESH_SequentialMesh();
44
45   void Lock() override {};
46   void Unlock() override {};
47
48   int GetNbThreads() override {return 0;};
49   void SetNbThreads(long nbThreads) {(void) nbThreads;};
50
51   void InitPoolThreads() override {};
52   void DeletePoolThreads() override {};
53   void wait() override {};
54
55   bool IsParallel() override {return false;};
56
57   bool ComputeSubMeshes (
58             SMESH_Gen* gen,
59             SMESH_Mesh & aMesh,
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;
68
69  protected:
70   SMESH_SequentialMesh():SMESH_Mesh() {};
71   SMESH_SequentialMesh(const SMESH_SequentialMesh& aMesh):SMESH_Mesh(aMesh) {};
72 };
73 #endif