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