0024662: Removing unused "generic" classes. Part 3
[occt.git] / src / HatchGen / HatchGen_ElementGen.gxx
1 // Created on: 1993-11-03
2 // Created by: Jean Marc LACHAUME
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 //=======================================================================
18 // Function : HatchGen_ElementGen
19 // Purpose  : Magic Constructor.
20 //=======================================================================
21
22 HatchGen_ElementGen::HatchGen_ElementGen (const HatchGen_ElementGen& Other) 
23 : myCurve(Other.myCurve), myOrientation(Other.myOrientation) { 
24 }
25   
26 //=======================================================================
27 // Function : HatchGen_ElementGen
28 // Purpose  : Empty Constructor.
29 //=======================================================================
30
31 HatchGen_ElementGen::HatchGen_ElementGen () { 
32 }
33   
34 //=======================================================================
35 // Function : HatchGen_ElementGen
36 // Purpose  : Constructor.
37 //=======================================================================
38
39 HatchGen_ElementGen::HatchGen_ElementGen (const TheElementCurve& Curve,
40                                           const TopAbs_Orientation Orientation) :
41        myCurve       (Curve),
42        myOrientation (Orientation)
43 {
44 }
45   
46 //=======================================================================
47 // Function : Curve
48 // Purpose  : Returns the curve associated to the hatching.
49 //=======================================================================
50
51 const TheElementCurve& HatchGen_ElementGen::Curve () const
52 {
53   return myCurve ;
54 }
55
56 //=======================================================================
57 // Function : ChangeCurve
58 // Purpose  : Returns the curve associated to the hatching.
59 //=======================================================================
60
61 TheElementCurve& HatchGen_ElementGen::ChangeCurve ()
62 {
63   return myCurve ;
64 }
65
66 //=======================================================================
67 // Function : Orientation
68 // Purpose  : Sets the orientation of the element.
69 //=======================================================================
70
71 void HatchGen_ElementGen::Orientation (const TopAbs_Orientation Orientation)
72 {
73   myOrientation = Orientation ;
74 }
75
76 //=======================================================================
77 // Function : Orientation
78 // Purpose  : Returns the orientation of the element.
79 //=======================================================================
80
81 TopAbs_Orientation HatchGen_ElementGen::Orientation () const
82 {
83   return myOrientation ;
84 }
85
86
87