0025853: Edges disappear or reappear when displaying new edges
[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
ad3217cd 18{
19 return Standard_False;
20}
7fd59977 21
ad3217cd 22inline Standard_Boolean AIS_Drawer::HasLocalAttributes() const
23{
24 return hasLocalAttributes;
25}
7fd59977 26
ad3217cd 27inline Standard_Real AIS_Drawer::PreviousDeviationCoefficient() const
28{
29 return myhasOwnDeviationCoefficient ? myPreviousDeviationCoefficient : 0.0;
30}
7fd59977 31
ad3217cd 32inline Standard_Real AIS_Drawer::PreviousHLRDeviationCoefficient() const
33{
34 return myhasOwnHLRDeviationCoefficient ? myPreviousHLRDeviationCoefficient : 0.0;
35}
7fd59977 36
ad3217cd 37inline Standard_Real AIS_Drawer::PreviousDeviationAngle() const
38{
39 return myhasOwnDeviationAngle ? myPreviousDeviationAngle : 0.0;
40}
7fd59977 41
ad3217cd 42inline Standard_Real AIS_Drawer::PreviousHLRDeviationAngle() const
43{
44 return myhasOwnHLRDeviationAngle ? myPreviousHLRDeviationAngle : 0.0;
45}
7fd59977 46
ad3217cd 47inline void AIS_Drawer::Link (const Handle(Prs3d_Drawer)& theDrawer)
48{
49 myLink = theDrawer;
50}
7fd59977 51
52inline Standard_Boolean AIS_Drawer::HasLink() const
ad3217cd 53{
54 return !myLink.IsNull();
55}
7fd59977 56
ad3217cd 57inline void AIS_Drawer::SetDeviationCoefficient()
58{
59 myhasOwnDeviationCoefficient = Standard_False;
60}
7fd59977 61
ad3217cd 62inline void AIS_Drawer::SetHLRDeviationCoefficient()
63{
64 myhasOwnHLRDeviationCoefficient = Standard_False;
65}
7fd59977 66
ad3217cd 67inline void AIS_Drawer::SetDeviationAngle()
68{
69 myhasOwnDeviationAngle = Standard_False;
70}
7fd59977 71
ad3217cd 72inline void AIS_Drawer::SetHLRAngle()
73{
74 myhasOwnHLRDeviationAngle = Standard_False;
75}
7fd59977 76
ad3217cd 77inline Standard_Boolean AIS_Drawer::IsOwnDeviationCoefficient() const
78{
79 return myhasOwnDeviationCoefficient;
80}
7fd59977 81
ad3217cd 82inline Standard_Boolean AIS_Drawer::IsOwnDeviationAngle() const
83{
84 return myhasOwnDeviationAngle;
85}
7fd59977 86
ad3217cd 87inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationCoefficient() const
88{
89 return myhasOwnHLRDeviationCoefficient;
90}
7fd59977 91
ad3217cd 92inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationAngle() const
93{
94 return myhasOwnHLRDeviationAngle;
95}
7fd59977 96
ad3217cd 97inline Standard_Boolean AIS_Drawer::HasTextAspect() const
98{
99 return !myTextAspect.IsNull();
100}
7fd59977 101
ad3217cd 102inline Standard_Boolean AIS_Drawer::HasWireAspect() const
103{
104 return !myWireAspect.IsNull();
105}
7fd59977 106
ad3217cd 107inline Standard_Boolean AIS_Drawer::HasLineAspect() const
108{
109 return !myLineAspect.IsNull();
110}
7fd59977 111
ad3217cd 112inline Standard_Boolean AIS_Drawer::HasShadingAspect() const
113{
114 return !myShadingAspect.IsNull();
115}
7fd59977 116
ad3217cd 117inline Standard_Boolean AIS_Drawer::HasPointAspect() const
118{
119 return !myPointAspect.IsNull();
120}
7fd59977 121
53b15292 122inline Standard_Boolean AIS_Drawer::IsOwnVertexDrawMode() const
123{
124 return (myVertexDrawMode != Prs3d_VDM_Inherited);
125}
126
ad3217cd 127inline Standard_Boolean AIS_Drawer::HasDatumAspect() const
128{
129 return !myDatumAspect.IsNull();
130}
7fd59977 131
ad3217cd 132inline Standard_Boolean AIS_Drawer::HasPlaneAspect() const
133{
134 return !myPlaneAspect.IsNull();
135}
7fd59977 136
74618acf 137inline Standard_Boolean AIS_Drawer::HasUIsoAspect() const
138{
139 return !myUIsoAspect.IsNull();
140}
141
142inline Standard_Boolean AIS_Drawer::HasVIsoAspect() const
143{
144 return !myVIsoAspect.IsNull();
145}
146
147inline Standard_Boolean AIS_Drawer::HasFreeBoundaryAspect() const
148{
149 return !myFreeBoundaryAspect.IsNull();
150}
151
152inline Standard_Boolean AIS_Drawer::HasUnFreeBoundaryAspect() const
153{
154 return !myUnFreeBoundaryAspect.IsNull();
155}
156
ad3217cd 157inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryDraw() const
158{
159 return myHasOwnFaceBoundaryDraw;
160}
a2d5ab2e 161
ad3217cd 162inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryAspect() const
163{
164 return !myFaceBoundaryAspect.IsNull();
165}
0a768f56 166
ad3217cd 167inline void AIS_Drawer::SetTypeOfHLR (const Prs3d_TypeOfHLR theTypeOfHLR)
0a768f56 168{
169 myTypeOfHLR = theTypeOfHLR;
170}
171
ad3217cd 172inline Prs3d_TypeOfHLR AIS_Drawer::TypeOfHLR() const
0a768f56 173{
174 return (myTypeOfHLR == Prs3d_TOH_NotSet) ? myLink->TypeOfHLR() : myTypeOfHLR;
175}
a6eb515f 176
60bf98ae 177inline Standard_Boolean AIS_Drawer::HasDimensionAspect() const
178{
179 return !myDimensionAspect.IsNull();
180}