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 | #include <StepGeom_RectangularTrimmedSurface.ixx> |
15 | |
16 | |
17 | StepGeom_RectangularTrimmedSurface::StepGeom_RectangularTrimmedSurface () {} |
18 | |
19 | void StepGeom_RectangularTrimmedSurface::Init( |
20 | const Handle(TCollection_HAsciiString)& aName) |
21 | { |
22 | |
23 | StepRepr_RepresentationItem::Init(aName); |
24 | } |
25 | |
26 | void StepGeom_RectangularTrimmedSurface::Init( |
27 | const Handle(TCollection_HAsciiString)& aName, |
28 | const Handle(StepGeom_Surface)& aBasisSurface, |
29 | const Standard_Real aU1, |
30 | const Standard_Real aU2, |
31 | const Standard_Real aV1, |
32 | const Standard_Real aV2, |
33 | const Standard_Boolean aUsense, |
34 | const Standard_Boolean aVsense) |
35 | { |
36 | // --- classe own fields --- |
37 | basisSurface = aBasisSurface; |
38 | u1 = aU1; |
39 | u2 = aU2; |
40 | v1 = aV1; |
41 | v2 = aV2; |
42 | usense = aUsense; |
43 | vsense = aVsense; |
44 | // --- classe inherited fields --- |
45 | StepRepr_RepresentationItem::Init(aName); |
46 | } |
47 | |
48 | |
49 | void StepGeom_RectangularTrimmedSurface::SetBasisSurface(const Handle(StepGeom_Surface)& aBasisSurface) |
50 | { |
51 | basisSurface = aBasisSurface; |
52 | } |
53 | |
54 | Handle(StepGeom_Surface) StepGeom_RectangularTrimmedSurface::BasisSurface() const |
55 | { |
56 | return basisSurface; |
57 | } |
58 | |
59 | void StepGeom_RectangularTrimmedSurface::SetU1(const Standard_Real aU1) |
60 | { |
61 | u1 = aU1; |
62 | } |
63 | |
64 | Standard_Real StepGeom_RectangularTrimmedSurface::U1() const |
65 | { |
66 | return u1; |
67 | } |
68 | |
69 | void StepGeom_RectangularTrimmedSurface::SetU2(const Standard_Real aU2) |
70 | { |
71 | u2 = aU2; |
72 | } |
73 | |
74 | Standard_Real StepGeom_RectangularTrimmedSurface::U2() const |
75 | { |
76 | return u2; |
77 | } |
78 | |
79 | void StepGeom_RectangularTrimmedSurface::SetV1(const Standard_Real aV1) |
80 | { |
81 | v1 = aV1; |
82 | } |
83 | |
84 | Standard_Real StepGeom_RectangularTrimmedSurface::V1() const |
85 | { |
86 | return v1; |
87 | } |
88 | |
89 | void StepGeom_RectangularTrimmedSurface::SetV2(const Standard_Real aV2) |
90 | { |
91 | v2 = aV2; |
92 | } |
93 | |
94 | Standard_Real StepGeom_RectangularTrimmedSurface::V2() const |
95 | { |
96 | return v2; |
97 | } |
98 | |
99 | void StepGeom_RectangularTrimmedSurface::SetUsense(const Standard_Boolean aUsense) |
100 | { |
101 | usense = aUsense; |
102 | } |
103 | |
104 | Standard_Boolean StepGeom_RectangularTrimmedSurface::Usense() const |
105 | { |
106 | return usense; |
107 | } |
108 | |
109 | void StepGeom_RectangularTrimmedSurface::SetVsense(const Standard_Boolean aVsense) |
110 | { |
111 | vsense = aVsense; |
112 | } |
113 | |
114 | Standard_Boolean StepGeom_RectangularTrimmedSurface::Vsense() const |
115 | { |
116 | return vsense; |
117 | } |