0031004: Coding - eliminate warnings issued by gcc 9.1.0
[occt.git] / src / Geom2dHatch / Geom2dHatch_Element.cxx
CommitLineData
b311480e 1// Created on: 1993-11-03
2// Created by: Jean Marc LACHAUME
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
42cf5bc1 17#include <Geom2dHatch_Element.hxx>
0b85f9a6 18
158f2931 19#include <Geom2dAdaptor_Curve.hxx>
7fd59977 20
21//=======================================================================
0b85f9a6 22// Function : Geom2dHatch_Element
7fd59977 23// Purpose : Empty Constructor.
24//=======================================================================
25
0b85f9a6 26Geom2dHatch_Element::Geom2dHatch_Element () {
7fd59977 27}
28
29//=======================================================================
0b85f9a6 30// Function : Geom2dHatch_Element
7fd59977 31// Purpose : Constructor.
32//=======================================================================
33
0b85f9a6 34Geom2dHatch_Element::Geom2dHatch_Element (const Geom2dAdaptor_Curve& Curve,
7fd59977 35 const TopAbs_Orientation Orientation) :
36 myCurve (Curve),
37 myOrientation (Orientation)
38{
39}
40
41//=======================================================================
42// Function : Curve
43// Purpose : Returns the curve associated to the hatching.
44//=======================================================================
45
0b85f9a6 46const Geom2dAdaptor_Curve& Geom2dHatch_Element::Curve () const
7fd59977 47{
48 return myCurve ;
49}
50
51//=======================================================================
52// Function : ChangeCurve
53// Purpose : Returns the curve associated to the hatching.
54//=======================================================================
55
0b85f9a6 56Geom2dAdaptor_Curve& Geom2dHatch_Element::ChangeCurve ()
7fd59977 57{
58 return myCurve ;
59}
60
61//=======================================================================
62// Function : Orientation
63// Purpose : Sets the orientation of the element.
64//=======================================================================
65
0b85f9a6 66void Geom2dHatch_Element::Orientation (const TopAbs_Orientation Orientation)
7fd59977 67{
68 myOrientation = Orientation ;
69}
70
71//=======================================================================
72// Function : Orientation
73// Purpose : Returns the orientation of the element.
74//=======================================================================
75
0b85f9a6 76TopAbs_Orientation Geom2dHatch_Element::Orientation () const
7fd59977 77{
78 return myOrientation ;
79}
80
81
82