1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( Kiran )
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESGeom_CurveOnSurface_HeaderFile
18 #define _IGESGeom_CurveOnSurface_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Integer.hxx>
24 #include <IGESData_IGESEntity.hxx>
25 class IGESData_IGESEntity;
28 class IGESGeom_CurveOnSurface;
29 DEFINE_STANDARD_HANDLE(IGESGeom_CurveOnSurface, IGESData_IGESEntity)
31 //! defines IGESCurveOnSurface, Type <142> Form <0>
32 //! in package IGESGeom
33 //! A curve on a parametric surface entity associates a given
34 //! curve with a surface and identifies the curve as lying on
36 class IGESGeom_CurveOnSurface : public IGESData_IGESEntity
42 Standard_EXPORT IGESGeom_CurveOnSurface();
44 //! This method is used to set the fields of the class
46 //! - aMode : Way the curve on the surface has been created
47 //! - aSurface : Surface on which the curve lies
48 //! - aCurveUV : Curve S (UV)
49 //! - aCurve3D : Curve C (3D)
50 //! - aPreference : 0 = Unspecified
51 //! 1 = S o B is preferred
52 //! 2 = C is preferred
53 //! 3 = C and S o B are equally preferred
54 Standard_EXPORT void Init (const Standard_Integer aMode, const Handle(IGESData_IGESEntity)& aSurface, const Handle(IGESData_IGESEntity)& aCurveUV, const Handle(IGESData_IGESEntity)& aCurve3D, const Standard_Integer aPreference);
56 //! returns the mode in which the curve is created on the surface
58 //! 1 = Projection of a given curve on the surface
59 //! 2 = Intersection of two surfaces
60 //! 3 = Isoparametric curve, i.e:- either a `u` parametric
61 //! or a `v` parametric curve
62 Standard_EXPORT Standard_Integer CreationMode() const;
64 //! returns the surface on which the curve lies
65 Standard_EXPORT Handle(IGESData_IGESEntity) Surface() const;
68 Standard_EXPORT Handle(IGESData_IGESEntity) CurveUV() const;
71 Standard_EXPORT Handle(IGESData_IGESEntity) Curve3D() const;
73 //! returns preference mode
75 //! 1 = S o B is preferred
76 //! 2 = C is preferred
77 //! 3 = C and S o B are equally preferred
78 Standard_EXPORT Standard_Integer PreferenceMode() const;
83 DEFINE_STANDARD_RTTIEXT(IGESGeom_CurveOnSurface,IGESData_IGESEntity)
93 Standard_Integer theCreationMode;
94 Handle(IGESData_IGESEntity) theSurface;
95 Handle(IGESData_IGESEntity) theCurveUV;
96 Handle(IGESData_IGESEntity) theCurve3D;
97 Standard_Integer thePreferenceMode;
108 #endif // _IGESGeom_CurveOnSurface_HeaderFile