0024428: Implementation of LGPL license
[occt.git] / src / StepGeom / StepGeom_SurfacePatch.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and / or modify it
6 // under the terms of the GNU Lesser General Public version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14 #include <StepGeom_SurfacePatch.ixx>
15
16
17 StepGeom_SurfacePatch::StepGeom_SurfacePatch ()  {}
18
19 void StepGeom_SurfacePatch::Init(
20         const Handle(StepGeom_BoundedSurface)& aParentSurface,
21         const StepGeom_TransitionCode aUTransition,
22         const StepGeom_TransitionCode aVTransition,
23         const Standard_Boolean aUSense,
24         const Standard_Boolean aVSense)
25 {
26         // --- classe own fields ---
27         parentSurface = aParentSurface;
28         uTransition = aUTransition;
29         vTransition = aVTransition;
30         uSense = aUSense;
31         vSense = aVSense;
32 }
33
34
35 void StepGeom_SurfacePatch::SetParentSurface(const Handle(StepGeom_BoundedSurface)& aParentSurface)
36 {
37         parentSurface = aParentSurface;
38 }
39
40 Handle(StepGeom_BoundedSurface) StepGeom_SurfacePatch::ParentSurface() const
41 {
42         return parentSurface;
43 }
44
45 void StepGeom_SurfacePatch::SetUTransition(const StepGeom_TransitionCode aUTransition)
46 {
47         uTransition = aUTransition;
48 }
49
50 StepGeom_TransitionCode StepGeom_SurfacePatch::UTransition() const
51 {
52         return uTransition;
53 }
54
55 void StepGeom_SurfacePatch::SetVTransition(const StepGeom_TransitionCode aVTransition)
56 {
57         vTransition = aVTransition;
58 }
59
60 StepGeom_TransitionCode StepGeom_SurfacePatch::VTransition() const
61 {
62         return vTransition;
63 }
64
65 void StepGeom_SurfacePatch::SetUSense(const Standard_Boolean aUSense)
66 {
67         uSense = aUSense;
68 }
69
70 Standard_Boolean StepGeom_SurfacePatch::USense() const
71 {
72         return uSense;
73 }
74
75 void StepGeom_SurfacePatch::SetVSense(const Standard_Boolean aVSense)
76 {
77         vSense = aVSense;
78 }
79
80 Standard_Boolean StepGeom_SurfacePatch::VSense() const
81 {
82         return vSense;
83 }