b311480e |
1 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
2 | // |
3 | // The content of this file is subject to the Open CASCADE Technology Public |
4 | // License Version 6.5 (the "License"). You may not use the content of this file |
5 | // except in compliance with the License. Please obtain a copy of the License |
6 | // at http://www.opencascade.org and read it completely before using this file. |
7 | // |
8 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
9 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
10 | // |
11 | // The Original Code and all software distributed under the License is |
12 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
13 | // Initial Developer hereby disclaims all such warranties, including without |
14 | // limitation, any warranties of merchantability, fitness for a particular |
15 | // purpose or non-infringement. Please see the License for the specific terms |
16 | // and conditions governing the rights and limitations under the License. |
17 | |
7fd59977 |
18 | #include <StepGeom_SurfacePatch.ixx> |
19 | |
20 | |
21 | StepGeom_SurfacePatch::StepGeom_SurfacePatch () {} |
22 | |
23 | void StepGeom_SurfacePatch::Init( |
24 | const Handle(StepGeom_BoundedSurface)& aParentSurface, |
25 | const StepGeom_TransitionCode aUTransition, |
26 | const StepGeom_TransitionCode aVTransition, |
27 | const Standard_Boolean aUSense, |
28 | const Standard_Boolean aVSense) |
29 | { |
30 | // --- classe own fields --- |
31 | parentSurface = aParentSurface; |
32 | uTransition = aUTransition; |
33 | vTransition = aVTransition; |
34 | uSense = aUSense; |
35 | vSense = aVSense; |
36 | } |
37 | |
38 | |
39 | void StepGeom_SurfacePatch::SetParentSurface(const Handle(StepGeom_BoundedSurface)& aParentSurface) |
40 | { |
41 | parentSurface = aParentSurface; |
42 | } |
43 | |
44 | Handle(StepGeom_BoundedSurface) StepGeom_SurfacePatch::ParentSurface() const |
45 | { |
46 | return parentSurface; |
47 | } |
48 | |
49 | void StepGeom_SurfacePatch::SetUTransition(const StepGeom_TransitionCode aUTransition) |
50 | { |
51 | uTransition = aUTransition; |
52 | } |
53 | |
54 | StepGeom_TransitionCode StepGeom_SurfacePatch::UTransition() const |
55 | { |
56 | return uTransition; |
57 | } |
58 | |
59 | void StepGeom_SurfacePatch::SetVTransition(const StepGeom_TransitionCode aVTransition) |
60 | { |
61 | vTransition = aVTransition; |
62 | } |
63 | |
64 | StepGeom_TransitionCode StepGeom_SurfacePatch::VTransition() const |
65 | { |
66 | return vTransition; |
67 | } |
68 | |
69 | void StepGeom_SurfacePatch::SetUSense(const Standard_Boolean aUSense) |
70 | { |
71 | uSense = aUSense; |
72 | } |
73 | |
74 | Standard_Boolean StepGeom_SurfacePatch::USense() const |
75 | { |
76 | return uSense; |
77 | } |
78 | |
79 | void StepGeom_SurfacePatch::SetVSense(const Standard_Boolean aVSense) |
80 | { |
81 | vSense = aVSense; |
82 | } |
83 | |
84 | Standard_Boolean StepGeom_SurfacePatch::VSense() const |
85 | { |
86 | return vSense; |
87 | } |