0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / IGESGeom / IGESGeom_CurveOnSurface.hxx
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
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _IGESGeom_CurveOnSurface_HeaderFile
18 #define _IGESGeom_CurveOnSurface_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Integer.hxx>
24 #include <IGESData_IGESEntity.hxx>
25 class IGESData_IGESEntity;
26
27
28 class IGESGeom_CurveOnSurface;
29 DEFINE_STANDARD_HANDLE(IGESGeom_CurveOnSurface, IGESData_IGESEntity)
30
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
35 //! the surface.
36 class IGESGeom_CurveOnSurface : public IGESData_IGESEntity
37 {
38
39 public:
40
41   
42   Standard_EXPORT IGESGeom_CurveOnSurface();
43   
44   //! This method is used to set the fields of the class
45   //! CurveOnSurface
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);
55   
56   //! returns the mode in which the curve is created on the surface
57   //! 0 = Unspecified
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;
63   
64   //! returns the surface on which the curve lies
65   Standard_EXPORT Handle(IGESData_IGESEntity) Surface() const;
66   
67   //! returns curve S
68   Standard_EXPORT Handle(IGESData_IGESEntity) CurveUV() const;
69   
70   //! returns curve C
71   Standard_EXPORT Handle(IGESData_IGESEntity) Curve3D() const;
72   
73   //! returns preference mode
74   //! 0 = Unspecified
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;
79
80
81
82
83   DEFINE_STANDARD_RTTIEXT(IGESGeom_CurveOnSurface,IGESData_IGESEntity)
84
85 protected:
86
87
88
89
90 private:
91
92
93   Standard_Integer theCreationMode;
94   Handle(IGESData_IGESEntity) theSurface;
95   Handle(IGESData_IGESEntity) theCurveUV;
96   Handle(IGESData_IGESEntity) theCurve3D;
97   Standard_Integer thePreferenceMode;
98
99
100 };
101
102
103
104
105
106
107
108 #endif // _IGESGeom_CurveOnSurface_HeaderFile