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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 //=======================================================================
18 // Function : HatchGen_ElementGen
19 // Purpose : Magic Constructor.
20 //=======================================================================
22 HatchGen_ElementGen::HatchGen_ElementGen (const HatchGen_ElementGen& Other)
23 : myCurve(Other.myCurve), myOrientation(Other.myOrientation) {
26 //=======================================================================
27 // Function : HatchGen_ElementGen
28 // Purpose : Empty Constructor.
29 //=======================================================================
31 HatchGen_ElementGen::HatchGen_ElementGen () {
34 //=======================================================================
35 // Function : HatchGen_ElementGen
36 // Purpose : Constructor.
37 //=======================================================================
39 HatchGen_ElementGen::HatchGen_ElementGen (const TheElementCurve& Curve,
40 const TopAbs_Orientation Orientation) :
42 myOrientation (Orientation)
46 //=======================================================================
48 // Purpose : Returns the curve associated to the hatching.
49 //=======================================================================
51 const TheElementCurve& HatchGen_ElementGen::Curve () const
56 //=======================================================================
57 // Function : ChangeCurve
58 // Purpose : Returns the curve associated to the hatching.
59 //=======================================================================
61 TheElementCurve& HatchGen_ElementGen::ChangeCurve ()
66 //=======================================================================
67 // Function : Orientation
68 // Purpose : Sets the orientation of the element.
69 //=======================================================================
71 void HatchGen_ElementGen::Orientation (const TopAbs_Orientation Orientation)
73 myOrientation = Orientation ;
76 //=======================================================================
77 // Function : Orientation
78 // Purpose : Returns the orientation of the element.
79 //=======================================================================
81 TopAbs_Orientation HatchGen_ElementGen::Orientation () const
83 return myOrientation ;