0023709: Redesign of hlrtest command: vhlr and vhlrtype commands were added; hlr...
[occt.git] / src / AIS / AIS_Drawer.lxx
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
21
22 inline Standard_Boolean AIS_Drawer::WasLastLocal() const
23 {return Standard_False;}
24
25 inline Standard_Boolean AIS_Drawer::HasLocalAttributes() const 
26 {return hasLocalAttributes;}
27
28 inline Standard_Real AIS_Drawer::PreviousDeviationCoefficient ()  const 
29 {return  (myhasOwnDeviationCoefficient) ? myPreviousDeviationCoefficient : 0.0;}
30
31 inline Standard_Real AIS_Drawer::PreviousHLRDeviationCoefficient ()  const 
32 {return  (myhasOwnHLRDeviationCoefficient) ? myPreviousHLRDeviationCoefficient : 0.0;}
33
34 inline Standard_Real AIS_Drawer::PreviousDeviationAngle ()  const 
35 {return  (myhasOwnDeviationAngle) ? myPreviousDeviationAngle : 0.0;}
36
37 inline Standard_Real AIS_Drawer::PreviousHLRDeviationAngle ()  const 
38 {return  (myhasOwnHLRDeviationAngle) ? myPreviousHLRDeviationAngle : 0.0;}
39
40 inline void AIS_Drawer::Link ( const Handle(Prs3d_Drawer)& aDrawer) 
41 { myLink = aDrawer;}
42
43 inline Standard_Boolean AIS_Drawer::HasLink() const
44 { return ! myLink.IsNull();}
45
46 inline void AIS_Drawer::SetDeviationCoefficient ()
47 { myhasOwnDeviationCoefficient    = Standard_False; }
48
49 inline void AIS_Drawer::SetHLRDeviationCoefficient () 
50 { myhasOwnHLRDeviationCoefficient    = Standard_False; }
51
52 inline void AIS_Drawer::SetDeviationAngle () 
53 { myhasOwnDeviationAngle    = Standard_False;}
54
55 inline void AIS_Drawer::SetHLRAngle () 
56 { myhasOwnHLRDeviationAngle    = Standard_False;}
57
58 inline Standard_Boolean AIS_Drawer::IsOwnDeviationCoefficient ()  const 
59 { return  myhasOwnDeviationCoefficient;}
60
61 inline Standard_Boolean AIS_Drawer::IsOwnDeviationAngle ()  const 
62 { return  myhasOwnDeviationAngle;}
63
64 inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationCoefficient ()  const 
65 { return  myhasOwnHLRDeviationCoefficient;}
66
67 inline Standard_Boolean AIS_Drawer::IsOwnHLRDeviationAngle ()  const 
68 { return  myhasOwnHLRDeviationAngle;}
69
70 inline Standard_Boolean AIS_Drawer::HasTextAspect ()  const 
71 { return (!myTextAspect.IsNull());}
72
73 inline Standard_Boolean AIS_Drawer::HasWireAspect ()  const 
74 { return (!myWireAspect.IsNull());}
75
76 inline Standard_Boolean AIS_Drawer::HasLineAspect ()  const 
77 {return !myLineAspect.IsNull(); }
78
79 inline Standard_Boolean AIS_Drawer::HasShadingAspect ()  const 
80 {  return !myShadingAspect.IsNull();}
81
82 inline Standard_Boolean AIS_Drawer::HasPointAspect ()  const 
83 { return !myPointAspect.IsNull();}
84
85 inline Standard_Boolean AIS_Drawer::HasAngleAspect ()  const 
86 { return !myAngleAspect.IsNull();}
87
88 inline Standard_Boolean AIS_Drawer::HasDatumAspect ()  const 
89 { return !myDatumAspect.IsNull();}
90
91 inline Standard_Boolean AIS_Drawer::HasPlaneAspect ()  const 
92 { return !myPlaneAspect.IsNull();}
93
94 inline Standard_Boolean AIS_Drawer::HasLengthAspect ()  const 
95 { return !myLengthAspect.IsNull();}
96
97 inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryDraw () const
98 { return myHasOwnFaceBoundaryDraw; }
99
100 inline Standard_Boolean AIS_Drawer::IsOwnFaceBoundaryAspect () const
101 { return !myFaceBoundaryAspect.IsNull (); }
102
103 inline void AIS_Drawer::SetTypeOfHLR (const Prs3d_TypeOfHLR theTypeOfHLR) 
104 {
105   myTypeOfHLR = theTypeOfHLR;
106 }
107
108 inline Prs3d_TypeOfHLR AIS_Drawer::TypeOfHLR ( ) const
109 {
110   return (myTypeOfHLR == Prs3d_TOH_NotSet) ? myLink->TypeOfHLR() : myTypeOfHLR;
111 }