Salome HOME
fbe4c492eb04c3a68230c2b07d433afd0d5941d4
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_CoupleOfShapes.hxx
1 // Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // File:        GEOMAlgo_CoupleOfShapes.hxx
20 // Created:     Wed Dec 15 13:03:52 2004
21 // Author:      Peter KURNEV
22 //              <pkv@irinox>
23 //
24
25 #ifndef _GEOMAlgo_CoupleOfShapes_HeaderFile
26 #define _GEOMAlgo_CoupleOfShapes_HeaderFile
27
28 #include <Standard.hxx>
29 #include <Standard_Macro.hxx>
30 #include <TopoDS_Shape.hxx>
31
32 //=======================================================================
33 //class    : GEOMAlgo_CoupleOfShapes
34 //purpose  :
35 //=======================================================================
36 class GEOMAlgo_CoupleOfShapes
37 {
38  public:
39   Standard_EXPORT
40     GEOMAlgo_CoupleOfShapes();
41
42   Standard_EXPORT
43     void SetShapes(const TopoDS_Shape& aS1,const TopoDS_Shape& aS2) ;
44
45   Standard_EXPORT
46     void SetShape1(const TopoDS_Shape& aS1) ;
47
48   Standard_EXPORT
49     void SetShape2(const TopoDS_Shape& aS2) ;
50
51   Standard_EXPORT
52     void Shapes(TopoDS_Shape& aS1,TopoDS_Shape& aS2) const;
53
54   Standard_EXPORT
55     const TopoDS_Shape& Shape1() const;
56
57   Standard_EXPORT
58     const TopoDS_Shape& Shape2() const;
59
60 protected:
61   TopoDS_Shape myShape1;
62   TopoDS_Shape myShape2;
63 };
64 #endif