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