0024624: Lost word in license statement in source files
[occt.git] / src / AIS / AIS_Drawer.lxx
CommitLineData
b311480e 1// Created on: 1996-12-19
2// Created by: Robert COUBLANC
3// Copyright (c) 1996-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
17inline Standard_Boolean AIS_Drawer::WasLastLocal() const
18{return Standard_False;}
19
20inline Standard_Boolean AIS_Drawer::HasLocalAttributes() const
21{return hasLocalAttributes;}
22
23inline Standard_Real AIS_Drawer::PreviousDeviationCoefficient () const
24{return (myhasOwnDeviationCoefficient) ? myPreviousDeviationCoefficient : 0.0;}
25
26inline Standard_Real AIS_Drawer::PreviousHLRDeviationCoefficient () const
27{return (myhasOwnHLRDeviationCoefficient) ? myPreviousHLRDeviationCoefficient : 0.0;}
28
29inline Standard_Real AIS_Drawer::PreviousDeviationAngle () const
30{return (myhasOwnDeviationAngle) ? myPreviousDeviationAngle : 0.0;}
31
32inline Standard_Real AIS_Drawer::PreviousHLRDeviationAngle () const
33{return (myhasOwnHLRDeviationAngle) ? myPreviousHLRDeviationAngle : 0.0;}
34
35inline void AIS_Drawer::Link ( const Handle(Prs3d_Drawer)& aDrawer)
36{ myLink = aDrawer;}
37
38inline Standard_Boolean AIS_Drawer::HasLink() const
39{ return ! myLink.IsNull();}
40
41inline void AIS_Drawer::SetDeviationCoefficient ()
42{ myhasOwnDeviationCoefficient = Standard_False; }
43
44inline void AIS_Drawer::SetHLRDeviationCoefficient ()
45{ myhasOwnHLRDeviationCoefficient = Standard_False; }
46
47inline void AIS_Drawer::SetDeviationAngle ()
48{ myhasOwnDeviationAngle = Standard_False;}
49
50inline void AIS_Drawer::SetHLRAngle ()
51{ myhasOwnHLRDeviationAngle = Standard_False;}
52
53inline Standard_Boolean AIS_Drawer::IsOwnDeviationCoefficient () const
54{ return myhasOwnDeviationCoefficient;}
55
56inline Standard_Boolean AIS_Drawer::IsOwnDeviationAngle () const
57{ return myhasOwnDeviationAngle;}
58
59inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationCoefficient () const
60{ return myhasOwnHLRDeviationCoefficient;}
61
62inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationAngle () const
63{ return myhasOwnHLRDeviationAngle;}
64
65inline Standard_Boolean AIS_Drawer::HasTextAspect () const
66{ return (!myTextAspect.IsNull());}
67
68inline Standard_Boolean AIS_Drawer::HasWireAspect () const
69{ return (!myWireAspect.IsNull());}
70
71inline Standard_Boolean AIS_Drawer::HasLineAspect () const
72{return !myLineAspect.IsNull(); }
73
74inline Standard_Boolean AIS_Drawer::HasShadingAspect () const
75{ return !myShadingAspect.IsNull();}
76
77inline Standard_Boolean AIS_Drawer::HasPointAspect () const
78{ return !myPointAspect.IsNull();}
79
7fd59977 80inline Standard_Boolean AIS_Drawer::HasDatumAspect () const
81{ return !myDatumAspect.IsNull();}
82
83inline Standard_Boolean AIS_Drawer::HasPlaneAspect () const
84{ return !myPlaneAspect.IsNull();}
85
a2d5ab2e 86inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryDraw () const
87{ return myHasOwnFaceBoundaryDraw; }
88
89inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryAspect () const
90{ return !myFaceBoundaryAspect.IsNull (); }
0a768f56 91
92inline void AIS_Drawer::SetTypeOfHLR (const Prs3d_TypeOfHLR theTypeOfHLR)
93{
94 myTypeOfHLR = theTypeOfHLR;
95}
96
97inline Prs3d_TypeOfHLR AIS_Drawer::TypeOfHLR ( ) const
98{
99 return (myTypeOfHLR == Prs3d_TOH_NotSet) ? myLink->TypeOfHLR() : myTypeOfHLR;
100}
a6eb515f 101
60bf98ae 102inline Standard_Boolean AIS_Drawer::HasDimensionAspect() const
103{
104 return !myDimensionAspect.IsNull();
105}