Salome HOME
a0141117a37cd94706acc7b4fe81b3f08e67d761
[modules/smesh.git] / src / StdMeshers_I / StdMeshers_Projection_1D_2D_3D_i.hxx
1 // Copyright (C) 2007-2019  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 //  File   : StdMeshers_Projection_1D_2D_3D_i.hxx
23 //  Module : SMESH
24 //
25 #ifndef _SMESH_Projection_1D2D3D_I_HXX_
26 #define _SMESH_Projection_1D2D3D_I_HXX_
27
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
30
31 #include "SMESH_1D_Algo_i.hxx"
32 #include "SMESH_2D_Algo_i.hxx"
33 #include "SMESH_3D_Algo_i.hxx"
34 #include "StdMeshers_Projection_1D.hxx"
35 #include "StdMeshers_Projection_1D2D.hxx"
36 #include "StdMeshers_Projection_2D.hxx"
37 #include "StdMeshers_Projection_3D.hxx"
38
39 class SMESH_Gen;
40 class TopoDS_Shape;
41
42 // ======================================================
43 // Projection 3D algorithm
44 // ======================================================
45
46 class StdMeshers_Projection_3D_i:
47   public virtual POA_StdMeshers::StdMeshers_Projection_3D,
48   public virtual SMESH_3D_Algo_i
49 {
50 public:
51   // Constructor
52   StdMeshers_Projection_3D_i( PortableServer::POA_ptr thePOA,
53                               ::SMESH_Gen*            theGenImpl );
54
55   // Destructor
56   virtual ~StdMeshers_Projection_3D_i();
57
58   // Get implementation
59   ::StdMeshers_Projection_3D* GetImpl();
60
61   // Return true if the algorithm is applicable to a shape
62   static CORBA::Boolean IsApplicable(const TopoDS_Shape &S, CORBA::Boolean toCheckAll);
63 };
64
65 // ======================================================
66 // Projection 2D algorithm
67 // ======================================================
68
69 class StdMeshers_Projection_2D_i:
70   public virtual POA_StdMeshers::StdMeshers_Projection_2D,
71   public virtual SMESH_2D_Algo_i
72 {
73 public:
74   // Constructor
75   StdMeshers_Projection_2D_i( PortableServer::POA_ptr thePOA,
76                               ::SMESH_Gen*            theGenImpl );
77
78   // Destructor
79   virtual ~StdMeshers_Projection_2D_i();
80
81   // Get implementation
82   ::StdMeshers_Projection_2D* GetImpl();
83 };
84
85 // ======================================================
86 // Projection 1D-2D algorithm
87 // ======================================================
88
89 class StdMeshers_Projection_1D2D_i:
90   public virtual POA_StdMeshers::StdMeshers_Projection_1D2D,
91   public virtual SMESH_2D_Algo_i
92 {
93 public:
94   // Constructor
95   StdMeshers_Projection_1D2D_i( PortableServer::POA_ptr thePOA,
96                                 ::SMESH_Gen*            theGenImpl );
97
98   // Destructor
99   virtual ~StdMeshers_Projection_1D2D_i();
100
101   // Get implementation
102   ::StdMeshers_Projection_1D2D* GetImpl();
103 };
104
105 // ======================================================
106 // Projection 1D algorithm
107 // ======================================================
108
109 class StdMeshers_Projection_1D_i:
110   public virtual POA_StdMeshers::StdMeshers_Projection_1D,
111   public virtual SMESH_1D_Algo_i
112 {
113 public:
114   // Constructor
115   StdMeshers_Projection_1D_i( PortableServer::POA_ptr thePOA,
116                               ::SMESH_Gen*            theGenImpl );
117
118   // Destructor
119   virtual ~StdMeshers_Projection_1D_i();
120
121   // Get implementation
122   ::StdMeshers_Projection_1D* GetImpl();
123 };
124
125
126 #endif