973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
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. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
7fd59977 |
14 | |
42cf5bc1 |
15 | #include <Standard_Type.hxx> |
16 | #include <StepGeom_BoundedSurface.hxx> |
17 | #include <StepGeom_SurfacePatch.hxx> |
7fd59977 |
18 | |
92efcf78 |
19 | IMPLEMENT_STANDARD_RTTIEXT(StepGeom_SurfacePatch,MMgt_TShared) |
20 | |
7fd59977 |
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 | } |