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 under
6 // the terms of the GNU Lesser General Public License 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 
15 #include <Standard_Type.hxx>
16 #include <StepGeom_RectangularTrimmedSurface.hxx>
17 #include <StepGeom_Surface.hxx>
18 #include <TCollection_HAsciiString.hxx>
19 
IMPLEMENT_STANDARD_RTTIEXT(StepGeom_RectangularTrimmedSurface,StepGeom_BoundedSurface)20 IMPLEMENT_STANDARD_RTTIEXT(StepGeom_RectangularTrimmedSurface,StepGeom_BoundedSurface)
21 
22 StepGeom_RectangularTrimmedSurface::StepGeom_RectangularTrimmedSurface ()  {}
23 
Init(const Handle (TCollection_HAsciiString)& aName,const Handle (StepGeom_Surface)& aBasisSurface,const Standard_Real aU1,const Standard_Real aU2,const Standard_Real aV1,const Standard_Real aV2,const Standard_Boolean aUsense,const Standard_Boolean aVsense)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 
SetBasisSurface(const Handle (StepGeom_Surface)& aBasisSurface)47 void StepGeom_RectangularTrimmedSurface::SetBasisSurface(const Handle(StepGeom_Surface)& aBasisSurface)
48 {
49 	basisSurface = aBasisSurface;
50 }
51 
Handle(StepGeom_Surface)52 Handle(StepGeom_Surface) StepGeom_RectangularTrimmedSurface::BasisSurface() const
53 {
54 	return basisSurface;
55 }
56 
SetU1(const Standard_Real aU1)57 void StepGeom_RectangularTrimmedSurface::SetU1(const Standard_Real aU1)
58 {
59 	u1 = aU1;
60 }
61 
U1() const62 Standard_Real StepGeom_RectangularTrimmedSurface::U1() const
63 {
64 	return u1;
65 }
66 
SetU2(const Standard_Real aU2)67 void StepGeom_RectangularTrimmedSurface::SetU2(const Standard_Real aU2)
68 {
69 	u2 = aU2;
70 }
71 
U2() const72 Standard_Real StepGeom_RectangularTrimmedSurface::U2() const
73 {
74 	return u2;
75 }
76 
SetV1(const Standard_Real aV1)77 void StepGeom_RectangularTrimmedSurface::SetV1(const Standard_Real aV1)
78 {
79 	v1 = aV1;
80 }
81 
V1() const82 Standard_Real StepGeom_RectangularTrimmedSurface::V1() const
83 {
84 	return v1;
85 }
86 
SetV2(const Standard_Real aV2)87 void StepGeom_RectangularTrimmedSurface::SetV2(const Standard_Real aV2)
88 {
89 	v2 = aV2;
90 }
91 
V2() const92 Standard_Real StepGeom_RectangularTrimmedSurface::V2() const
93 {
94 	return v2;
95 }
96 
SetUsense(const Standard_Boolean aUsense)97 void StepGeom_RectangularTrimmedSurface::SetUsense(const Standard_Boolean aUsense)
98 {
99 	usense = aUsense;
100 }
101 
Usense() const102 Standard_Boolean StepGeom_RectangularTrimmedSurface::Usense() const
103 {
104 	return usense;
105 }
106 
SetVsense(const Standard_Boolean aVsense)107 void StepGeom_RectangularTrimmedSurface::SetVsense(const Standard_Boolean aVsense)
108 {
109 	vsense = aVsense;
110 }
111 
Vsense() const112 Standard_Boolean StepGeom_RectangularTrimmedSurface::Vsense() const
113 {
114 	return vsense;
115 }
116