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