Salome HOME
updated copyright message
[modules/geom.git] / src / GEOMUtils / GEOMUtils_HTrsfCurve2d.hxx
1 // Copyright (C) 2015-2023  CEA, EDF, 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
20 #ifndef _GEOMUtils_HTrsfCurve2d_HXX_
21 #define _GEOMUtils_HTrsfCurve2d_HXX_
22
23
24 #include <Basics_OCCTVersion.hxx>
25
26 #if OCC_VERSION_LARGE < 0x07070000
27
28 #include <GEOMUtils_TrsfCurve2d.hxx>
29
30 #include <Adaptor2d_HCurve2d.hxx>
31
32
33 namespace GEOMUtils
34 {
35
36   class HTrsfCurve2d;
37
38   DEFINE_STANDARD_HANDLE(HTrsfCurve2d, Adaptor2d_HCurve2d)
39
40   /*!
41    *  This class represents an adaptor curve that represents an original curve
42    *  transformed by an anisotropic transformation. This is a class manipulated
43    *  by handle.
44    */
45   class HTrsfCurve2d : public Adaptor2d_HCurve2d
46   {
47
48   public:
49     
50     /**
51      * Constructor. Initializes the object with the transformation parameters.
52      * Input parameters are not checked for validity. It is under responsibility
53      * of the caller.
54      */
55     Standard_EXPORT HTrsfCurve2d(const Handle(Geom2d_Curve) &theCurve,
56                                  const Trsf2d               &theTrsf);
57     
58     /**
59      * Constructor. Initializes the object with the curve, first and last
60      * parameters and transformation. Input parameters are not checked
61      * for validity. It is under responsibility of the caller.
62      */
63     Standard_EXPORT HTrsfCurve2d(const Handle(Geom2d_Curve) &theCurve,
64                                  const Standard_Real         theUFirst,
65                                  const Standard_Real         theULast,
66                                  const Trsf2d               &theTrsf);
67
68     /**
69      * Redefined method from the base class.
70      */
71     const Adaptor2d_Curve2d &Curve2d() const
72     { return myCurve; }
73
74   private:
75
76     TrsfCurve2d myCurve;
77
78   public:
79
80   DEFINE_STANDARD_RTTIEXT(HTrsfCurve2d,Adaptor2d_HCurve2d)
81   };
82 }
83
84 #endif
85
86 #endif