0023430: Tests in xcaf group fail in parallel mode
[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
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22inline Standard_Boolean AIS_Drawer::WasLastLocal() const
23{return Standard_False;}
24
25inline Standard_Boolean AIS_Drawer::HasLocalAttributes() const
26{return hasLocalAttributes;}
27
28inline Standard_Real AIS_Drawer::PreviousDeviationCoefficient () const
29{return (myhasOwnDeviationCoefficient) ? myPreviousDeviationCoefficient : 0.0;}
30
31inline Standard_Real AIS_Drawer::PreviousHLRDeviationCoefficient () const
32{return (myhasOwnHLRDeviationCoefficient) ? myPreviousHLRDeviationCoefficient : 0.0;}
33
34inline Standard_Real AIS_Drawer::PreviousDeviationAngle () const
35{return (myhasOwnDeviationAngle) ? myPreviousDeviationAngle : 0.0;}
36
37inline Standard_Real AIS_Drawer::PreviousHLRDeviationAngle () const
38{return (myhasOwnHLRDeviationAngle) ? myPreviousHLRDeviationAngle : 0.0;}
39
40inline void AIS_Drawer::Link ( const Handle(Prs3d_Drawer)& aDrawer)
41{ myLink = aDrawer;}
42
43inline Standard_Boolean AIS_Drawer::HasLink() const
44{ return ! myLink.IsNull();}
45
46inline void AIS_Drawer::SetDeviationCoefficient ()
47{ myhasOwnDeviationCoefficient = Standard_False; }
48
49inline void AIS_Drawer::SetHLRDeviationCoefficient ()
50{ myhasOwnHLRDeviationCoefficient = Standard_False; }
51
52inline void AIS_Drawer::SetDeviationAngle ()
53{ myhasOwnDeviationAngle = Standard_False;}
54
55inline void AIS_Drawer::SetHLRAngle ()
56{ myhasOwnHLRDeviationAngle = Standard_False;}
57
58inline Standard_Boolean AIS_Drawer::IsOwnDeviationCoefficient () const
59{ return myhasOwnDeviationCoefficient;}
60
61inline Standard_Boolean AIS_Drawer::IsOwnDeviationAngle () const
62{ return myhasOwnDeviationAngle;}
63
64inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationCoefficient () const
65{ return myhasOwnHLRDeviationCoefficient;}
66
67inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationAngle () const
68{ return myhasOwnHLRDeviationAngle;}
69
70inline Standard_Boolean AIS_Drawer::HasTextAspect () const
71{ return (!myTextAspect.IsNull());}
72
73inline Standard_Boolean AIS_Drawer::HasWireAspect () const
74{ return (!myWireAspect.IsNull());}
75
76inline Standard_Boolean AIS_Drawer::HasLineAspect () const
77{return !myLineAspect.IsNull(); }
78
79inline Standard_Boolean AIS_Drawer::HasShadingAspect () const
80{ return !myShadingAspect.IsNull();}
81
82inline Standard_Boolean AIS_Drawer::HasPointAspect () const
83{ return !myPointAspect.IsNull();}
84
85inline Standard_Boolean AIS_Drawer::HasAngleAspect () const
86{ return !myAngleAspect.IsNull();}
87
88inline Standard_Boolean AIS_Drawer::HasDatumAspect () const
89{ return !myDatumAspect.IsNull();}
90
91inline Standard_Boolean AIS_Drawer::HasPlaneAspect () const
92{ return !myPlaneAspect.IsNull();}
93
94inline Standard_Boolean AIS_Drawer::HasLengthAspect () const
95{ return !myLengthAspect.IsNull();}
96