1 // Copyright (C) 2015-2024 CEA, EDF, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _GEOMUtils_HTrsfCurve2d_HXX_
21 #define _GEOMUtils_HTrsfCurve2d_HXX_
24 #include <Basics_OCCTVersion.hxx>
26 #if OCC_VERSION_LARGE < 0x07070000
28 #include <GEOMUtils_TrsfCurve2d.hxx>
30 #include <Adaptor2d_HCurve2d.hxx>
38 DEFINE_STANDARD_HANDLE(HTrsfCurve2d, Adaptor2d_HCurve2d)
41 * This class represents an adaptor curve that represents an original curve
42 * transformed by an anisotropic transformation. This is a class manipulated
45 class HTrsfCurve2d : public Adaptor2d_HCurve2d
51 * Constructor. Initializes the object with the transformation parameters.
52 * Input parameters are not checked for validity. It is under responsibility
55 Standard_EXPORT HTrsfCurve2d(const Handle(Geom2d_Curve) &theCurve,
56 const Trsf2d &theTrsf);
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.
63 Standard_EXPORT HTrsfCurve2d(const Handle(Geom2d_Curve) &theCurve,
64 const Standard_Real theUFirst,
65 const Standard_Real theULast,
66 const Trsf2d &theTrsf);
69 * Redefined method from the base class.
71 const Adaptor2d_Curve2d &Curve2d() const
80 DEFINE_STANDARD_RTTIEXT(HTrsfCurve2d,Adaptor2d_HCurve2d)