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